Add login templates
This commit is contained in:
parent
2318ccb429
commit
6b785e3722
2 changed files with 38 additions and 0 deletions
27
roles/ipsilon/files/templates/login/form.html
Normal file
27
roles/ipsilon/files/templates/login/form.html
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
{% extends "layout.html" %}
|
||||||
|
{% block title %}Login{% endblock %}
|
||||||
|
{% block toptext %}
|
||||||
|
{{ login_target }} is asking to authenticate using Ipsilon
|
||||||
|
{% endblock %}
|
||||||
|
{% block main %}
|
||||||
|
Login with your credentials
|
||||||
|
{% if error %}<p>{{error}}</p>{% endif %}
|
||||||
|
<div>
|
||||||
|
<form method="post" action="{{ action }}" enctype="application/x-www-form-urlencoded">
|
||||||
|
<input type="hidden" name="ipsilon_transaction_id" id="ipsilon_transaction_id" value="{{ ipsilon_transaction_id}}"/>
|
||||||
|
<p class="form_item">
|
||||||
|
<input id="username" name="login_name" placeholder="Username" autofocus value="{{ username | e }}" />
|
||||||
|
</p>
|
||||||
|
<p class="form_item">
|
||||||
|
<input id="password" name="login_password" type="password" placeholder="Password" />
|
||||||
|
</p>
|
||||||
|
<p class="form_item">
|
||||||
|
<input type="submit" id="loginbutton" value="Login">
|
||||||
|
{% if cancel_url %}
|
||||||
|
<a href="{{ cancel_url }}" id="cancelbutton" title="Cancel">Cancel</a>
|
||||||
|
{% endif %}
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
|
11
roles/ipsilon/files/templates/login/index.html
Normal file
11
roles/ipsilon/files/templates/login/index.html
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{% extends "layout.html" %}
|
||||||
|
{% block title %}Login{% endblock %}
|
||||||
|
{% block toptext %}
|
||||||
|
{{ login_target }} is asking to authenticate using FedOAuth
|
||||||
|
{% endblock %}
|
||||||
|
{% block main %}
|
||||||
|
<div>
|
||||||
|
Redirecting... {{ redirect }}
|
||||||
|
</div>
|
||||||
|
{% endblock %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue