Commits

Benoît Allard committed c5c1a30

web: Bootstrapize the 'EditBuild' form

  • Participants
  • Parent commits a704f47

Comments (0)

Files changed (1)

File web/templates/editbuild.html

 {% block body %}
 <h3>Edit a (new) build</h3>
 <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 description:</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.build') }}" method="post">
+<form class="form-horizontal" action="{{ url_for('edit.build') }}" method="post">
   <input type="hidden" name="id" id="num_id" value='0' />
   <fieldset>
     <legend>Add a new build to the database</legend>
-    <label for="number">BuildNumber:</label>
-    <input type="text" name="number" id="number" />
+    <div class="control-group">
+    <label class="control-label" for="number">BuildNumber:</label>
+    <div class="controls">
+      <input type="text" name="number" id="number" />
+    </div>
+    </div>
     <span id="putfieldshere"></span>
-    <input type="submit" value="Edit build" />
+    <div class="form-actions">
+    <input  class="btn btn-primary" type="submit" value="Edit build" />
+    </div>
   </fieldset>
 </form>
 <pre>