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-gentoo.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-gentoo.html')
-rw-r--r--okupy/templates/settings-gentoo.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/okupy/templates/settings-gentoo.html b/okupy/templates/settings-gentoo.html
new file mode 100644
index 0000000..224c838
--- /dev/null
+++ b/okupy/templates/settings-gentoo.html
@@ -0,0 +1,42 @@
+{% extends "base.html" %}
+
+{% block content %}
+<div id="pageRow" class="container">
+ <div class="row">
+ <div id="page" class="span10">
+ <div>
+ <h1>Gentoo Developer Information</h1>
+ <h3>Change your Gentoo related details</h3>
+ {% if user_profile_info.is_developer %}
+ <div class="form well">
+ <form action="." method="POST">{% csrf_token %}
+ <div class="row-fluid">
+ {{ gentoo_account_settings.developer_bug.label_tag }}
+ <input name="developer_bug" type="text" value="{{ user_profile_info.developer_bug.0 }}" /> {{ gentoo_account_settings.developer_bug.errors|striptags }}
+ </div>
+ <div class="row-fluid">
+ {{ gentoo_account_settings.mentor.label_tag }}
+ <input name="mentor" type="text" value="{{ user_profile_info.mentor.0 }}" /> {{ gentoo_account_settings.mentor.errors|striptags }}
+ </div>
+ <div class="row-fluid">
+ {{ gentoo_account_settings.gentoo_join_date.label_tag }}
+ <input name="gentoo_join_date" type="text" value="{{ user_profile_info.gentoo_join_date.0 }}" /> {{ gentoo_account_settings.gentoo_join_date.errors|striptags }}
+ </div>
+ <div class="row-fluid">
+ {{ gentoo_account_settings.gentoo_retire_date.label_tag }}
+ <input name="gentoo_retire_date" type="text" value="{{ user_profile_info.gentoo_retire_date.0 }}" /> {{ gentoo_account_settings.gentoo_retire_date.errors|striptags }}
+ </div>
+ <div class="row-fluid">
+ {{ gentoo_account_settings.ssh_key.label_tag }} {{ gentoo_account_settings.ssh_key.errors|striptags }}
+ {{ gentoo_account_settings.ssh_key }}
+ </div>
+ <div class="row-fluid buttons">
+ <input class="btn btn-primary" type="submit" value="Update" />
+ </div>
+ </form>
+ </div>{% endif %}
+ </div>
+ </div>
+{% endblock %}
+
+{# vim:se fileencoding=utf8 et ts=4 sts=4 sw=4 ft=htmldjango : #}