Commits

Benoît Allard committed a7cf4a3

web: Looks like the last form 'editrelease' is now also bootstrapized

Comments (0)

Files changed (1)

web/templates/editrelease.html

 {% block body %}
 <h3>Edit a (new) release</h3>
 <div id="buildtmpl" style="display:none">
-  <fieldset>
-    <legend>Build</legend>
-    <label for="module">Module:</label>
-    <input type="text" name="module" id="module"/>
-    <label for="ch">Number:</label>
-    <input type="text" name="buildnum" id="buildnum"/>
-  </fieldset>
+  <div class="control-group">
+    <label class="control-label">Build:</label>
+    <div class="controls">
+      <div class="input-prepend">
+	<span class="add-on">Module:</span>
+	<input type="text" name="module" id="module"/>
+      </div>
+      <div class="input-prepend">
+	<span class="add-on">Number:</span>
+	<input type="text" name="buildnum" id="buildnum"/>
+      </div>
+    </div>
+  </div>
 </div>
 <div id="changesettmpl" style="display:none">
-  <fieldset>
-    <legend>Changeset</legend>
-    <label for="ch">Hash:</label>
-    <input type="text" name="changeset" id="ch" class="changeset-text" />
-    <label for="repo">Repository:</label>
-    <input type="text" name="repository" id="repo" class="changeset-text" />
-  </fieldset>
+  <div class="control-group">
+    <label class="control-label">Changeset:</label>
+    <div class="controls">
+      <div class="input-prepend">
+	<span class="add-on">Hash:</span>
+	<input type="text" name="changeset" id="ch" class="changeset-text input-xxlarge" />
+      </div>
+      <div class="input-prepend">
+	<span class="add-on">Repository:</span>
+	<input type="text" name="repository" id="repo"/>
+      </div>
+    </div>
+  </div>
 </div>
-<form action="{{ url_for('edit.release') }}" method="post">
+<form class="form-horizontal" action="{{ url_for('edit.release') }}" method="post">
   <input type="hidden" name="chnum" id="changeset_num" value='0' />
   <input type="hidden" name="binarynum" id="binary_num" value='0' />
   <fieldset>
     <legend>Add a new build to the database</legend>
-    <label for="ref">Release ref:</label>
+    <div class="control-group">
+    <label for="ref" class="control-label">Release ref:</label>
+    <div class="controls">
     <input type="text" name="ref" id="ref" />
-    <label for="rc">Release candidate:</label>
+    </div>
+    </div>
+    <div class="control-group">
+    <label for="rc" class="control-label">Release candidate:</label>
+    <div class="controls">
     <input type="text" name="rc" id="rc" />
-    <label for="project">Project:</label>
+    </div>
+    </div>
+    <div class="control-group">
+    <label for="project" class="control-label">Project:</label>
+    <div class="controls">
     <input type="text" name="project" id="project" />
-    <input type="checkbox" name="final" id="final">Final release</input>
+    </div>
+    </div>
+    <div class="control-group">
+    <div class="controls">
+      <label class="checkbox">
+	<input type="checkbox" name="final" id="final"> Final release
+      </label>
+    </div>
+    </div>
     <fieldset>
       <legend>Binaries:</legend>
       <span id="putbinarieshere"></span>
       <legend>Changesets:</legend>
       <span id="putchangesetshere"></span>
     </fieldset>
-    <input type="submit" value="Edit release" />
+    <div class="form-actions">
+      <input class="btn btn-primary" type="submit" value="Edit release" />
+    </div>
   </fieldset>
 </form>
 <pre>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.