Skip to content
Snippets Groups Projects
Commit 34fc50e0 authored by Olimpia Magliulo's avatar Olimpia Magliulo
Browse files

Layout and indentation changes

parent 8988c471
No related branches found
No related tags found
No related merge requests found
...@@ -5,15 +5,13 @@ ...@@ -5,15 +5,13 @@
<h1>{{ pagetitle }}</h1> <h1>{{ pagetitle }}</h1>
<p>Please choose one of the following authentication methods: </p> <p>Please choose one of the following authentication methods: </p>
{%- if sources is empty %} {% if sources is empty -%}
<p>Please check your SimpleSAML configuration.<br> <p>Please check your SimpleSAML configuration.<br>
Follow the link and log in with administrator credentials. <a href="{{ loginurl }}">Admin login.</a></p> Follow the link and log in with administrator credentials. <a href="{{ loginurl }}">Admin login.</a></p>
{% else %}
{%- else %}
<ul> <ul>
{% for id, config in sources -%} {% for id, config in sources -%}
<li><a href="?as={{ id|url_encode }}">{{ config.name|translateFromArray|default(id) }}</a></li> <li><a href="?as={{ id|url_encode }}">{{ config.name|translateFromArray|default(id) }}</a></li>
{% endfor -%} {% endfor -%}
</ul> </ul>
{% endif %} {% endif %}
......
...@@ -29,11 +29,11 @@ ...@@ -29,11 +29,11 @@
</div> </div>
{% endif %} {% endif %}
<h2>{{ 'Enter your username and password'|trans }}</h2> <h1>{{ 'Enter your username and password'|trans }}</h1>
<p class="logintext">{{ 'A service has requested you to authenticate yourself. Please enter your username and password in the form below.'|trans }}</p> <p class="logintext">{{ 'A service has requested you to authenticate yourself. Please enter your username and password in the form below.'|trans }}</p>
<br>
<div class="center inline"> <div class="center">
<form class="pure-form pure-form-aligned center-form" action="?" method="post" name="f"> <form class="pure-form pure-form-aligned center-form" action="?" method="post" name="f">
<div class="form-align"> <div class="form-align">
...@@ -44,84 +44,77 @@ ...@@ -44,84 +44,77 @@
<div class="pure-control-group"> <div class="pure-control-group">
<label for="username">{{ 'Username'|trans }}</label> <label for="username">{{ 'Username'|trans }}</label>
<input id="username" {{ forceUsername ? 'disabled="disabled"' }} type="text" name="username" class="edge"{% spaceless %}
<input id="username" {{ forceUsername ? 'disabled="disabled"' }} type="text" name="username" {%- if not forceUsername %} tabindex="1" value="{{ username }}"{% endif %}{% endspaceless %}>
{% if rememberUsernameEnabled and not forceUsername -%}
{% spaceless %}{% if not forceUsername %} </div>
tabindex="1" value="{{ username }}"> <div class="pure-controls pure-form-message">
<label for="remember_username" class="pure-checkbox">
{% if rememberUsernameEnabled and not forceUsername %} <input id="remember_username" type="checkbox" tabindex="4"
<span class="pure-form-message-inline"> {{ rememberUsernameChecked ? 'checked="checked"' }} name="remember_username" value="Yes"/>
<input id="remember_username" type="checkbox" tabindex="4" <small>{{ 'Remember my username'|trans }}</small>
{{ rememberUsernameChecked ? 'checked="checked"' }} name="remember_username" value="Yes"/> </label>
<small>{{ 'Remember my username'|trans }}</small> {% endif -%}
</span>
{% endif %}
{% if rememberUsernameEnabled and not forceUsername %}{#for mobile#}{% endif %}
{% endif %}
{% endspaceless %}
</div> </div>
<div class="pure-control-group"> <div class="pure-control-group">
<label for="password">{{ 'Password'|trans}}</label> <label for="password">{{ 'Password'|trans}}</label>
<input id="password" type="password" tabindex="2" name="password" class="edge"/>
<input id="password" type="password" tabindex="2" name="password" /> {% if rememberMeEnabled -%}
</div>
{% if rememberMeEnabled %} <div class="pure-controls pure-form-message">
<span class="pure-form-message-inline"> <label for="remember_me" class="pure-checkbox">
<input id="remember_me" type="checkbox" tabindex="5" <input id="remember_me" type="checkbox" tabindex="5"
{{ ememberMeChecked ? 'checked="checked"' }} name="remember_me" value="Yes"/> {{ rememberMeChecked ? 'checked="checked"' }} name="remember_me" value="Yes"/>
<small>{{ 'Remember me'|trans }}</small> <small>{{ 'Remember me'|trans }}</small>
</span> </label>
{% endif %} {% endif -%}
</div> </div>
{% if organizations is defined -%}
{% if organizations is defined %}
<div class="pure-control-group"> <div class="pure-control-group">
<label for="organization">{{ 'Organization'|trans }}</label> <label for="organization">{{ 'Organization'|trans }}</label>
<div class="pure-select right pure-input-1-2 pure-input-sm-1-1"> <div class="pure-select right pure-input-1-2 pure-input-sm-1-1">
<select name="organization" class="selectize" id="organization" tabindex="3"> <select name="organization" class="selectize" id="organization" tabindex="3">
{{ selectedOrg ?: null }} {{ selectedOrg ?: null }}
{% for id, orgDesc in organizations %} {%- for id, orgDesc in organizations -%}
{% if id == selectedOrg %} {% if id == selectedOrg -%}
{% set selected = 'selected="selected"' %} {%- set selected = 'selected="selected"' %}
{% else %} {%- else -%}
{% set selected = '' %} {% set selected = '' -%}
{% endif %} {% endif -%}
{% if orgDesc %} {% if orgDesc -%}
<option value="{{ id }}" {{ selected }}>{{ orgDesc|trans }}</option> <option value="{{ id }}" {{ selected }}>{{ orgDesc|trans }}</option>
{% endif %} {% endif -%}
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
</div> <!--pure-control-group--> </div> <!--pure-control-group-->
{% endif %} {%- endif %}
</div> <!-- form-align--> </div> <!-- form-align-->
<div class="inline"> <br><br>
<button class="pure-button pure-button-primary pure-input-1-2 pure-input-sm-1-1 right" type ="submit" onclick="this.value='{{ 'Processing...'|trans }}'; this.disabled=true;" tabindex="6"> <button class="pure-button pure-button-primary pure-input-1-2 pure-input-sm-1-1 right" type="submit" onclick="this.value='{{ 'Processing...'|trans }}';" tabindex="6">
{{ 'Login'|trans }}
</button>
{{ 'Login'|trans }} {% for name, value in stateparams -%}
</button>
</div>
{% for name, value in stateparams %}
<input type="hidden" name="{{ name }}" value="{{ value }}" /> <input type="hidden" name="{{ name }}" value="{{ value }}" />
{% endfor %} {%- endfor %}
</form> </form>
</div><!--center inline-->
{% if links -%}
<ul>
{% for link in links %}
<li><a href="{{ link.href }}">{{ link['text']|trans }}</a></li>
{% endfor %}
</ul>
{%- endif %}
<br><br>
<div class="pure-form-message">
<strong>{{ 'Help! I don\'t remember my password.'|trans }}</strong>
<p>{{ 'Without your username and password you cannot authenticate yourself for access to the service. There may be someone that can help you. Consult the help desk at your organization!'|trans }}</p>
</div> </div>
{% if not links %}
<ul>
{% for link in links %}
<li><a href="{{ link.href }}">{{ link['text']|trans }}</a></li>
{% endfor %}
</ul>
{% endif %}
<div class="inline">
<h3>{{ 'Help! I don\'t remember my password.'|trans }}</h3>
<p>{{ 'Without your username and password you cannot authenticate yourself for access to the service. There may be someone that can help you. Consult the help desk at your organization!'|trans }}</p>
</div>
{% endblock %} {% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment