|
4 | 4 | {% block content %} |
5 | 5 | <h2>{{ pagetitle }}</h2> |
6 | 6 |
|
| 7 | + {% if idplist|length == 0 %} |
| 8 | + <div class="message-box message-box-error">{{ "No identity providers found. Cannot continue." | trans }}</div> |
| 9 | + {% else %} |
| 10 | + |
7 | 11 | <p>{{ "Please select the identity provider where you want to authenticate:" | trans }}</p> |
8 | 12 | <form method="get" action="{{ urlpattern }}"> |
9 | 13 | <input type="hidden" name="entityID" value="{{ entityID }}"> |
10 | 14 | <input type="hidden" name="return" value="{{ return }}"> |
11 | 15 | <input type="hidden" name="returnIDParam" value="{{ returnIDParam }}"> |
12 | 16 | {% if rememberenabled %} |
13 | | - <p><input type="checkbox" name="remember" id="remember" value="1"> |
14 | | - <label for="remember">{{ 'Remember my choice' | trans }}</label></p> |
| 17 | + <div class="pure-control-group"> |
| 18 | + <label for="remember"> |
| 19 | + <input type="checkbox" name="remember" id="remember" value="1"{% if rememberchecked %} checked{% endif %}> |
| 20 | + {{ 'Remember my choice' | trans }} |
| 21 | + </label> |
| 22 | + </div> |
15 | 23 | {% endif %} |
16 | 24 |
|
17 | 25 | {% for idpentry in idplist %} |
18 | 26 | {% if idpentry.entityid == preferredidp %} |
19 | | - <div class="preferredidp"> |
| 27 | + <div class="idp preferredidp pure-g"> |
| 28 | + <div class="pure-u-1-8"> |
| 29 | + <button type="submit" class="pure-button pure-button-primary" name="idp_{{ idpentry.entityid }}">{{'Select'|trans}}</button> |
| 30 | + </div> |
20 | 31 | {% if idpentry.iconurl is defined %} |
21 | | - <img class="float-l" src="{{ idpentry.iconurl }}"> |
| 32 | + <div class="pure-u-1-8"> |
| 33 | + <img src="{{ idpentry.iconurl }}" alt=""> |
| 34 | + </div> |
22 | 35 | {% endif %} |
23 | | - <h3><i class="fa fa-star"></i> {{ idpentry.name }}</h3> |
24 | | - {% if idpentry.description is defined %} |
25 | | - <p>{{ idpentry.description }}</p> |
| 36 | + <div class="pure-u-7-8"> |
| 37 | + <span class="idpname"><i class="fa fa-star"></i> {{ idpentry.name }}</span> |
| 38 | + {% if idpentry.description is defined and idpentry.description != idpentry.name %} |
| 39 | + <br><span class="idpdesc">{{ idpentry.description }}</span> |
26 | 40 | {% endif %} |
27 | | - <button type="submit" class="btn" name="idp_{{ idpentry.entityid }}">{{'Select'|trans}}</button> |
| 41 | + </div> |
28 | 42 | </div> |
29 | 43 | {% endif %} |
30 | 44 | {% endfor %} |
31 | 45 |
|
32 | 46 | {% for idpentry in idplist %} |
33 | 47 | {% if idpentry.entityid != preferredidp %} |
| 48 | + <div class="idp pure-g"> |
| 49 | + <div class="pure-u-1-8"> |
| 50 | + <button type="submit" class="pure-button" name="idp_{{ idpentry.entityid }}">{{'Select'|trans}}</button> |
| 51 | + </div> |
34 | 52 | {% if idpentry.iconurl is defined %} |
35 | | - <img class="float-l" src="{{ idpentry.iconurl }}"> |
| 53 | + <div class="pure-u-1-8"> |
| 54 | + <img src="{{ idpentry.iconurl }}" alt=""> |
| 55 | + </div> |
36 | 56 | {% endif %} |
37 | | - <h3>{{ idpentry.name }}</h3> |
38 | | - {% if idpentry.description is defined %} |
39 | | - <p>{{ idpentry.description }}</p> |
| 57 | + <div class="pure-u-7-8"> |
| 58 | + <span class="idpname">{{ idpentry.name }}</span> |
| 59 | + {% if idpentry.description is defined and idpentry.description != idpentry.name %} |
| 60 | + <br><span class="idpdesc">{{ idpentry.description }}</span> |
40 | 61 | {% endif %} |
41 | | - <button type="submit" class="btn" name="idp_{{ idpentry.entityid }}">{{'Select'|trans}}</button> |
| 62 | + </div> |
| 63 | + </div> |
42 | 64 | {% endif %} |
43 | 65 | {% endfor %} |
44 | 66 | </form> |
| 67 | + {% endif %} |
45 | 68 | {% endblock %} |
0 commit comments