support sql
[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, 'newfile': false} %}
13  {% endfor %}
14
15  {% include 'edit-add.htm' %}
16
17  <div class="well">
18   <div class="row-fluid">
19    <div class="span6">
20     <a class="btn" href="{{repo.getLink('display')}}">Cancel</a>
21    </div>
22    <div class="span6" style="text-align: right">
23     <button class="btn btn-primary" type="submit">
24      <i class="icon-check icon-white"></i>
25      Save
26     </button>
27    </div>
28   </div>
29  </div>
30
31 </form>
32 {% endblock %}