preparation for file editing
[phorkie.git] / data / templates / edit.htm
diff --git a/data/templates/edit.htm b/data/templates/edit.htm
new file mode 100644 (file)
index 0000000..56e08ef
--- /dev/null
@@ -0,0 +1,23 @@
+{% extends "base.htm" %}
+{% block title %}Edit paste{% endblock %}
+
+{% block content %}
+<form method="post" action="/">
+ <div class="control-group well pastedata">
+   <label for="description">Description</label>
+   <input type="text" name="description" id="description" value="{{repo.getDescription}}"/>
+ </div>
+
+ {% for fileid, file in repo.getFiles %}
+  {% include 'edit-file.htm' with {'file': file, 'fileid': fileid} %}
+ {% endfor %}
+
+ <div class="well" style="text-align: right">
+  <button class="btn btn-primary" type="submit">
+   <i class="icon-check icon-white"></i>
+   Save
+  </button>
+ </div>
+
+</form>
+{% endblock %}