merge paste creation and paste edit code
[phorkie.git] / data / templates / edit.htm
1 {% extends "base.htm" %}
2 {% block title %}Edit paste{% endblock %}
3
4 {% block content %}
5 <form method="post" action="{{repo.getLink('edit')}}">
6  <div class="control-group well pastedata">
7    <label for="description">Description</label>
8    <input type="text" name="description" id="description" value="{{repo.getDescription}}"/>
9  </div>
10
11  {% for fileid, file in repo.getFiles %}
12   {% include 'edit-file.htm' with {'file': file, 'fileid': fileid} %}
13  {% endfor %}
14
15  <div class="well" style="text-align: right">
16   <button class="btn btn-primary" type="submit">
17    <i class="icon-check icon-white"></i>
18    Save
19   </button>
20  </div>
21
22 </form>
23 {% endblock %}