diff --git a/.gitignore b/.gitignore index 216bc8c..4afb8f2 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ djtracker.egg-info docs/build *.rst~ *.rst\~ +.tmp_*~ diff --git a/djtracker/templates/djtracker/blocks/issue_list.html b/djtracker/templates/djtracker/blocks/issue_list.html index 31edfc8..acd7cbb 100644 --- a/djtracker/templates/djtracker/blocks/issue_list.html +++ b/djtracker/templates/djtracker/blocks/issue_list.html @@ -12,7 +12,7 @@ {% endif %} {% for issue in issue_list %} - + {% if issues_with_project %} {{issue.project}} {% endif %} diff --git a/djtracker/templates/djtracker/djtracker.css b/djtracker/templates/djtracker/djtracker.css index 7297aeb..8d4ce07 100644 --- a/djtracker/templates/djtracker/djtracker.css +++ b/djtracker/templates/djtracker/djtracker.css @@ -189,21 +189,30 @@ td.col { background:#E5ECF9 none repeat scroll 0 0; } -.prio1, .prio2, .prio3 { +.prio-critical, .prio-urgent { background-color:#FFDEDE; } /* form styling */ -.errorlist { - color: red; +form th { + text-align: left; + vertical-align: top; } -ul.errorlist { +ul.errorlist, #mainwrap ul.errorlist { + margin: 0; + padding: 0; list-style: none; - margin: 2px !important; - display: inline; } +.errorlist li { + color: red; + display: block; + margin: 0 0 3px; + padding: 4px 5px; +} + + /* COPYRIGHT INFO */ #copyright { clear: both; diff --git a/djtracker/templates/djtracker/login.html b/djtracker/templates/djtracker/profile/login.html similarity index 78% rename from djtracker/templates/djtracker/login.html rename to djtracker/templates/djtracker/profile/login.html index 63f759c..64e8d66 100644 --- a/djtracker/templates/djtracker/login.html +++ b/djtracker/templates/djtracker/profile/login.html @@ -3,7 +3,6 @@ {% if form.errors %}

Your username and password didn't match. Please try again.

{% endif %} -
@@ -14,10 +13,10 @@ -
{{ form.password.label_tag }} {{ form.password }}
- + - +
+

Forgot your password? Click here to get a fresh one.

{% endblock %} diff --git a/djtracker/templates/djtracker/logout.html b/djtracker/templates/djtracker/profile/logout.html similarity index 100% rename from djtracker/templates/djtracker/logout.html rename to djtracker/templates/djtracker/profile/logout.html diff --git a/djtracker/templates/djtracker/profile/password_change_done.html b/djtracker/templates/djtracker/profile/password_change_done.html new file mode 100644 index 0000000..5698f58 --- /dev/null +++ b/djtracker/templates/djtracker/profile/password_change_done.html @@ -0,0 +1,12 @@ +{% extends "djtracker/base.html" %} +{% load i18n %} + +{% block title %}{% trans 'Password change successful' %}{% endblock %} + +{% block content %} + +

{% trans 'Password change successful' %}

+ +

{% trans 'Your password was changed.' %}

+ +{% endblock %} diff --git a/djtracker/templates/djtracker/profile/password_change_form.html b/djtracker/templates/djtracker/profile/password_change_form.html new file mode 100644 index 0000000..a28f942 --- /dev/null +++ b/djtracker/templates/djtracker/profile/password_change_form.html @@ -0,0 +1,17 @@ +{% extends "djtracker/base.html" %} +{% load i18n %} + +{% block title %}{% trans 'Password change' %}{% endblock %} + +{% block content %} + +

{% trans 'Password change' %}

+ +

{% trans "Please enter your old password, for security's sake, and then enter your new password twice so we can verify you typed it in correctly." %}

+ +
+ {{form.as_table}}
+ +
+ +{% endblock %} diff --git a/djtracker/templates/djtracker/profile/password_reset_complete.html b/djtracker/templates/djtracker/profile/password_reset_complete.html new file mode 100644 index 0000000..c6d03bf --- /dev/null +++ b/djtracker/templates/djtracker/profile/password_reset_complete.html @@ -0,0 +1,14 @@ +{% extends "djtracker/base.html" %} +{% load i18n %} + +{% block title %}{% trans 'Password reset complete' %}{% endblock %} + +{% block content %} + +

{% trans 'Password reset complete' %}

+ +

{% trans "Your password has been set. You may go ahead and log in now." %}

+ +

{% trans 'Log in' %}

+ +{% endblock %} diff --git a/djtracker/templates/djtracker/profile/password_reset_confirm.html b/djtracker/templates/djtracker/profile/password_reset_confirm.html new file mode 100644 index 0000000..f27ff84 --- /dev/null +++ b/djtracker/templates/djtracker/profile/password_reset_confirm.html @@ -0,0 +1,27 @@ +{% extends "djtracker/base.html" %} +{% load i18n %} + +{% block title %}{% trans 'Password reset' %}{% endblock %} + +{% block content %} + +{% if validlink %} + +

{% trans 'Enter new password' %}

+ +

{% trans "Please enter your new password twice so we can verify you typed it in correctly." %}

+ +
+ {{form.as_table}}
+ +
+ +{% else %} + +

{% trans 'Password reset unsuccessful' %}

+ +

{% trans "The password reset link was invalid, possibly because it has already been used. Please request a new password reset." %}

+ +{% endif %} + +{% endblock %} diff --git a/djtracker/templates/djtracker/profile/password_reset_done.html b/djtracker/templates/djtracker/profile/password_reset_done.html new file mode 100644 index 0000000..82c2d19 --- /dev/null +++ b/djtracker/templates/djtracker/profile/password_reset_done.html @@ -0,0 +1,12 @@ +{% extends "djtracker/base.html" %} +{% load i18n %} + +{% block title %}{% trans 'Password reset successful' %}{% endblock %} + +{% block content %} + +

{% trans 'Password reset successful' %}

+ +

{% trans "We've e-mailed you instructions for setting your password to the e-mail address you submitted. You should be receiving it shortly." %}

+ +{% endblock %} diff --git a/djtracker/templates/djtracker/profile/password_reset_form.html b/djtracker/templates/djtracker/profile/password_reset_form.html new file mode 100644 index 0000000..0b42f18 --- /dev/null +++ b/djtracker/templates/djtracker/profile/password_reset_form.html @@ -0,0 +1,17 @@ +{% extends "djtracker/base.html" %} +{% load i18n %} + +{% block title %}{% trans "Password reset" %}{% endblock %} + +{% block content %} + +

{% trans "Password reset" %}

+ +

{% trans "Forgotten your password? Enter your e-mail address below, and we'll e-mail instructions for setting a new one." %}

+ +
+{{form.as_table}}
+ +
+ +{% endblock %} diff --git a/djtracker/templates/djtracker/user_profile.html b/djtracker/templates/djtracker/user_profile.html index 6f70542..5e44817 100644 --- a/djtracker/templates/djtracker/user_profile.html +++ b/djtracker/templates/djtracker/user_profile.html @@ -1,36 +1,36 @@ {% extends "djtracker/base.html" %} + +{% block head %} + +{% endblock %} + {% block content %} {% if user %} -

User: {{ user.username }}

+

change passwordUser: {{ user.username }}

IM Information: {{ profile.instant_messanger }}

{% if request.user.is_authenticated %}

Email: {{ user.email }} - {% endif %} -


- {% if assigned %} - {% for issue in assigned %} - {% if forloop.first %} -

Assigned Issues:

- - {% endif %} - {% endfor %} - {% endif %} + {% endif %} + {% with 1 as issues_with_project %} + {% if assigned %} +
+

Issues assigned to me

+ {% with assigned as issue_list %} + {% include 'djtracker/blocks/issue_list.html' %} + {% endwith %} +
+ {% endif %} {% if created %} - {% for issue in created %} - {% if forloop.first %} -

Created Issues:

- - {% endif %} - {% endfor %} +
+

Issues created by me

+ {% with created as issue_list %} + {% include 'djtracker/blocks/issue_list.html' %} + {% endwith %} +
{% endif %} + {% endwith %} {% endif %} {% endblock %} diff --git a/djtracker/templates/registration/registration_form.html b/djtracker/templates/registration/registration_form.html index 2592d8a..f301af4 100644 --- a/djtracker/templates/registration/registration_form.html +++ b/djtracker/templates/registration/registration_form.html @@ -1,7 +1,7 @@ {% extends "djtracker/base.html" %} {% block content %}
- {{ form.as_p }} + {{ form.as_table }}
{% endblock %} diff --git a/djtracker/urls.py b/djtracker/urls.py index 1f2742c..80e63ac 100644 --- a/djtracker/urls.py +++ b/djtracker/urls.py @@ -48,10 +48,27 @@ urlpatterns += patterns('', (r'^profile/login/$', 'django.contrib.auth.views.login', - {'template_name': 'djtracker/login.html'}, + {'template_name': 'djtracker/profile/login.html'}, 'project_login'), (r'^profile/logout/$', 'django.contrib.auth.views.logout', - {'template_name': 'djtracker/logout.html', 'next_page': '/'}, - 'project_logout'), - + {'template_name': 'djtracker/profile/logout.html', 'next_page': '/'}, + 'project_logout'), + (r'^profile/password_change/$', 'django.contrib.auth.views.password_change', + {'template_name': 'djtracker/profile/password_change_form.html'}, + 'password_change'), + (r'^profile/password_change/done/$', 'django.contrib.auth.views.password_change_done', + {'template_name': 'djtracker/profile/password_change_done.html'}, + 'password_change_done'), + (r'^profile/password_reset/$', 'django.contrib.auth.views.password_reset', + {'template_name': 'djtracker/profile/password_reset_form.html'}, + 'password_reset'), + (r'^profile/password_reset/done/$', 'django.contrib.auth.views.password_reset_done', + {'template_name': 'djtracker/profile/password_reset_done.html'}, + 'password_reset_done'), + (r'^profile/reset/(?P[0-9A-Za-z]+)-(?P.+)/$', 'django.contrib.auth.views.password_reset_confirm', + {'template_name': 'djtracker/profile/password_reset_confirm.html'}, + 'password_reset_confirm'), + (r'^profile/reset/done/$', 'django.contrib.auth.views.password_reset_complete', + {'template_name': 'djtracker/profile/password_reset_complete.html'}, + 'password_reset_complete'), )