Login Page

This commit is contained in:
ashok 2015-09-06 22:22:05 +05:30 committed by Sunil Mohan Adapa
parent 91eaf3301d
commit 5f9ddae0a9
2 changed files with 12 additions and 7 deletions

View File

@ -95,13 +95,13 @@
<span class="glyphicon-question-sign glyphicon nav-icon"></span>
</a>
</li>
{% if user.is_authenticated %}
<li>
<a href="{% url 'system:index' %}">
<span class="glyphicon-cog glyphicon nav-icon"></span>
</a>
</li>
<li class="dropdown">
{% if user.is_authenticated %}
<a href="{% url 'users:edit' user.username %}"
class="dropdown-toggle" data-toggle="dropdown"
role="button" aria-expanded="false">
@ -117,12 +117,15 @@
<li><a href="{% url 'users:logout' %}" title="Log out">
Log out</a></li>
</ul>
{% else %}
</li>
{% else %}
<li>
<a href="{% url 'users:login' %}" title="Log in">
<i class="glyphicon glyphicon-user nav-icon"></i>
Log in</a>
{% endif %}
</li>
</li>
{% endif %}
{% if user.is_authenticated %}
<li id="logout-nojs">
<a href="{% url 'users:logout' %}" title="Log out">

View File

@ -26,12 +26,14 @@
<div class="row">
{% csrf_token %}
<div class="col-sm-4">
<div class="col-sm-4 col-md-offset-2">
{{ form|bootstrap }}
</div>
<div class="text-center">
<input type="submit" class="btn btn-primary" value="Login" />
</div>
</div>
</div>
<input type="submit" class="btn btn-primary" value="Login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>