]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/UserBundle/Resources/views/Authentication/form.html.twig
Fixed translation for 2FA
[github/wallabag/wallabag.git] / src / Wallabag / UserBundle / Resources / views / Authentication / form.html.twig
1 {# Override `vendor/scheb/two-factor-bundle/Resources/views/Authentication/form.html.twig` #}
2 {% extends "WallabagUserBundle::layout.html.twig" %}
3
4 {% block fos_user_content %}
5 <form class="form" action="{{ path("2fa_login_check") }}" method="post">
6 <div class="card-content">
7 <div class="row">
8
9 {% for flashMessage in app.session.flashbag.get("two_factor") %}
10 <p class="error">{{ flashMessage|trans }}</p>
11 {% endfor %}
12
13 {# Authentication errors #}
14 {% if authenticationError %}
15 <p class="error">{{ authenticationError|trans(authenticationErrorData, 'SchebTwoFactorBundle') }}</p>
16 {% endif %}
17
18 <div class="input-field col s12">
19 <label for="_auth_code">{{ "auth_code"|trans({}, 'SchebTwoFactorBundle') }}</label>
20 <input id="_auth_code" type="text" autocomplete="off" name="{{ authCodeParameterName }}" />
21 </div>
22
23 {% if displayTrustedOption %}
24 <div class="input-field col s12">
25 <input id="_trusted" type="checkbox" name="{{ trustedParameterName }}" />
26 <label for="_trusted">{{ "trusted"|trans({}, 'SchebTwoFactorBundle') }}</label>
27 </div>
28 {% endif %}
29 </div>
30 </div>
31 <div class="card-action center">
32 <a href="{{ path('fos_user_security_logout') }}" class="waves-effect waves-light grey btn">{{ 'security.login.cancel'|trans }}</a>
33 <button class="btn waves-effect waves-light" type="submit" name="send">
34 {{ "login"|trans({}, 'SchebTwoFactorBundle') }}
35 <i class="material-icons right">send</i>
36 </button>
37 </div>
38 </form>
39 {% endblock %}