Author: rjollos
Date: Wed Mar  6 02:18:27 2013
New Revision: 1453137

URL: http://svn.apache.org/r1453137
Log:
Refs #381: Move forms to top of the page for the Plugin Admin panel and 
''Ticket System'' Admin panels.

Modified:
    
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_components.html
    
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_enums.html
    
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_milestones.html
    
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_perms.html
    
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_products.html
    
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_versions.html

Modified: 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_components.html
URL: 
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_components.html?rev=1453137&r1=1453136&r2=1453137&view=diff
==============================================================================
--- 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_components.html
 (original)
+++ 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_components.html
 Wed Mar  6 02:18:27 2013
@@ -37,13 +37,13 @@
         <label class="control-label" for="owner">Owner:</label>
         <div class="controls" py:choose="" py:strip="inline">
           <select py:when="owners" id="owner"
-                  class="input-medium" size="1" name="owner">
+                  class="input-large" size="1" name="owner">
             <option py:for="owner in owners"
                     selected="${owner==default_owner or None}" 
value="$owner">$owner</option>
             <option py:if="default_owner and default_owner not in owners"
                     selected="selected" 
value="$default_owner">$default_owner</option>
           </select>
-          <input py:otherwise="" class="input-medium" type="text" id="owner"
+          <input py:otherwise="" class="input-large" type="text" id="owner"
                  name="owner" value="$default_owner" />
         </div>
       </div>
@@ -57,7 +57,7 @@
           <div class="control-group">
             <label class="control-label" for="name">Name: </label>
             <div class="controls">
-              <input class="input-medium" type="text" id="name" name="name" 
value="$component.name"/>
+              <input class="input-large" type="text" id="name" name="name" 
value="$component.name"/>
             </div>
           </div>
           ${owner_field(component.owner)}
@@ -91,21 +91,25 @@
       <py:otherwise>
         <div class="row">
           <div class="span9">
-            <form id="addcomponent" class="well form-inline" method="post" 
action="">
+            <form id="addcomponent" class="well form-horizontal" method="post" 
action="">
               <fieldset>
                 <legend>Add Component:</legend>
                 <div class="control-group">
-                  <input class="btn" type="submit" name="add"
-                         value="${_('Add')}"/>
                   <label class="control-label" for="name">Name:</label>
-                  <input id="name" class="input-medium" type="text" 
name="name" />
-                  ${owner_field(inline=True)}
+                  <div class="controls">
+                    <input type="text" id="name" class="input-large" 
name="name" />
+                  </div>
+                </div>
+                ${owner_field()}
+                <div class="control-group">
+                  <div class="controls">
+                    <input type="submit" class="btn" name="add"
+                           value="${_('Add')}"/>
+                  </div>
                 </div>
               </fieldset>
             </form>
           </div>
-        </div>
-        <div class="row">
           <div class="span9">
             <py:choose>
               <form py:when="components" id="component_table"

Modified: 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_enums.html
URL: 
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_enums.html?rev=1453137&r1=1453136&r2=1453137&view=diff
==============================================================================
--- 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_enums.html
 (original)
+++ 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_enums.html
 Wed Mar  6 02:18:27 2013
@@ -65,8 +65,6 @@
               </fieldset>
             </form>
           </div>
-        </div>
-        <div class="row">
           <div class="span9">
             <py:choose>
               <form py:when="enums" id="enumtable" class="form-inline" 
method="post" action="">

Modified: 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_milestones.html
URL: 
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_milestones.html?rev=1453137&r1=1453136&r2=1453137&view=diff
==============================================================================
--- 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_milestones.html
 (original)
+++ 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_milestones.html
 Wed Mar  6 02:18:27 2013
@@ -39,9 +39,9 @@
     <h2>Manage Milestones</h2>
 
     <py:choose test="view">
