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 %}
|
{% block content %}
|
||||||
<div class="loginform">
|
<div class="loginform">
|
||||||
|
{% block header %}
|
||||||
<h3 class="ui top attached header">
|
<h3 class="ui top attached header">
|
||||||
{% if logo_url %}
|
{% if logo_url %}
|
||||||
<img class="ui image" src="{{ logo_url }}">
|
<img class="ui image" src="{{ logo_url }}">
|
||||||
|
@ -11,7 +12,9 @@
|
||||||
{% trans %}First login{% endtrans %}
|
{% trans %}First login{% endtrans %}
|
||||||
</div>
|
</div>
|
||||||
</h3>
|
</h3>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block message %}
|
||||||
<div class="ui attached message">
|
<div class="ui attached message">
|
||||||
{% trans %}
|
{% trans %}
|
||||||
It seems this is the first time you are logging here. In order to finalize your
|
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.
|
on the "Send the initialization email" button below to send the email.
|
||||||
{% endtrans %}
|
{% endtrans %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
<div class="ui attached clearing segment">
|
<div class="ui attached clearing segment">
|
||||||
{% call fui.render_form(form) %}
|
{% call fui.render_form(form) %}
|
||||||
|
{% block buttons %}
|
||||||
<div class="ui right aligned container">
|
<div class="ui right aligned container">
|
||||||
<div class="ui stackable buttons">
|
<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>
|
<button type="submit" name="action" value="sendmail" class="ui right floated primary button">{{ _("Send the initialization email") }}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endblock %}
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="loginform">
|
<div class="loginform">
|
||||||
|
{% block header %}
|
||||||
<h3 class="ui top attached header">
|
<h3 class="ui top attached header">
|
||||||
{% if logo_url %}
|
{% if logo_url %}
|
||||||
<img class="ui image" src="{{ logo_url }}">
|
<img class="ui image" src="{{ logo_url }}">
|
||||||
|
@ -15,7 +16,9 @@
|
||||||
{% trans %}Forgotten password{% endtrans %}
|
{% trans %}Forgotten password{% endtrans %}
|
||||||
</div>
|
</div>
|
||||||
</h3>
|
</h3>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block message %}
|
||||||
<div class="ui attached message">
|
<div class="ui attached message">
|
||||||
{% trans %}
|
{% trans %}
|
||||||
After this form is sent, if the email address or the login you provided
|
After this form is sent, if the email address or the login you provided
|
||||||
|
@ -23,10 +26,15 @@
|
||||||
to reset your password.
|
to reset your password.
|
||||||
{% endtrans %}
|
{% endtrans %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
<div class="ui attached clearing segment">
|
<div class="ui attached clearing segment">
|
||||||
{% call fui.render_form(form) %}
|
{% call fui.render_form(form) %}
|
||||||
|
{% block fields %}
|
||||||
{{ fui.render_field(form.login, icon="user") }}
|
{{ fui.render_field(form.login, icon="user") }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block buttons %}
|
||||||
<div class="ui right aligned container">
|
<div class="ui right aligned container">
|
||||||
<div class="ui stackable buttons">
|
<div class="ui stackable buttons">
|
||||||
{% if features.has_registration %}
|
{% if features.has_registration %}
|
||||||
|
@ -42,6 +50,7 @@
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endblock %}
|
||||||
{% endcall %}
|
{% endcall %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="loginform">
|
<div class="loginform">
|
||||||
|
{% block header %}
|
||||||
<h3 class="ui top attached header">
|
<h3 class="ui top attached header">
|
||||||
{% if logo_url %}
|
{% if logo_url %}
|
||||||
<img class="ui image" src="{{ logo_url }}">
|
<img class="ui image" src="{{ logo_url }}">
|
||||||
|
@ -11,6 +12,7 @@
|
||||||
{% trans %}Password reset{% endtrans %}
|
{% trans %}Password reset{% endtrans %}
|
||||||
</div>
|
</div>
|
||||||
</h3>
|
</h3>
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
<div class="ui attached clearing segment">
|
<div class="ui attached clearing segment">
|
||||||
{{ fui.render_form(form, _("Password reset"), action=url_for("core.auth.reset", user=user, hash=hash)) }}
|
{{ fui.render_form(form, _("Password reset"), action=url_for("core.auth.reset", user=user, hash=hash)) }}
|
||||||
|
|
Loading…
Reference in a new issue