This repository has been archived by the owner on Sep 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pull in mediathread login form as-is
- Loading branch information
Showing
2 changed files
with
197 additions
and
23 deletions.
There are no files selected for viewing
79 changes: 56 additions & 23 deletions
79
ccnmtldjango/template/+package+/templates/registration/login.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,62 @@ | ||
{% extends "base.html" %} | ||
{% load bootstrap %} | ||
{% block content %} | ||
|
||
<h2>Choose a Login Option...</h2> | ||
|
||
<form method="get" action="{{ wind_base }}login" class="form well"> | ||
<input type="hidden" name="service" value="{{ wind_service }}" /> | ||
<input type="hidden" name="destination" value="http{% if request.is_secure %}s{% endif %}://{{ request.get_host }}/accounts/windlogin/?next={{ next }}" /> | ||
<p>If you have a Columbia University Network ID (UNI)... </p> | ||
<input type="submit" value="LOG IN" class="btn btn-primary"/></p> | ||
</form> | ||
|
||
<form method="post" action="." class="form well"> | ||
<p>If you have a project account...</p> | ||
{% block title %} | ||
Please Login | ||
{% endblock %} | ||
|
||
<label for="id_username">{{ form.username|bootstrap }}</label> | ||
<label for="id_password">{{ form.password|bootstrap }}</label> | ||
{% block usernav %}{% endblock %} | ||
|
||
<input type="submit" value="LOG IN" class="btn btn-primary" /> | ||
<input type="hidden" name="next" value="{{ next }}" /> | ||
</form> | ||
{% block content %} | ||
|
||
<p>Otherwise, you may <a href="/registration/register/" | ||
class="btn btn-large btn-info add-box-shadow" id="signup">Sign up</a> for an account.</p> | ||
<div class="loginbox-container columbia"> | ||
<div class="loginbox"> | ||
<h2>Choose a login option...</h2> | ||
<div class="content"> | ||
{% if wind_base %} | ||
<form method="get" action="{{ wind_base }}login"> | ||
{% csrf_token %} | ||
<input type="hidden" name="service" value="{{ wind_service }}" /> | ||
<input type="hidden" name="destination" value="http://{{ request.get_host }}/accounts/windlogin/?next={{ next|urlencode }}" /> | ||
<p>If you have a Columbia University Network ID (UNI)...</p> | ||
<input class="regbutton" type="submit" value="Columbia Log In" /> | ||
</form> | ||
{% endif %} | ||
|
||
<p class="smalltxt"><a href="http://cuit.columbia.edu/cuit/manage-my-uni" title="Learn more about UNI" target="_blank">What is a UNI?</a></p> | ||
<!-- End UNI LOG IN --> | ||
|
||
<hr class="seperator" /> | ||
|
||
{% if form.errors %} | ||
<p class="errornote"> | ||
<span> | ||
<b>ERROR:</b> Invalid username or password. | ||
</span> | ||
Please try again. Note that both username and password are case-sensitive. | ||
</p> | ||
{% endif %} | ||
|
||
<p>If you have a guest account...</p> | ||
<form id="login-local" name="login_local" method="post" action="."> | ||
{% csrf_token %} | ||
<div class="login-local-form" {% if not form.errors %}style="display: none"{% endif %}> | ||
<div class="fieldwrapper"> | ||
<label for="id_username">Username:</label> | ||
{{ form.username }} | ||
</div><!-- fieldwrapper --> | ||
|
||
<div class="fieldwrapper"> | ||
<label for="id_password">Password:</label> | ||
{{ form.password }} | ||
</div><!-- fieldwrapper --> | ||
</div> | ||
<input class="regbutton" type="button" value="Guest Log In" {% if form.errors %}style="display: none"{% endif %} | ||
onclick="jQuery('.login-local-form').show(); jQuery(this).hide(); return false;"/> | ||
<input class="regbutton login-local-form" type="submit" value="Log In" {% if not form.errors %}style="display: none;"{% endif %} /> | ||
<input type="hidden" name="next" value="{{ next|urlencode }}" /> | ||
</form> | ||
<p class="smalltxt"><a href="/registration/register/" title="Create your new project account">Need a new account?</a></p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{% endblock %} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters