login translate

This commit is contained in:
Baptiste Lemoine 2018-09-18 16:47:58 +02:00
parent db962ab659
commit 3c5b7b672e
3 changed files with 56 additions and 39 deletions

View File

@ -8,37 +8,6 @@
<i class="fa fa-key"></i> <i class="fa fa-key"></i>
Se connecter Se connecter
</h1> </h1>
{% if error %}
<div class="alert alert-info">{{ 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 %}
<div>
<label for="username">{{ 'security.login.username'|trans }}</label>
<input type="text" id="username" name="_username" value="{{ last_username }}" required="required"
autocomplete="username"/>
</div>
<div>
<label for="password">{{ 'security.login.password'|trans }}</label>
<input type="password" id="password" name="_password" required="required"
autocomplete="current-password"/>
</div>
<div>
<input type="checkbox" id="remember_me" name="_remember_me" value="on"/>
<label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>
</div>
<input class="btn btn-success btn-block" type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}"/>
</form>category-listing
</div> </div>
</div> </div>
<div class="col-xs-12 col-sm-6"> <div class="col-xs-12 col-sm-6">
@ -60,7 +29,42 @@
</div> </div>
</div> </div>
</div> </div>
<div class="row">
<div class="col-xs-12">
<div class="padded">
{% if error %}
<div class="alert alert-info">{{ 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 %}
<div>
<label for="username">{{ 'security.login.username'|trans }}</label>
<input type="text" id="username" class="input-lg" name="_username" value="{{ last_username }}" required="required"
autocomplete="username"/>
</div>
<div>
<label for="password">{{ 'security.login.password'|trans }}</label>
<input type="password" id="password" class="input-lg" name="_password" required="required"
autocomplete="current-password"/>
</div>
<div class="padded-v">
<input type="checkbox" id="remember_me" name="_remember_me" value="on"/>
<label for="remember_me">{{ 'security.login.remember_me'|trans }}</label>
</div>
<input class="btn btn-success btn-block btn-lg" type="submit" id="_submit" name="_submit" value="{{ 'security.login.submit'|trans }}"/>
</form>
</div>
</div>
</div>
{% endblock %} {% endblock %}

View File

@ -1,15 +1,22 @@
layout.login: login layout:
layout.logout: logout login: login
layout.register: subscribe logout: logout
'Symfony is great': 'J''aime Symfony' register: subscribe
menu: menu:
title: Caisse Bliss title: Caisse Bliss
dashboard: Dashboard dashboard: Dashboard
history: History history: History
import: Import import: Import
festival: Festivals festivals: Festivals
products: Products products: Products
categories: Categories categories: Categories
future: Forecast future: Forecast
user: user:
greet: Hi greet: Hi
security:
login:
username: utilisateur
password: mot de passe
remember_me: se souvenir
submit: envoyer
'Symfony is great': 'J''aime Symfony'

View File

@ -7,9 +7,15 @@ menu:
dashboard: Dashboard dashboard: Dashboard
history: Historique history: Historique
import: Importer import: Importer
festival: Festivals festivals: Festivals
products: Produits products: Produits
categories: Catégories categories: Catégories
future: Prévisionnel future: Prévisionnel
user: user:
greet: Bonjour greet: Bonjour
security:
login:
username: utilisateur
password: mot de passe
remember_me: se souvenir
submit: envoyer