Make phorkie search engine friendlier
[phorkie.git] / data / templates / edit.htm
index 1422bbcfa5606ebd5f88487a5d79fbf4c1b37c8c..912a073419941e7a50f6c95e5bcc0b464525a1b1 100644 (file)
@@ -6,16 +6,25 @@
 {% endblock %}
 
 {% block content %}
-<form method="post" action="{{repo.getLink('edit')}}" enctype="multipart/form-data">
- <div class="control-group pastedata">
-   <label for="description">Description</label>
+<div class="content-padding-fix"></div>
+<form method="post" action="{{formaction}}" enctype="multipart/form-data" class="form-horizontal">
+ <div class="control-group">
+  <label class="control-label" for="description">Description</label>
+  <div class="controls">
    <input type="text" name="description" id="description" value="{{repo.getDescription}}"/>
+  </div>
  </div>
 
  {% for fileid, file in repo.getFiles %}
-  {% include 'edit-file.htm' with {'file': file, 'fileid': fileid, 'newfile': false} %}
+  {% if not singlefile or file == singlefile %}
+    {% include 'edit-file.htm' with {'file': file, 'fileid': fileid, 'newfile': false} %}
+  {% endif %}
  {% endfor %}
 
+ {% if singlefile == "newfile" %}
+   {% include 'edit-file.htm' with {'file': null, 'fileid': 'newfile', 'newfile': true} %}
+ {% endif %}
+
  {% include 'edit-add.htm' %}
 
   <div class="row-fluid formbuttons">
@@ -40,3 +49,7 @@ $(document).ready(function() {
 });
 </script>
 {% endblock %}
+
+{% block sidebar %}
+ {% include 'display-sidebar-history.htm' %}
+{% endblock %}