deleting files works now
[phorkie.git] / data / templates / index.htm
index eea509bb65d8074de4c90f76cf1531490c8c8eb9..3893d2ab47d78185b9fd8bec0e19ecb0d9f9cb20 100644 (file)
@@ -1,25 +1,23 @@
+{% extends "base.htm" %}
+{% block title %}New paste{% endblock %}
 
+{% 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">{{ file[1]['content'] }}</textarea>
- </p>
- <p>
-  <input type="submit" value="Go"/>
- </p>
-</form>
\ No newline at end of file
+ <div class="control-group well pastedata">
+   <label for="description">Description</label>
+   <input type="text" name="description" id="description" value="{{description}}"/>
+ </div>
+
+ {% include 'edit-file.htm' with {'file': file[1], 'fileid': 0} %}
+
+ {% include 'edit-add.htm' %}
+
+ <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 %}