bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From g..@apache.org
Subject svn commit: r1338214 - in /incubator/bloodhound/trunk/bloodhound_theme/bhtheme: templates/bh_report_edit.html theme.py
Date Mon, 14 May 2012 14:13:53 GMT
Author: gjm
Date: Mon May 14 14:13:52 2012
New Revision: 1338214

URL: http://svn.apache.org/viewvc?rev=1338214&view=rev
Log:
theme: converts report edit to bootstrap styling - towards #54 (from olemis)

Added:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_edit.html   (with
props)
Modified:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py

Added: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_edit.html
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_edit.html?rev=1338214&view=auto
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_edit.html (added)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_edit.html Mon
May 14 14:13:52 2012
@@ -0,0 +1,76 @@
+<!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:py="http://genshi.edgewall.org/"
+      xmlns:i18n="http://genshi.edgewall.org/i18n"
+      xmlns:xi="http://www.w3.org/2001/XInclude">
+  <xi:include href="layout.html" />
+  <head>
+    <title>$title</title>
+  </head>
+
+  <body>
+    <div id="content" class="report row">
+
+      <h1>${_('New Report') if action == 'new' else report.title}</h1>
+      <div class="span12">
+        <form action="${href.report(report.id)}" method="post" id="edit_report"
+            class="form-horizontal">
+          <input type="hidden" name="action" value="$action" />
+          <div>
+            <div class="control-group">
+              <label class="control-label" for="title">Report Title:</label>
+              <div class="controls">
+                <input type="text" id="title" name="title" value="$report.title" size="50"/><br
/>
+              </div>
+            </div>
+            <div class="control-group">
+              <label for="description" class="control-label" i18n:msg="">
+                Description:
+              </label>
+              <div class="controls">
+                <textarea id="description" name="description" class="wikitext trac-resizable"
rows="10" cols="78">
+$report.description</textarea>
+                <p class="help-block">
+                  <span class="label label-info">Tip</span>
+                  (you may use <a tabindex="42" href="${href.wiki('WikiFormatting')}">WikiFormatting</a>
here)
+                </p>
+              </div>
+            </div>
+            <div class="control-group">
+              <div class="alert alert-error" py:if="errorerror">
+                <span class="label label-important">Error:</span> $error
+              </div>
+              <label class="control-label" for="query" i18n:msg="">
+                Query for Report
+              </label>
+              <div class="controls">
+                <textarea id="query" name="query" class="trac-resizable" cols="85" rows="20">
+$report.sql</textarea>
+                <p class="help-block">
+                  <span class="label label-info">Tip</span>
+                  can be either SQL or, if starting with <tt>query:</tt>, 
+                  a <a tabindex="42" href="${href.wiki('TracQuery') + '#QueryLanguage'}">TracQuery</a>
expression)
+                </p>
+              </div>
+            </div>
+            <div class="buttons control-group">
+              <input class="btn" type="submit" value="${_('Save report')}"/>
+              <input class="btn-inverse" type="submit" name="cancel"
+                  value="${_('Cancel')}"/>
+            </div>
+          </div>
+        </form>
+      </div>
+
+      <div class="span12">
+        <div id="help" class="help-block pull-right" i18n:msg="">
+          <span class="label label-info">Note</span>
+          See <a href="${href.wiki('TracReports')}">TracReports</a> for help
on using and creating reports.
+        </div>
+      </div>
+    </div>
+  </body>
+</html>
+

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_edit.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_report_edit.html
------------------------------------------------------------------------------
    svn:mime-type = text/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=1338214&r1=1338213&r2=1338214&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Mon May 14 14:13:52 2012
@@ -71,10 +71,11 @@ class BloodhoundTheme(ThemeBase):
 
         # Ticket
         'milestone_view.html' : ('bh_milestone_view.html', '_modify_roadmap_css'),
-        'ticket.html' : ('bh_ticket.html', None),
+        'report_delete.html' : ('bh_report_delete.html', None),
+        'report_edit.html' : ('bh_report_edit.html', None), 
         'report_list.html' : ('bh_report_list.html', None),
         'report_view.html' : ('bh_report_view.html', None),
-        'report_delete.html' : ('bh_report_delete.html', None),
+        'ticket.html' : ('bh_ticket.html', None),
 
         # General purpose
         'history_view.html' : ('bh_history_view.html', None),



Mime
View raw message