create paste layout
authorChristian Weiske <cweiske@cweiske.de>
Tue, 27 Mar 2012 20:20:46 +0000 (22:20 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Tue, 27 Mar 2012 20:20:46 +0000 (22:20 +0200)
data/templates/index.htm
www/phorkie.css

index 26a22c3..9b158bb 100644 (file)
@@ -3,27 +3,37 @@
 
 {% block content %}
 <form method="post" action="/">
- <p>
-  <label for="description">Description</label>
-  <input type="text" name="description" id="description" value="{{description}}"/>
- </p>
- <p>
-  <label for="filename_1">Filename</label>
-  <input type="text" name="file[1][name]" id="filename_1" value="{{ file[1]['name'] }}"/>
- </p>
- <p>
-  <label for="type_1">Type</label>
-  <select name="file[1][type]" id="type_1">
-   <option value="css">CSS</option>
-   <option value="php">PHP</option>
-   <option value="xml">XML</option>
-  </select>
- </p>
- <p>
-  <textarea name="file[1][content]" id="content_1" cols="80" rows="10">{{ file[1]['content'] }}</textarea>
- </p>
- <p>
-  <input type="submit" value="Go"/>
- </p>
+ <div class="control-group well pastedata">
+  <label for="description" class="control-label">Description</label>
+  <div class="controls">
+   <input type="text" name="description" id="description" value="{{description}}"/>
+  </div>
+ </div>
+
+ <div class="well">
+  <div class="row-fluid">
+   <div class="span6">
+    <label for="filename_1">Filename</label>
+    <input type="text" name="file[1][name]" id="filename_1" value="{{ file[1]['name'] }}"/>
+   </div>
+   <div class="span6" style="text-align: right">
+    <label for="type_1">Type</label>
+    <select name="file[1][type]" id="type_1">
+     <option value="css">CSS</option>
+     <option value="php">PHP</option>
+     <option value="xml">XML</option>
+    </select>
+   </div>
+  </div>
+  <textarea name="file[1][content]" id="content_1" cols="80" rows="10" class="content">{{ file[1]['content'] }}</textarea>
+ </div>
+
+ <div class="well" style="text-align: right">
+  <button class="btn btn-primary" type="submit">
+   <i class="icon-check icon-white"></i>
+   Create
+  </button>
+ </div>
+
 </form>
 {% endblock %}
index 34ada5d..abe1262 100644 (file)
@@ -44,4 +44,9 @@ a.anchorlink {
 }
 ul.pager {
     margin-top: 2ex;
+}
+
+form textarea.content {
+    width: 100%;
+    box-sizing: border-box;
 }
\ No newline at end of file