update user setting page

This commit is contained in:
Oskar Hahn 2012-07-10 02:46:00 +02:00
parent 403f8e7917
commit 96aca54f61
3 changed files with 18 additions and 10 deletions

View File

@ -2,9 +2,14 @@
{% load i18n %}
{% block title %}{{ block.super }} - {%trans "New password" %}{% endblock %}
{% block title %}{{ block.super }} {% trans "Password Settings" %}{% endblock %}
{% block submenu %}
<h4 class="sectiontitle">{% trans "User Settings" %}</h4>
<ul>
<li><a href="{% url user_settings %}">{% trans "Personal Settings" %}</a></li>
<li class="selected"><a href="{% url password_change %}">{% trans "Password Settings" %}</a></li>
</ul>
{% endblock %}
{% block content %}
@ -16,8 +21,8 @@
<button class="button" type="submit">
<span class="icon ok">{%trans 'Save' %}</span>
</button>
<a href='{% url item_overview %}'>
<button class="button" type="button" onclick="window.location='{% url item_overview %}'">
<a href=''>
<button class="button" type="button">
<span class="icon cancel">{%trans 'Cancel' %}</span>
</button>
</a>

View File

@ -2,13 +2,18 @@
{% load i18n %}
{% block title %}{{ block.super }} - {%trans "Your Settings" %}{% endblock %}
{% block title %}{{ block.super }} {% trans "Personal Settings" %}{% endblock %}
{% block submenu %}
<h4 class="sectiontitle">{% trans "User Settings" %}</h4>
<ul>
<li class="selected"><a href="{% url user_settings %}">{% trans "Personal Settings" %}</a></li>
<li><a href="{% url password_change %}">{% trans "Password Settings" %}</a></li>
</ul>
{% endblock %}
{% block content %}
<h1>{%trans "Your Settings" %}</h1>
<h1>{% trans "Personal Settings" %}</h1>
<form action="" method="post">{% csrf_token %}
{{ form_user.as_p }}
@ -16,12 +21,10 @@
<button class="button" type="submit">
<span class="icon ok">{%trans 'Save' %}</span>
</button>
<a href='{% url item_overview %}'>
<button class="button" type="button" onclick="window.location='{% url item_overview %}'">
<a href=''>
<button class="button" type="button">
<span class="icon cancel">{%trans 'Cancel' %}</span>
</button>
</a>
</form>
<a href="{% url password_change %}">{% trans 'Change your password' %}</a>
<p></p>
{% endblock %}

View File

@ -26,7 +26,7 @@
{% if user.is_authenticated %}
<li>|<a href="{% url user_logout %}">{%trans "Logout" %}</a></li>
{% url user_settings as url_usersettings %}
<li>|<a href="{% url user_settings %}">{% if request.path == url_usersettings %}<strong>{% endif %}{%trans "User Settings" %}{% if request.path == url_usersettings %}</strong>{% endif %}</a></li>
<li>|<a href="{% url user_settings %}">{% if request.path == url_usersettings %}<strong>{% endif %}{% trans "User Settings" %}{% if request.path == url_usersettings %}</strong>{% endif %}</a></li>
<li>{%trans "Welcome" %}, <strong>{{ user.username }}</strong></li>
{% else %}
<li><a href="{% url user_login %}">{%trans "Login" %}</a></li>