aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Chatzimichos <tampakrap@gmail.com>2013-09-04 11:03:41 -0700
committerTheo Chatzimichos <tampakrap@gmail.com>2013-09-04 11:03:41 -0700
commit6ca78c04886ca3050c952ff0a36098c510b911c9 (patch)
treef5c4885442d87d5e43b9601b793854c7bc863e4f /okupy/templates/settings-profile.html
parentMerge pull request #81 from tampakrap/test_ldapuser (diff)
parentadd integration tests for settings (diff)
downloadidentity.gentoo.org-6ca78c04886ca3050c952ff0a36098c510b911c9.tar.gz
identity.gentoo.org-6ca78c04886ca3050c952ff0a36098c510b911c9.tar.bz2
identity.gentoo.org-6ca78c04886ca3050c952ff0a36098c510b911c9.zip
Merge pull request #82 from dastergon/settings
add support for user settings
Diffstat (limited to 'okupy/templates/settings-profile.html')
-rw-r--r--okupy/templates/settings-profile.html54
1 files changed, 54 insertions, 0 deletions
diff --git a/okupy/templates/settings-profile.html b/okupy/templates/settings-profile.html
new file mode 100644
index 0000000..05cd57c
--- /dev/null
+++ b/okupy/templates/settings-profile.html
@@ -0,0 +1,54 @@
+{% extends "base.html" %}
+
+{% block content %}
+<div id="pageRow" class="container">
+ <div class="row">
+ <div id="page" class="span10">
+ <div>
+ <h1>Profile Information</h1>
+ <h3>Change your basic account information</h3>
+ <div class="form well">
+ <form action="." method="POST">{% csrf_token %}
+ {{ profile_settings.errors }}
+ {{ profile_settings.non_field_errors }}
+ <div class="row-fluid">
+ {{ profile_settings.first_name.label_tag }}
+ <input name="first_name" type="text" value="{{ user_profile_info.first_name }}" /> {{ profile_settings.first_name.errors|striptags }}
+ </div>
+ <div class="row-fluid">
+ {{ profile_settings.last_name.label_tag }}
+ <input name="last_name" type="text" value="{{ user_profile_info.last_name }}" /> {{ profile_settings.last_name.errors|striptags }}
+ </div>
+ <div class="row-fluid">
+ {{ profile_settings.email.label_tag }}
+ <input name="email" type="text" value="{{ user_profile_info.email.0 }}" /> {{ profile_settings.email.errors|striptags }}
+ </div>
+ <!-- <div class="row-fluid">
+ {{ profile_settings.birthday.label_tag }}
+ <input name="birthday" type="text" value="{{ user_profile_info.birthday }}" /> {{ profile_settings.birthday.errors|striptags }}
+ </div> -->
+ <div class="row-fluid">
+ {{ profile_settings.timezone.label_tag }}
+ {{ profile_settings.timezone }}
+ <div class="row-fluid">
+ {{ profile_settings.old_password.label_tag }}
+ {{ profile_settings.old_password }} {{ profile_settings.old_password.non_field_errors|striptags }}
+ </div>
+ <div class="row-fluid">
+ {{ profile_settings.new_password.label_tag }}
+ {{ profile_settings.new_password }} {{ profile_settings.new_password.errors|striptags }}
+ </div>
+ <div class="row-fluid">
+ {{ profile_settings.new_password_verify.label_tag }}
+ {{ profile_settings.new_password_verify }} {{ profile_settings.new_password_verify.errors|striptags }}
+ </div>
+ <div class="row-fluid buttons">
+ <input class="btn btn-primary" type="submit" value="Update Profile" />
+ </div>
+ </form>
+ </div>
+ </div>
+ </div>
+{% endblock %}
+
+{# vim:se fileencoding=utf8 et ts=4 sts=4 sw=4 ft=htmldjango : #}