aboutsummaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorJustin J. Novack <jnovack@gmail.com>2012-09-16 11:58:51 -0400
committerJustin J. Novack <jnovack@gmail.com>2012-09-16 11:58:51 -0400
commit57ec8736424dfa1637ea01228b87fbbf458b213f (patch)
treeb038b8b7ae29e6e01ce1c90cf303f43eddf9ecb6 /data/templates
parentfbaebb7485cfab4948b8fe000ef2a5279b376f04 (diff)
downloadphorkie-57ec8736424dfa1637ea01228b87fbbf458b213f.tar.gz
phorkie-57ec8736424dfa1637ea01228b87fbbf458b213f.zip
ADD: Allow editing of user session data
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/base.htm4
-rw-r--r--data/templates/user.htm15
2 files changed, 17 insertions, 2 deletions
diff --git a/data/templates/base.htm b/data/templates/base.htm
index 8192b6b..ec2b746 100644
--- a/data/templates/base.htm
+++ b/data/templates/base.htm
@@ -27,7 +27,7 @@
</li>
{% if identity %}
<li>
- <a href="#">{{name}} ({{email}})</a>
+ <a href="/user">{{name}} ({{email}})</a>
</li>
<li>
<a href="/auth?logout">Logout</a>
@@ -65,4 +65,4 @@
</div>
</body>
-</html> \ No newline at end of file
+</html>
diff --git a/data/templates/user.htm b/data/templates/user.htm
new file mode 100644
index 0000000..c8ef387
--- /dev/null
+++ b/data/templates/user.htm
@@ -0,0 +1,15 @@
+{% extends "base.htm" %}
+{% block title %}User Preferences{% endblock %}
+
+{% block content %}
+
+<form method="post" action="/user" id="user_form">
+<fieldset>
+ <legend>User Profile</legend>
+ <p>Please update your git preferences for <code>{{ identity }}</code></p>
+ <label for='name'>Name:</label><input class="" id="name" type="text" name="name" width="35" value="{{ name }}"><br/>
+ <label for='email'>Email:</label><input class="" id="email" type="text" name="email" width="35" value="{{ email }}"><br/>
+ <input class="btn" id="submit" type="submit" value="Update">
+</fieldset>
+</form>
+{% endblock %}