Single file editing
[phorkie.git] / data / templates / edit.htm
index 2237e10916079b3724cce56e6f8af2e87cc10ce2..401ed00b1c77f929e6c7474c58fefc4711c79d56 100644 (file)
@@ -6,14 +6,19 @@
 {% endblock %}
 
 {% block content %}
-<form method="post" action="{{repo.getLink('edit')}}" enctype="multipart/form-data">
- <div class="control-group well pastedata">
-   <label for="description">Description</label>
+<div class="content-padding-fix"></div>
+<form method="post" action="{{repo.getLink('edit')}}" 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 %}
 
  {% include 'edit-add.htm' %}
@@ -40,3 +45,7 @@ $(document).ready(function() {
 });
 </script>
 {% endblock %}
+
+{% block sidebar %}
+ {% include 'display-sidebar-history.htm' %}
+{% endblock %}