Update login layout
This commit is contained in:
parent
82c37a2eb2
commit
4ce88a36b0
2 changed files with 30 additions and 13 deletions
|
|
@ -9,22 +9,16 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||
|
||||
{% block content %}
|
||||
<div class="card mx-auto login">
|
||||
<h3 class="card-header text-center">
|
||||
{% trans "Sign In" %}
|
||||
</h3>
|
||||
<div class="card-body">
|
||||
{% get_providers as socialaccount_providers %}
|
||||
{% if socialaccount_providers %}
|
||||
<p>{% blocktrans trimmed with site.name as site_name %}Please sign in with one
|
||||
of your existing third party accounts. Or, <a href="{{ signup_url }}">sign up</a>
|
||||
for a {{ site_name }} account and sign in below:{% endblocktrans %}</p>
|
||||
|
||||
<div class="socialaccount_ballot">
|
||||
<ul class="socialaccount_providers">
|
||||
<div class="d-grid col-6 mx-auto">
|
||||
{% include "socialaccount/snippets/provider_list.html" with process="login" %}
|
||||
</ul>
|
||||
<div class="login-or">{% trans 'or' %}</div>
|
||||
</div>
|
||||
<hr/>
|
||||
<p>{% blocktrans trimmed with site.name as site_name %}Please sign in with one
|
||||
of your existing third party accounts. Or, <a href="{{ signup_url }}">sign up</a>
|
||||
for a {{ site_name }} account and sign in below:{% endblocktrans %}</p>
|
||||
|
||||
{% include "socialaccount/snippets/login_extra.html" %}
|
||||
|
||||
|
|
@ -38,9 +32,11 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||
{% if redirect_field_value %}
|
||||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
|
||||
{% endif %}
|
||||
<button type="submit" class="btn btn-primary mt-2">{% trans "Sign In" %}</button>
|
||||
<a class="btn mt-2" href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
|
||||
<div class="d-grid col-6 mx-auto">
|
||||
<button type="submit" class="btn btn-primary btn-lg my-2">{% trans "Sign In" %}</button>
|
||||
</div>
|
||||
</form>
|
||||
<a class="link-secondary" href="{% url 'account_reset_password' %}">{% trans "Forgot Password?" %}</a>
|
||||
</div>
|
||||
</div>
|
||||
<p class="small text-center mt-1">{% trans "If any problem, please contact the server owners at" %} <code>photos[at]crans.org</code>.</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue