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>
Se connecter
</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 class="col-xs-12 col-sm-6">
@ -60,7 +29,42 @@
</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 %}

View File

@ -1,15 +1,22 @@
layout.login: login
layout.logout: logout
layout.register: subscribe
'Symfony is great': 'J''aime Symfony'
layout:
login: login
logout: logout
register: subscribe
menu:
title: Caisse Bliss
dashboard: Dashboard
history: History
import: Import
festival: Festivals
festivals: Festivals
products: Products
categories: Categories
future: Forecast
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
history: Historique
import: Importer
festival: Festivals
festivals: Festivals
products: Produits
categories: Catégories
future: Prévisionnel
user:
greet: Bonjour
greet: Bonjour
security:
login:
username: utilisateur
password: mot de passe
remember_me: se souvenir
submit: envoyer