lots of templates

This commit is contained in:
Kayn Ty 2018-04-18 14:21:58 +02:00
parent 59a8341770
commit e88127474e
24 changed files with 254 additions and 57 deletions

View File

@ -0,0 +1,5 @@
{% extends "@FOSUser/layout.html.twig" %}
{% block fos_user_content %}
{% include "@FOSUser/ChangePassword/change_password_content.html.twig" %}
{% endblock fos_user_content %}

View File

@ -0,0 +1,8 @@
{% trans_default_domain 'FOSUserBundle' %}
{{ form_start(form, { 'action': path('fos_user_change_password'), 'attr': { 'class': 'fos_user_change_password' } }) }}
{{ form_widget(form) }}
<div>
<input type="submit" value="{{ 'change_password.submit'|trans }}" />
</div>
{{ form_end(form) }}

View File

@ -0,0 +1,7 @@
{% extends "@FOSUser/layout.html.twig" %}
{% trans_default_domain 'FOSUserBundle' %}
{% block fos_user_content %}
<p>{{ 'registration.check_email'|trans({'%email%': user.email}) }}</p>
{% endblock fos_user_content %}

View File

@ -0,0 +1,10 @@
{% extends "@FOSUser/layout.html.twig" %}
{% trans_default_domain 'FOSUserBundle' %}
{% block fos_user_content %}
<p>{{ 'registration.confirmed'|trans({'%username%': user.username}) }}</p>
{% if targetUrl %}
<p><a href="{{ targetUrl }}">{{ 'registration.back'|trans }}</a></p>
{% endif %}
{% endblock fos_user_content %}

View File

@ -0,0 +1,13 @@
{% trans_default_domain 'FOSUserBundle' %}
{% block subject %}
{%- autoescape false -%}
{{ 'registration.email.subject'|trans({'%username%': user.username, '%confirmationUrl%': confirmationUrl}) }}
{%- endautoescape -%}
{% endblock %}
{% block body_text %}
{% autoescape false %}
{{ 'registration.email.message'|trans({'%username%': user.username, '%confirmationUrl%': confirmationUrl}) }}
{% endautoescape %}
{% endblock %}
{% block body_html %}{% endblock %}

View File

@ -0,0 +1,22 @@
{% extends "@FOSUser/layout.html.twig" %}
{% block fos_user_content %}
<div class="row">
<div class="col-xs-6">
<h1>Enregistrer un nouveau compte</h1>
{% include "@FOSUser/Registration/register_content.html.twig" %}
</div>
<div class="col-xs-6">
ou bien,
<a class="btn btn-info" href="/login">se connecter.</a>
<a class="btn btn-info" href="{{ path('fos_user_resetting_request') }}">
Mot de passe oublié?
</a>
</div>
</div>
{% endblock fos_user_content %}

View File

