summaryrefslogtreecommitdiff
path: root/data/templates/edit.htm
blob: f1f4a51f05011373526654baa0af8c12450e1e8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{% extends "base.htm" %}
{% block title %}Edit paste{% 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>
   <input type="text" name="description" id="description" value="{{repo.getDescription}}"/>
 </div>

 {% for fileid, file in repo.getFiles %}
  {% include 'edit-file.htm' with {'file': file, 'fileid': fileid, 'newfile': false} %}
 {% endfor %}

 {% include 'edit-add.htm' %}

 <div class="well">
  <div class="row-fluid">
   <div class="span6">
    <a class="btn" href="{{repo.getLink('display')}}">Cancel</a>
   </div>
   <div class="span6" style="text-align: right">
    <button class="btn btn-primary" type="submit">
     <i class="icon-check icon-white"></i>
     Save
    </button>
   </div>
  </div>
 </div>

</form>
<script type="application/javascript">
$(document).ready(function() {
    initFilenames();
});
</script>
{% endblock %}