|
1 | 1 | {% extends "socialaccount/base_entrance.html" %}
|
2 | 2 |
|
3 |
| -{% load i18n %} |
| 3 | +{% load trans blocktrans from i18n %} |
| 4 | +{% load crispy from crispy_forms_tags %} |
4 | 5 |
|
5 |
| -{% block head_title %}{% trans "Sign in" %}{% endblock %} |
| 6 | +{% block head_title %} |
| 7 | + {% trans "Sign in" %} |
| 8 | +{% endblock head_title %} |
6 | 9 |
|
7 |
| -{% block content %} |
| 10 | +{% block content_title_text %} |
8 | 11 | {% if process == "connect" %}
|
9 |
| - <h1> |
10 |
| - {% blocktrans with provider.name as provider trimmed %} |
11 |
| - Connect {{ provider }} |
| 12 | + {% if provider.id == "saml" %} |
| 13 | + {% blocktrans trimmed with organization_name=provider.organization.name %} |
| 14 | + Switch account to SAML for {{ organization_name }} |
12 | 15 | {% endblocktrans %}
|
13 |
| - </h1> |
14 |
| - |
15 |
| - <p> |
| 16 | + {% else %} |
16 | 17 | {% blocktrans with provider.name as provider trimmed %}
|
17 |
| - You are about to connect a new third party account from {{ provider }}. |
| 18 | + Connect {{ provider }} |
18 | 19 | {% endblocktrans %}
|
19 |
| - </p> |
| 20 | + {% endif %} |
20 | 21 | {% else %}
|
21 |
| - <h1> |
22 |
| - {% blocktrans with provider.name as provider trimmed %} |
23 |
| - Sign in via {{ provider }} |
24 |
| - {% endblocktrans %} |
25 |
| - </h1> |
| 22 | + {% blocktrans with provider.name as provider trimmed %} |
| 23 | + Sign in via {{ provider }} |
| 24 | + {% endblocktrans %} |
| 25 | + {% endif %} |
| 26 | +{% endblock content_title_text %} |
26 | 27 |
|
| 28 | +{% block content_body %} |
| 29 | + {% if process == "connect" %} |
| 30 | + {% if provider.id == "saml" %} |
| 31 | + <p> |
| 32 | + {% blocktrans trimmed with organization_name=provider.organization.name %} |
| 33 | + You are about to switch your account to use SAML to sign in to {{ organization_name }}. |
| 34 | + After this, you will need to sign in using the "Single sign-on" option on the login page. |
| 35 | + {% endblocktrans %} |
| 36 | + </p> |
| 37 | + {% else %} |
| 38 | + <p> |
| 39 | + {% blocktrans with provider.name as provider trimmed %} |
| 40 | + You are about to connect a new third party account from {{ provider }}. |
| 41 | + {% endblocktrans %} |
| 42 | + </p> |
| 43 | + {% endif %} |
| 44 | + {% else %} |
27 | 45 | <p>
|
28 | 46 | {% blocktrans with provider.name as provider trimmed %}
|
29 | 47 | You are about to sign in using a third party account from {{ provider }}.
|
|
33 | 51 |
|
34 | 52 | <form method="post" class="ui form">
|
35 | 53 | {% csrf_token %}
|
36 |
| - <button class="ui button" type="submit">{% trans "Continue" %}</button> |
| 54 | + <button class="ui primary button" type="submit">{% trans "Continue" %}</button> |
37 | 55 | </form>
|
38 |
| -{% endblock content %} |
| 56 | +{% endblock content_body %} |
0 commit comments