]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - tpl/login.twig
Revert "Add SHAARLI support to view template"
[github/wallabag/wallabag.git] / tpl / login.twig
index fcb9b4d63ef6cf39fbc6845648bd1190d703dfa6..0ae130bc0240b49f305b1946fae412d941c30431 100644 (file)
@@ -1,38 +1,29 @@
 {% extends "layout.twig" %}
 
 {% block title %}{% trans "login to your poche" %}{% endblock %}
-{% block notices %}
-            <div class="messages">
-                <ul>
-                {% for notice in notices %}
-                    <li>{{ notice.value|e }}</li>
-                {% endfor %}
-                </ul>
-            </div>
-{% endblock %}
 {% block content %}
             <form method="post" action="?login" name="loginform">
                 <fieldset class="w500p center">
                     <h2 class="mbs txtcenter">{% trans "login to your poche" %}</h2>
-                    {% if demo == 1 %}<p>{% trans "you are in demo mode, some features may be disabled." %}</p>{% endif %}
+                    {% if constant('MODE_DEMO') == 1 %}<p>{% trans "you are in demo mode, some features may be disabled." %}</p>{% endif %}
                                        <div class="row">
                                                <label class="col w150p" for="login">{% trans "Login" %}</label>
-                                               <input class="col" type="text" id="login" name="login" placeholder="Login" tabindex="1" autofocus {% if demo == 1 %}value="poche"{% endif %} />
+                                               <input class="col" type="text" id="login" name="login" placeholder="Login" tabindex="1" autofocus {% if constant('MODE_DEMO') == 1 %}value="poche"{% endif %} />
                                        </div>
 
                                        <div class="row">
                                                <label class="col w150p" for="password">{% trans "Password" %}</label>
-                                               <input class="col" type="password" id="password" name="password" placeholder="Password" tabindex="2" {% if demo == 1 %}value="poche"{% endif %} />
+                                               <input class="col" type="password" id="password" name="password" placeholder="Password" tabindex="2" {% if constant('MODE_DEMO') == 1 %}value="poche"{% endif %} />
                                        </div>
                                        <div class="row">
-                                               <label class="col w150p">{% trans "Stay signed in" %}</label>
+                                               <label class="col w150p" for="longlastingsession">{% trans "Stay signed in" %}</label>
                                                <div class="col">
-                                                       <input type="checkbox" name="longlastingsession" tabindex="3">
+                                                       <input type="checkbox" id="longlastingsession" name="longlastingsession" tabindex="3">
                                                        <small class="inbl">{% trans "(Do not check on public computers)" %}</small>
                                                </div>
                                        </div>
                                        <div class="row mts txtcenter">
-                                               <button class="bouton" type="submit" tabindex="4">{% trans "Sign in" %}</button>
+                                               <button class="bouton" type="submit" tabindex="4">{% trans "Login" %}</button>
                                        </div>
                 </fieldset>
                 <input type="hidden" name="returnurl" value="{{ referer }}">