{% 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">