Author: gjm
Date: Thu Apr 26 16:56:35 2012
New Revision: 1330967
URL: http://svn.apache.org/viewvc?rev=1330967&view=rev
Log:
theme: admin (versions) template changes provided by Olemis #15
Added:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_versions.html
(with props)
Modified:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
Added:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_versions.html
URL:
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_versions.html?rev=1330967&view=auto
==============================================================================
---
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_versions.html
(added)
+++
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_versions.html
Thu Apr 26 16:56:35 2012
@@ -0,0 +1,136 @@
+<!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/"
+ xmlns:i18n="http://genshi.edgewall.org/i18n">
+ <xi:include href="bh_admin.html" />
+ <head>
+ <title>Versions</title>
+ </head>
+
+ <body>
+ <h2>Manage Versions</h2>
+
+ <py:choose test="view">
+ <form py:when="'detail'" class="well form-horizontal" id="modifyversion"
+ method="post" action="">
+ <fieldset>
+ <legend>Modify Version:</legend>
+ <div class="control-group">
+ <label class="control-label" for="name">Name:</label>
+ <div class="controls">
+ <input type="text" id="name" name="name" value="${version.name}"
/>
+ </div>
+ </div>
+ <div class="control-group">
+ <label class="control-label" for="versiondate">Date:</label>
+ <div class="controls">
+ <input type="text" id="versiondate" name="time"
size="${len(datetime_hint)}"
+ value="${format_datetime(version.time)}"
+ placeholder="${_('Format: %(datehint)s',
datehint=datetime_hint)}" />
+ </div>
+ </div>
+ <div class="control-group">
+ <fieldset class="iefix">
+ <label class="control-label" for="description" i18n:msg="">
+ Description:
+ </label>
+ <div class="controls">
+ <textarea id="description" name="description"
+ class="wikitext trac-resizable" rows="6"
+ placeholder="Describe this version using WikiFormatting"
+ cols="60">$version.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>
+ </fieldset>
+ </div>
+ <div class="control-group">
+ <input class="btn" type="submit" name="cancel"
+ value="${_('Cancel')}"/>
+ <input class="btn btn-inverse" type="submit" name="save"
+ value="${_('Save')}"/>
+ </div>
+ </fieldset>
+ </form>
+
+ <py:otherwise>
+ <div class="row">
+ <div class="span6">
+ <py:choose>
+ <form py:when="versions" id="version_table" method="post"
action="">
+ <table id="verlist"
+ class="table table-striped table-condensed table-bordered">
+ <thead>
+ <tr><th class="sel"><i class="icon-check"></i></th>
+ <th class="full-x">Name</th>
+ <th>Released</th><th>Default</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr py:for="version in versions">
+ <td><input type="checkbox" name="sel"
value="${version.name}"/></td>
+ <td><a
href="${panel_href(version.name)}">${version.name}</a></td>
+ <td>${version.time and
format_datetime(version.time)}</td>
+ <td class="default">
+ <input type="radio" name="default"
value="${version.name}"
+ checked="${version.name==default or None}" />
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <div class="control-group">
+ <input class="btn btn-warning" type="submit" name="remove"
+ value="${_('Remove selected items')}" />
+ <input class="btn" type="submit" name="apply"
+ value="${_('Apply changes')}" />
+ </div>
+ <p class="help-block">
+ <span class="label label-info">Notice</span>
+ You can remove all items from this list to completely hide
this
+ field from the user interface.
+ </p>
+ </form>
+
+ <p py:otherwise="" class="help-block">
+ <span class="label label-warning">Warning</span>
+ As long as you don't add any items to the list, this field
+ will remain completely hidden from the user interface.
+ </p>
+ </py:choose>
+ </div>
+ <div class="span3">
+ <form class="well" id="addversion" method="post" action="">
+ <fieldset>
+ <legend>Add Version:</legend>
+ <label for="name">Name:</label>
+ <input class="input-medium" type="text" name="name"
+ id="name" size="22" />
+ <label for="releaseddate">Released:</label>
+ <input class="input-medium" type="text" id="releaseddate"
+ name="time" size="${len(datetime_hint)}"
+ placeholder="${_('Format: %(datehint)s',
datehint=datetime_hint)}"
+ value="${format_datetime()}" />
+ <p class="help-block">
+ <span class="label label-info">Hint</span>
+ <i18n:msg params="datehint">Format: $datetime_hint</i18n:msg>
+ </p>
+ <div class="control-group">
+ <input class="btn btn-info" type="submit" name="add"
+ value="${_('Add')}" />
+ </div>
+ </fieldset>
+ </form>
+ </div>
+ </div>
+
+ </py:otherwise>
+ </py:choose>
+ </body>
+
+</html>
+
Propchange:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_versions.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_versions.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=1330967&r1=1330966&r2=1330967&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Thu Apr 26
16:56:35 2012
@@ -79,6 +79,7 @@ class BloodhoundTheme(ThemeBase):
'admin_logging.html' : 'bh_admin_logging.html',
'admin_milestones.html' : 'bh_admin_milestones.html',
'admin_perms.html' : 'bh_admin_perms.html',
+ 'admin_versions.html' : 'bh_admin_versions.html',
}
implements(IRequestFilter)