changeset 1481:1dd4cd0e278f

Foobar theme usersettings page
author Jaiditya Mathur <jaiditya.mathur@gmail.com>
date Fri, 22 Jun 2012 20:54:33 +0530
parents e32d276a29c7
children 9d8a3a91aefd
files MoinMoin/themes/foobar/static/css/common.css MoinMoin/themes/foobar/static/css/stylus/main.styl MoinMoin/themes/foobar/templates/usersettings.html
diffstat 3 files changed, 61 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/themes/foobar/static/css/common.css	Fri Jun 22 20:40:23 2012 +0530
+++ b/MoinMoin/themes/foobar/static/css/common.css	Fri Jun 22 20:54:33 2012 +0530
@@ -187,6 +187,7 @@
 .popup-body label{margin:5px}
 .popup-body input{margin:8px 5px}
 .popup-container{margin:0;border:5px solid #2c2c2a;border-radius:6px 6px 0 0}
+.moin-tab-titles{margin:-.5em;list-style:none}
 a{text-decoration:none;}
 a:link{color:#4fa8fa}
 a:visited{color:#5e84a7}
--- a/MoinMoin/themes/foobar/static/css/stylus/main.styl	Fri Jun 22 20:40:23 2012 +0530
+++ b/MoinMoin/themes/foobar/static/css/stylus/main.styl	Fri Jun 22 20:54:33 2012 +0530
@@ -247,7 +247,11 @@
     margin: 0
     border 5px solid header_bg_color
     border-radius 6px 6px 0px 0px 
-                
+
+// tabs
+.moin-tab-titles
+    margin:-.5em 
+    list-style: none    
                 
 // links
 a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/MoinMoin/themes/foobar/templates/usersettings.html	Fri Jun 22 20:54:33 2012 +0530
@@ -0,0 +1,55 @@
+{% extends theme("local.html") %}
+{% import "usersettings_forms.html" as user_forms %}
+
+{% block local %}
+<ul id="moin-usersetting-title">
+<li class="moin-tab-title"><a href="#moin-personal">{{ _("Personal Settings") }}</a></li>
+<li class="moin-tab-title"><a href="#moin-password">{{ _("Change Password") }}</a></li>
+<li class="moin-tab-title"><a href="#moin-notification">{{ _("Notification Settings") }}</a></li>
+<li class="moin-tab-title"><a href="#moin-ui">{{ _("Wiki Appearance Settings") }}</a></li>
+<li class="moin-tab-title"><a href="#moin-navigation">{{ _("Navigation Settings") }}</a></li>
+<li class="moin-tab-title"><a href="#moin-options">{{ _("Options") }}</a></li>
+</ul>
+{% endblock %}
+
+{% block content %}
+<div id="moin-usersettings" class="moin-tabs">
+    <div class="moin-tab-title"><a href="#moin-personal"></a></div>
+    <div id="moin-personal" class="moin-tab-body moin-form">
+        <h2>{{ _("Personal Settings") }}</h2>
+        {{ user_forms.personal(form_objs.personal) }}
+    </div>
+
+    
+    <div id="moin-password" class="moin-tab-body moin-form">
+        <h2>{{ _("Change Password") }}</h2>
+        {{ user_forms.password(form_objs.password) }}
+    </div>
+
+    
+    <div id="moin-notification" class="moin-tab-body moin-form">
+        <h2>{{ _("Notification Settings") }}</h2>
+        {{ user_forms.notification(form_objs.notification) }}
+    </div>
+
+    
+    <div id="moin-ui" class="moin-tab-body moin-form">
+        <h2>{{ _("Wiki Appearnce Settings") }}</h2>
+        {{ user_forms.ui(form_objs.ui) }}
+    </div>
+
+    
+    <div id="moin-navigation" class="moin-tab-body moin-form">
+        <h2>{{ _("Navigation Settings") }}</h2>
+        {{ user_forms.navigation(form_objs.navigation) }}
+    </div>
+
+    
+    <div id="moin-options" class="moin-tab-body moin-form">
+        <h2>{{ _("Options") }}</h2>
+        {{ user_forms.options(form_objs.options) }}
+    </div>
+</div>
+
+{% endblock %}
+