-      <form py:when="'detail'" class="well form-horizontal" method="post"
-          id="modifymilestone" action=""
-          py:with="readonly = 'MILESTONE_MODIFY' not in req.perm or None">
+      <form py:when="'detail'" id="modifymilestone"
+            class="well form-horizontal" method="post" action=""
+            py:with="readonly = 'MILESTONE_MODIFY' not in req.perm or None">
         <fieldset>
           <legend>Modify Milestone:</legend>
           <div class="control-group">
@@ -107,45 +107,43 @@
       </form>
 
       <py:otherwise>
-        <div py:if="'MILESTONE_CREATE' in req.perm" class="row">
-          <div class="span9">
-            <form id="addmilestone" class="well form-horizontal" method="post" 
action="">
-              <fieldset>
-                <legend>Add Milestone:</legend>
-                <div class="control-group">
-                  <label class="control-label" for="name">Name:</label>
-                  <div class="controls">
-                    <input type="text" name="name" id="name" 
class="input-xlarge" />
+        <div class="row">
+          <div py:if="'MILESTONE_CREATE' in req.perm">
+            <div class="span9">
+              <form id="addmilestone" class="well form-horizontal" 
method="post" action="">
+                <fieldset>
+                  <legend>Add Milestone:</legend>
+                  <div class="control-group">
+                    <label class="control-label" for="name">Name:</label>
+                    <div class="controls">
+                      <input type="text" name="name" id="name" 
class="input-xlarge" />
+                    </div>
                   </div>
-                </div>
 
-                <div class="control-group">
-                  <label class="control-label" for="duedate">Due:</label>
-                  <div class="controls">
-                    <input type="text" id="duedate"
-                        name="duedate" size="${len(datetime_hint)}"
-                        class="input-xlarge"
-                        placeholder="${_('Format: %(datehint)s', 
datehint=datetime_hint)}" />
+                  <div class="control-group">
+                    <label class="control-label" for="duedate">Due:</label>
+                    <div class="controls">
+                      <input type="text" id="duedate"
+                          name="duedate" size="${len(datetime_hint)}"
+                          class="input-xlarge"
+                          placeholder="${_('Format: %(datehint)s', 
datehint=datetime_hint)}" />
+                    </div>
                   </div>
-                </div>
 
-                <div class="control-group">
-                  <div class="controls">
-                    <input class="btn" type="submit" name="add" 
value="${_('Add')}" />
+                  <div class="control-group">
+                    <div class="controls">
+                      <input class="btn" type="submit" name="add" 
value="${_('Add')}" />
+                    </div>
                   </div>
-                </div>
-              </fieldset>
-            </form>
+                </fieldset>
+              </form>
+            </div>
           </div>
-        </div>
 
-        <div class="row">
           <div class="span9">
             <py:choose>
-              <form id="milestone_table" method="post" action="" class="well"
+              <form id="milestone_table" method="post" action=""
                     py:when="milestones" py:with="can_remove = 
'MILESTONE_DELETE' in req.perm">
-      
-                <legend>Modify Milestones</legend>
 
                 <table id="millist"
                     class="table table-bordered table-striped table-condensed">

Modified: 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_perms.html
URL: 
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_perms.html?rev=1453137&r1=1453136&r2=1453137&view=diff
==============================================================================
--- 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_perms.html
 (original)
+++ 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_perms.html
 Wed Mar  6 02:18:27 2013
@@ -34,7 +34,71 @@
     <h2>Manage Permissions and Groups</h2>
 
     <div class="row">
