Add "add file" button to display page
[phorkie.git] / data / templates / edit.htm
index 401ed00b1c77f929e6c7474c58fefc4711c79d56..912a073419941e7a50f6c95e5bcc0b464525a1b1 100644 (file)
@@ -7,7 +7,7 @@
 
 {% block content %}
 <div class="content-padding-fix"></div>
-<form method="post" action="{{repo.getLink('edit')}}" enctype="multipart/form-data" class="form-horizontal">
+<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">
   {% 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">