Add login properties to right menu.
--- a/pytask/templates/_left_sidebar.html Mon Jan 17 05:34:48 2011 +0530
+++ b/pytask/templates/_left_sidebar.html Mon Jan 17 05:34:59 2011 +0530
@@ -9,31 +9,4 @@
<li><a href="{% url browse_tasks %}" title="tasks">Tasks</a></li>
<li><a href="{% url browse_textbooks %}" title="textbook">Textbooks</a></li>
<br />
-
- {% if user.is_authenticated %}
-
- <li>
- <a href="{% url browse_notifications %}" title="notifications">
- {{ user|notf_dsp }}
- </a>
- </li>
- <br>
- <li><a href="{% url view_profile %}">Profile</a></li>
- <li><a href="{% url auth_logout %}">Logout</a></li>
-
- {% else %}
-
- <li>
- <a href="{% url registration_register %}" title="register">
- Register
- </a>
- </li>
- <li>
- <a href="{% url auth_login %}" title="login">
- Login
- </a>
- </li>
-
- {% endif %}
-
</ul>
\ No newline at end of file
--- a/pytask/templates/_right_sidebar.html Mon Jan 17 05:34:48 2011 +0530
+++ b/pytask/templates/_right_sidebar.html Mon Jan 17 05:34:59 2011 +0530
@@ -7,32 +7,42 @@
Login Form
{% endif %}
</div>
-<ul id="nav">
- {% if user.is_authenticated %}
-
+{% if user.is_authenticated %}
+ <ul id="nav">
<li>
<a href="{% url browse_notifications %}" title="notifications">
{{ user|notf_dsp }}
</a>
</li>
<br>
- <li><a href="{% url view_profile %}">Profile</a></li>
+ <li><a href="{% url view_profile %}">View Profile</a></li>
<li><a href="{% url auth_logout %}">Logout</a></li>
+ </ul>
+{% else %}
- {% else %}
+ <form action="{% url auth_login %}" method="post">
+ <div id="loginform">
+ <div id="field">
+ <label for="username">Username</label>
+ <input type="text" name="username" />
+ </div>
+ <div id="field">
+ <label for="password">Password</label>
+ <input type="password" name="password" />
+ </div>
+ <p class="submit"><button type="submit">Login</button></p>
+ </div>
+ </form>
- <li>
+ <div id="rightnav">
+ <div id="register">
<a href="{% url registration_register %}" title="register">
Register
</a>
- </li>
- <li>
- <a href="{% url auth_login %}" title="login">
- Login
- </a>
- </li>
+
+ <a href="{% url auth_password_reset %}">Forgot password?</a>
+ </div>
+ </div>
- {% endif %}
-
-</ul>
\ No newline at end of file
+{% endif %}