forked from Github-Mirrors/canaille
feat: more blocks for theming firstlogin, forgotten-password and
reset-password pages
This commit is contained in:
parent
61da0683bd
commit
0cbaa3b3bc
3 changed files with 76 additions and 58 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
{% block content %}
|
||||
<div class="loginform">
|
||||
{% block header %}
|
||||
<h3 class="ui top attached header">
|
||||
{% if logo_url %}
|
||||
<img class="ui image" src="{{ logo_url }}">
|
||||
|
@ -11,7 +12,9 @@
|
|||
{% trans %}First login{% endtrans %}
|
||||
</div>
|
||||
</h3>
|
||||
{% endblock %}
|
||||
|
||||
{% block message %}
|
||||
<div class="ui attached message">
|
||||
{% trans %}
|
||||
It seems this is the first time you are logging here. In order to finalize your
|
||||
|
@ -20,8 +23,11 @@
|
|||
on the "Send the initialization email" button below to send the email.
|
||||
{% endtrans %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
<div class="ui attached clearing segment">
|
||||
{% call fui.render_form(form) %}
|
||||
{% block buttons %}
|
||||
<div class="ui right aligned container">
|
||||
<div class="ui stackable buttons">
|
||||
|
||||
|
@ -29,6 +35,7 @@
|
|||
<button type="submit" name="action" value="sendmail" class="ui right floated primary button">{{ _("Send the initialization email") }}</button>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endcall %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
|
||||
{% block content %}
|
||||
<div class="loginform">
|
||||
{% block header %}
|
||||
<h3 class="ui top attached header">
|
||||
{% if logo_url %}
|
||||
<img class="ui image" src="{{ logo_url }}">
|
||||
|
@ -15,7 +16,9 @@
|
|||
{% trans %}Forgotten password{% endtrans %}
|
||||
</div>
|
||||
</h3>
|
||||
{% endblock %}
|
||||
|
||||
{% block message %}
|
||||
<div class="ui attached message">
|
||||
{% trans %}
|
||||
After this form is sent, if the email address or the login you provided
|
||||
|
@ -23,10 +26,15 @@
|
|||
to reset your password.
|
||||
{% endtrans %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
<div class="ui attached clearing segment">
|
||||
{% call fui.render_form(form) %}
|
||||
{% block fields %}
|
||||
{{ fui.render_field(form.login, icon="user") }}
|
||||
{% endblock %}
|
||||
|
||||
{% block buttons %}
|
||||
<div class="ui right aligned container">
|
||||
<div class="ui stackable buttons">
|
||||
{% if features.has_registration %}
|
||||
|
@ -42,6 +50,7 @@
|
|||
</button>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
{% endcall %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
{% block content %}
|
||||
<div class="loginform">
|
||||
{% block header %}
|
||||
<h3 class="ui top attached header">
|
||||
{% if logo_url %}
|
||||
<img class="ui image" src="{{ logo_url }}">
|
||||
|
@ -11,6 +12,7 @@
|
|||
{% trans %}Password reset{% endtrans %}
|
||||
</div>
|
||||
</h3>
|
||||
{% endblock %}
|
||||
|
||||
<div class="ui attached clearing segment">
|
||||
{{ fui.render_form(form, _("Password reset"), action=url_for("core.auth.reset", user=user, hash=hash)) }}
|
||||
|
|
Loading…
Reference in a new issue