-      <div class="${can_revoke and 'span6' or 'span9'}">
+      <div class="span9" py:if="'PERMISSION_GRANT' in perm">
+        <form id="addperm" class="well form-horizontal" method="post" 
action="">
+          <fieldset>
+            <legend>Grant Permission:</legend>
+            <div class="control-group">
+              <label class="control-label" for="gp_subject">Subject:</label>
+              <div class="controls">
+                <input type="text" id="gp_subject" class="input-large"
+                       name="subject" />
+              </div>
+            </div>
+            <div class="control-group">
+            <label class="control-label" for="action">Action:</label>
+              <div class="controls">
+                <select id="action" name="action" class="input-large">
+                  <option py:for="action in sorted(actions)">$action</option>
+                </select>
+              </div>
+            </div>
+            <div class="control-group">
+              <div class="controls">
+                <input type="submit" class="btn" name="add"
+                       value="${_('Add')}" />
+              </div>
+            </div>
+            <p class="help-block">
+              <span class="label label-info">Note</span> Grant permission
+              for an action to a subject, which can be either a user
+              or a group.
+            </p>
+          </fieldset>
+        </form>
+
+        <form id="addsubj" class="well form-horizontal" method="post" 
action="">
+          <fieldset>
+            <legend>Add to Group:</legend>
+            <div class="control-group">
+              <label class="control-label" for="sg_subject">Subject:</label>
+              <div class="controls">
+                <input id="sg_subject" type="text" name="subject"
+                       class="input-medium" />
+              </div>
+            </div>
+            <div class="control-group">
+              <label class="control-label" for="sg_group">Group:</label>
+              <div class="controls">
+                <input id="sg_group" type="text" name="group"
+                       class="input-medium" />
+              </div>
+            </div>
+            <div class="control-group">
+              <div class="controls">
+                <input type="submit" class="btn" name="add"
+                       value="${_('Add')}"/>
+              </div>
+            </div>
+            <p class="help-block">
+              <span class="label label-info">Note</span> Add a user or group
+              to an existing permission group.
+            </p>
+          </fieldset>
+        </form>
+      </div>
+
+      <div class="span9">
         <form id="revokeform" method="post" action="">
           <h3>Permissions</h3>
           <table class="table table-bordered table-striped table-condensed" 
@@ -109,49 +173,6 @@
         </p>
       </div>
 
-      <div class="span3" py:if="'PERMISSION_GRANT' in perm">
-        <form id="addperm" class="well" method="post" action="">
-          <fieldset>
-            <legend>Grant Permission:</legend>
-            <label for="gp_subject">Subject:</label>
-            <input class="input-medium" id="gp_subject" type="text"
-                name="subject" />
-            <label for="action">Action:</label>
-            <select id="action" name="action" class="input-medium">
-              <option py:for="action in sorted(actions)">$action</option>
-            </select>
-            <p class="help-block">
-              <span class="label label-info">Note</span> Grant permission
-              for an action to a subject, which can be either a user
-              or a group.
-            </p>
-            <div class="control-group">
-              <input class="btn" type="submit" name="add"
-                  value="${_('Add')}" />
-            </div>
-          </fieldset>
-        </form>
-    
-        <form id="addsubj" class="well" method="post" action="">
-          <fieldset>
-            <legend>Add to Group:</legend>
-            <label for="sg_subject">Subject:</label>
-            <input id="sg_subject" type="text" name="subject"
-                class="input-medium" />
-            <label for="sg_group">Group:</label>
-            <input id="sg_group" type="text" name="group"
-                class="input-medium" />
-            <p class="help-block">
-              <span class="label label-info">Note</span> Add a user or group
-              to an existing permission group.
-            </p>
-            <div class="control-group">
-              <input class="btn" type="submit" name="add"
-                  value="${_('Add')}"/>
-            </div>
-          </fieldset>
-        </form>
-      </div>
     </div>
 
   </body>

Modified: 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_products.html
URL: 
http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_products.html?rev=1453137&r1=1453136&r2=1453137&view=diff
==============================================================================
--- 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_products.html
 (original)
+++ 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_products.html
 Wed Mar  6 02:18:27 2013
@@ -36,14 +36,14 @@
       <div class="control-group">
         <label class="control-label" for="owner">Owner: </label>
         <div class="controls" py:choose="">
-          <select class="input-medium"
+          <select class="input-large"
               py:when="owners" size="1" id="owner" name="owner">
             <option py:for="owner in owners"
                     selected="${owner==default_owner or None}" 
value="$owner">$owner</option>
             <option py:if="default_owner and default_owner not in owners"
                     selected="selected" 