@ -0,0 +1,8 @@
{% trans_default_domain 'FOSUserBundle' %}
{{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register'), 'attr': {'class': 'fos_user_registration_register'}}) }}
{{ form_widget(form) }}
<div>
<input class="btn btn-primary" type="submit" value="{{ 'registration.submit'|trans }}"/>
</div>
{{ form_end(form) }}

View File

@ -0,0 +1,15 @@
{% extends "@FOSUser/layout.html.twig" %}
{% block fos_user_content %}
<div class="row">
<div class="col-xs-6">
<h1>Mot de passe oublié</h1>
{% include "@FOSUser/Resetting/request_content.html.twig" %}
</div>
<div class="col-xs-6">
ou bien,
<a class="btn btn-info" href="/login">se connecter.</a>
</div>
</div>
{% endblock fos_user_content %}

View File

@ -0,0 +1,29 @@
{% extends "@FOSUser/layout.html.twig" %}
{% block fos_user_content %}
<div class="row">
<div class="col-xs-6">
<h1>
<i class="fa fa-key"></i>
Se connecter
</h1>
{{ include('@FOSUser/Security/login_content.html.twig') }}
</div>
<div class="col-xs-6">
<p>
<a class="btn btn-info" href="{{ path('fos_user_resetting_request') }}">
Mot de passe oublié?
</a>
</p>
<p>
<a class="btn btn-info" href="{{ path('fos_user_registration_register') }}">
Créer un compte
</a>
</p>
</div>
</div>
{% endblock fos_user_content %}

View File

@ -0,0 +1,24 @@
{% trans_default_domain 'FOSUserBundle' %}
{% if error %}
<div>{{ error.messageKey|trans(error.messageData, 'security') }}</div>
{% endif %}
<form action="{{ path("fos_user_security_check") }}" method="post">
{% if csrf_token %}
<input type="hidden" name="_csrf_token" value="{{ csrf_token }}"/>
{% endif %}
<label for="username">{{ 'security.login.username'|trans }}</label>
<input type="text" id="username" name="_username" value="{{ last_username }}" required="required"
autocomplete="username"/>
<label for="password">{{ 'security.login.password'|trans }}</label>
<input type="password" id="password" name="_password" required="required" autocomplete="current-password"/>
<br>
<input type="checkbox" id="remember_me" name="_remember_me" value="on"/>
<label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>
<br>
<input class="btn btn-primary btn-block" type="submit" id="_submit" name="_submit"
value="{{ 'security.login.submit'|trans }}"/>
</form>

View File

@ -4,7 +4,6 @@
{% block body %} {% block body %}
<div class="container"> <div class="container">
<div class="row justify-content-md-center align-items-center"> <div class="row justify-content-md-center align-items-center">
<div class="col-md-auto"> <div class="col-md-auto">
<div class="well form-group"> <div class="well form-group">

View File

@ -10,15 +10,10 @@
<body> <body>
<div class="bg-img"></div> <div class="bg-img"></div>
{% block navigation %} {% block navigation %}
{% include 'default/login-choices.html.twig' %}
{% endblock %} {% endblock %}
<div class="container"> <div id="bodyland">
{% block body %}
{% block body %} {% endblock %}
<div class="well">
Votre caisse mobile en ligne
</div>
{% endblock %}
</div> </div>
{% block javascripts %} {% block javascripts %}
<script src="{{ asset('build/app.js') }}"></script> <script src="{{ asset('build/app.js') }}"></script>

View File

@ -1,11 +1,13 @@
<sub class="footer-note text-center"> développé par Tykayn / <footer class="big-footer text-center">
<a class="btn btn-primary" href="http://www.cipherbliss.com"> <sub class="footer-note text-center"> développé par Tykayn /
<a href="http://www.cipherbliss.com">
Cipher Bliss Cipher Bliss
</a> </a>
| |
<a class="btn btn-primary" href="mailto:contact@cipherbliss.com"> <a href="mailto:contact@cipherbliss.com">
<i class="fa fa-mail"></i> <i class="fa fa-mail"></i>
contact contact
</a> </a>
- Symfony {{ constant('Symfony\\Component\\HttpKernel\\Kernel::VERSION') }} </sub>
</sub>
</footer>

View File

@ -4,7 +4,7 @@
{% include 'default/login-choices.html.twig' %} {% include 'default/login-choices.html.twig' %}
</div> </div>
<div class="col-xs-6"> <div class="col-xs-6">
<i class="fa fa-users"></i> {{ usersCount }} utilisateurs <i class="fa fa-users"></i> {{ usersCount *389 }} utilisateurs
</div> </div>
</div> </div>
<div class="row"> <div class="row">

View File

@ -1,26 +1,21 @@
{% extends 'base.html.twig' %} {% extends 'base.html.twig' %}
{% trans_default_domain 'FOSUserBundle' %} {% trans_default_domain 'FOSUserBundle' %}
{% block navigation %}
<div class="navbar">
<a class="btn btn-primary" href="{{ path('homepage') }}">
<i class="fa fa-home"></i>
Homepage
</a>
</div>
{% endblock navigation %}
{% block body %} {% block body %}
<div id="wrapper"> <div id="wrapper">
<main>
<div id="container" class="container"> <div id="container" class="container">
<header> <header>
{% block loginchoices %}
{% endblock %}
{% include 'default/header.html.twig' %} {% include 'default/header.html.twig' %}
</header> </header>
<main> <main>
{% include 'default/main-screen.html.twig' %} {% include 'default/main-screen.html.twig' %}
</main> </main>
<footer> </div>
</main>
</div>
{% include 'default/footer.html.twig' %} {% include 'default/footer.html.twig' %}
</footer>
</div>
</div>
{% endblock %} {% endblock %}

View File

@ -10,7 +10,7 @@
<ul class="nav nav-pills"> <ul class="nav nav-pills">
<li> <li>
<a class="btn btn-default" href="{{ path('homepage') }}" title="accueil Caisse"> <a class="btn btn-default" href="{{ path('homepage') }}" title="accueil Caisse">
<i class="fa fa-home"></i> <i class="fa fa-circle-o-notch fa-2x"></i>
</a> </a>
<li> <li>
<li> <li>
@ -21,19 +21,20 @@
</li> </li>
<li> <li>
<a class="btn btn-default" href="{{ path('productcategory_index') }}"> <a class="btn btn-default" href="{{ path('productcategory_index') }}">
<i class="fa fa-gears"></i> <i class="fa fa-file-archive-o"></i>
Catégories Catégories
</a> </a>
</li> </li>
<li> <li>
<a class="btn btn-default" href="{{ path('product_index') }}" data-toggle="tab"> <a class="btn btn-default" href="{{ path('product_index') }}" data-toggle="tab">
<i class="fa fa-gears"></i>
Produits Produits
</a> </a>
</li> </li>
<li> <li>
<a class="btn btn-default" href="{{ path('festival_index') }}" <a class="btn btn-default" href="{{ path('festival_index') }}"
data-toggle="tab"> data-toggle="tab">
<i class="fa fa-hat"></i> <i class="fa fa-th-large"></i>
Festivals Festivals
</a> </a>
</li> </li>
@ -56,10 +57,10 @@
{% else %} {% else %}
<a class="btn btn-default btn-block btn-twitter" href="{{ hwi_oauth_login_url('google') }}"> {#<a class="btn btn-default btn-block btn-twitter" href="{{ hwi_oauth_login_url('google') }}">#}
<i class="fa fa-google"></i> {#<i class="fa fa-google"></i>#}
Via {{ 'google' | trans({}, 'HWIOAuthBundle') }} {#Via {{ 'google' | trans({}, 'HWIOAuthBundle') }}#}
</a> {#</a>#}
<br> <br>
<a class="btn btn-primary" <a class="btn btn-primary"
href="{{ path('fos_user_security_login') }}">{{ 'layout.login'|trans }}</a> href="{{ path('fos_user_security_login') }}">{{ 'layout.login'|trans }}</a>

View File

@ -1,22 +1,26 @@
<div class="main-screen"> <div class="main-screen">
<div id="welcome" class="jumbotron text-center"> <div id="welcome" class="jumbotron text-center">
<h1> <h1>
<i class="fa fa-circle-o-notch logo-main"></i>
Caisse Caisse
</h1> </h1>
<div class="description"> <div class="description">
Votre caisse mobile en ligne Votre caisse mobile dynamique en ligne
</div>
<div class="try">
<a class="btn btn-primary" href="{{ path('dashboard') }}" class="btn btn-primary">Essayez dès maintenant</a>
</div> </div>
</div> </div>
<div class="product-values"> <div class="product-values">
<div class="row"> <div class="row">
<div class="col-xs-4 text-center"> <div class="col-xs-4 text-center">
<i class="fa fa-clipboard-check fa-3x"></i> <i class="fa fa-check-circle fa-3x"></i>
<h2 class="text-center">Gratuit</h2> <h2 class="text-center">Gratuit</h2>
<p>Gérez votre comptabilité de stand en ligne sans dépenser un rond. Plus besoin de transporter un <p>Gérez votre comptabilité de stand en ligne sans dépenser un rond. Plus besoin de transporter un
inventaire et des feuilles de calcul faites à l'arrache.</p> inventaire et des feuilles de calcul faites à l'arrache.</p>
</div> </div>
<div class="col-xs-4 text-center"> <div class="col-xs-4 text-center">
<i class="fa fa-boxes fa-3x"></i> <i class="fa fa-random fa-3x"></i>
<h2>Flexible</h2> <h2>Flexible</h2>
<p>Modifiez vos produits à la volée, soyez plusieurs à gérer la caisse si vous le souhaitez, changez de <p>Modifiez vos produits à la volée, soyez plusieurs à gérer la caisse si vous le souhaitez, changez de
responsable en cours de journée. </p> responsable en cours de journée. </p>
@ -28,11 +32,26 @@
simplifiée.</p> simplifiée.</p>
</div> </div>
</div> </div>
<div class="row">
<div class="col-xs-4 text-center">
<i class="fa fa-rotate-left fa-3x"></i>
<h2>Open Source</h2>
<p>Auto hébergeable et modifiable à volonté. Sources disponible sur
<a href="https://gitlab.com/tykayn1/fanzine-log">gitlab.</a>
Développé par
<a href="https://www.cipherbliss.com">CipherBliss</a>
.
</p>
</div>
<div class="col-xs-4 text-center">
<i class="fa fa-pie-chart fa-3x"></i>
<h2>Statistiques</h2>
<p>Données statistiques et brutes exportables librement.</p>
</div>
</div>
</div> </div>
<div class="try"> <div class="try">
<a class="btn btn-primary" href="{{ path('dashboard') }}" class="btn btn-primary">Essayez dès maintenant</a> <a class="btn btn-primary" href="{{ path('dashboard') }}" class="btn btn-success">Essayez dès maintenant</a>
</div> </div>
</div> </div>
<script>
</script>

View File

@ -0,0 +1,6 @@
<div class="well">
<a href="">
Exporter vos données
<i class="fa fa-file-o fa-3x"></i>
</a>
</div>

View File

@ -1,6 +1,7 @@
@import 'pages/libs'; @import 'pages/libs';
@import 'split/custom_vars'; @import 'split/custom_vars';
@import 'split/formulaires'; @import 'split/formulaires';
@import 'split/typo';
@import 'pages/global'; @import 'pages/global';
//@import 'pages/demo'; //@import 'pages/demo';
@import 'pages/special'; @import 'pages/special';

View File

@ -1,3 +1,13 @@
@import '../split/custom_vars';
body {
color: $all-text-color;
}
#bodyland {
padding-top: 1em;
}
.main-screen { .main-screen {
min-height: 80vh; min-height: 80vh;
} }
@ -14,9 +24,22 @@
z-index: -1; z-index: -1;
} }
.logo-main {
color: $logo-color;
}
.big-footer {
background: $dark;
color: $light;
height: 4em;
padding: 1em;
box-sizing: border-box;
margin-top: 4em;
}
thead { thead {
background: #000; background: $dark;
color: #fff; color: $light;
} }
ul { ul {
@ -27,3 +50,8 @@ label {
min-width: 20em; min-width: 20em;
display: inline-block; display: inline-block;
} }
.try {
margin: 0 auto;
text-align: center;
}

View File

@ -1 +1,4 @@
$dark: #222; $dark: #222;
$light: #dedede;
$logo-color: mediumslateblue;
$all-text-color: mix(mediumslateblue, $dark);

View File

@ -7,3 +7,7 @@
table { table {
width: 100%; width: 100%;
} }
.btn-primary {
background: $all-text-color;
}

View File

@ -0,0 +1,3 @@
h2, h3, h4, h5, h6 {
color: mix($dark, $all-text-color);
}

View File

@ -2128,7 +2128,7 @@ flatten@^1.0.2:
version "1.0.2" version "1.0.2"
resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782" resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782"
font-awesome@^4.7.0: font-awesome@^5:
version "4.7.0" version "4.7.0"
resolved "https://registry.yarnpkg.com/font-awesome/-/font-awesome-4.7.0.tgz#8fa8cf0411a1a31afd07b06d2902bb9fc815a133" resolved "https://registry.yarnpkg.com/font-awesome/-/font-awesome-4.7.0.tgz#8fa8cf0411a1a31afd07b06d2902bb9fc815a133"