incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1330630 - in /incubator/bloodhound/trunk/bloodhound_theme/bhtheme: templates/bh_admin_basics.html theme.py
Date Thu, 26 Apr 2012 02:04:24 GMT
Author: gjm
Date: Thu Apr 26 02:04:23 2012
New Revision: 1330630

URL: http://svn.apache.org/viewvc?rev=1330630&view=rev
Log:
theme: admin (basic) template changes provided by Olemis #15

Added:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html
Modified:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html?rev=1330630&view=auto
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html (added)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_basics.html Thu
Apr 26 02:04:23 2012
@@ -0,0 +1,75 @@
+<!DOCTYPE html
+    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+      xmlns:xi="http://www.w3.org/2001/XInclude"
+      xmlns:py="http://genshi.edgewall.org/">
+  <xi:include href="bh_admin.html" />
+  <head>
+    <title>Basics</title>
+  </head>
+
+  <body>
+    <h2>Basic Settings</h2>
+
+    <form class="well form-horizontal" id="modbasic" method="post" action="">
+      <fieldset>
+        <legend>Project</legend>
+        <div class="control-group">
+          <label class="control-label" for="name">Name:</label>
+          <div class="controls">
+            <input id="name" type="text" name="name" value="${project.name}" />
+          </div>
+        </div>
+        <div class="control-group">
+          <label class="control-label" for="url">URL:</label>
+          <div class="controls">
+            <input id="url" type="text" name="url" size="48" value="${project.url}" />
+          </div>
+        </div>
+        <div class="control-group">
+          <label class="control-label" for="descr">Description:</label>
+          <div class="controls">
+            <textarea id="descr" name="descr" class="trac-resizable" rows="3" cols="50">
+                      ${project.descr}</textarea>
+          </div>
+        </div>
+        <div class="control-group">
+          <label class="control-label" for="default_timezone">Default timezone:</label>
+          <div class="controls">
+            <select id="default-timezone" name="default_timezone">
+              <option value="">Server's local time zone</option>
+              <option py:for="tzname in timezones" value="${tzname}"
+                      selected="${tzname == default_timezone or None}">${tzname}</option>
+            </select>
+          </div>
+        </div>
+        <div class="control-group">
+          <label class="control-label" for="default_language">Default language:</label>
+          <div class="controls">
+            <select id="default_language" name="default_language">
+              <option value="">Browser's language</option>
+              <option py:for="locale, language in languages" value="${locale}"
+                      selected="${locale == default_language or None}">${language}</option>
+            </select>
+          </div>
+        </div>
+        <div class="control-group">
+          <label class="control-label" for="default_date_format">Default date format:</label>
+          <div class="controls">
+            <select id="default_date_format" name="default_date_format">
+              <option value="">Browser's language</option>
+              <option value="iso8601"
+                      selected="${default_date_format == 'iso8601' or None}">ISO 8601
format</option>
+            </select>
+          </div>
+        </div>
+      </fieldset>
+      <div class="control-group">
+        <input type="submit" class="btn-primary" 
+            value="${_('Apply changes')}" />
+      </div>
+    </form>
+  </body>
+
+</html>

Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1330630&r1=1330629&r2=1330630&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Thu Apr 26 02:04:23 2012
@@ -73,6 +73,7 @@ class BloodhoundTheme(ThemeBase):
     template = htdocs = css = screenshot = disable_trac_css = True
     disable_all_trac_css = True
     BLOODHOUND_TEMPLATE_MAP = {
+        'admin_basics.html' : 'bh_admin_basics.html',
         'admin_logging.html' : 'bh_admin_logging.html',
     }
     implements(IRequestFilter)



Mime
View raw message