value="$default_owner">$default_owner</option>
           </select>
-          <input py:otherwise="" class="input-medium" type="text" id="owner"
+          <input py:otherwise="" class="input-large" type="text" id="owner"
               name="owner" value="$default_owner" />
         </div>
       </div>
@@ -96,7 +96,34 @@
 
       <py:otherwise>
         <div class="row">
-          <div class="span6">
+          <div class="span9">
+            <form id="addproduct" class="well form-horizontal" method="post" 
action="">
+              <fieldset>
+                <legend>Add Product:</legend>
+                <div class="control-group">
+                  <label class="control-label" for="prefix">Prefix:</label>
+                  <div class="controls">
+                    <input type="text" id="prefix" class="input-large"
+                           name="prefix" />
+                  </div>
+                </div>
+                <div class="control-group">
+                  <label class="control-label" for="name">Name:</label>
+                  <div class="controls">
+                    <input type="text" id="name" class="input-large" 
name="name" />
+                  </div>
+                </div>
+                ${owner_field()}
+                <div class="control-group">
+                  <div class="controls">
+                    <input type="submit" class="btn" name="add"
+                           value="${_('Add')}" />
+                  </div>
+                </div>
+              </fieldset>
+            </form>
+          </div>
+          <div class="span9">
             <py:choose>
               <form py:when="products" id="product_table" method="post" 
action="">
                 <table id="prodlist"
@@ -143,20 +170,6 @@
               </p>
             </py:choose>
           </div>
-          <div class="span3">
-            <form class="well" id="addproduct" method="post" action="">
-              <fieldset>
-                <legend>Add Product:</legend>
-                <label for="prefix">Prefix:</label>
-                <input class="input-medium" type="text" id="prefix" 
name="prefix" />
-                <label for="name">Name:</label>
-                <input class="input-medium" type="text" id="name" name="name" 
/>
-                ${owner_field()}
-                <input class="btn" type="submit" name="add"
-                    value="${_('Add')}"/>
-              </fieldset>
-            </form>
-          </div>
         </div>
 
       </py:otherwise>

Modified: 
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=1453137&r1=1453136&r2=1453137&view=diff
==============================================================================
--- 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_versions.html
 (original)
+++ 
incubator/bloodhound/trunk/bloodhound_theme/bhtheme/templates/bh_admin_versions.html
 Wed Mar  6 02:18:27 2013
@@ -85,23 +85,31 @@
       <py:otherwise>
         <div class="row">
           <div class="span9">
-            <form class="well form-inline" id="addversion" method="post" 
action="">
+            <form id="addversion" class="well form-horizontal" method="post" 
action="">
               <fieldset>
                 <legend>Add Version:</legend>
-                <input class="btn" type="submit" name="add"
-                       value="${_('Add')}" />
-                <label class="control-label" for="name">Name:</label>
-                <input class="input-medium" type="text" name="name"
-                       id="name" size="22" />
-                <label class="control-label" 
for="releaseddate">Released:</label>
-                <input type="text" id="releaseddate"
-                       name="time" size="${len(datetime_hint)}"
-                       value="${format_datetime()}" />
+                <div class="control-group">
+                  <label class="control-label" for="name">Name:</label>
+                  <div class="controls">
+                    <input type="text" id="name" class="input-large" 
name="name" />
+                  </div>
+                </div>
+                <div class="control-group">
+                  <label class="control-label" 
for="releaseddate">Released:</label>
+                  <div class="controls">
+                    <input type="text" id="releaseddate"
+                           name="time" size="${len(datetime_hint)}"
+                           value="${format_datetime()}" />
+                    </div>
+                </div>
+                <div class="control-group">
+                  <div class="controls">
+                    <input type="submit" class="btn" name="add" 
value="${_('Add')}" />
+                  </div>
+                </div>
               </fieldset>
             </form>
           </div>
-        </div>
-        <div class="row">
           <div class="span9">
             <py:choose>
               <form py:when="versions" id="version_table" method="post" 
action="">


Reply via email to