move js-add button and logic into separate file, make it available in new pastes
[phorkie.git] / data / templates / index.htm
1 {% extends "base.htm" %}
2 {% block title %}New paste{% endblock %}
3
4 {% block content %}
5 <form method="post" action="/">
6  <div class="control-group well pastedata">
7    <label for="description">Description</label>
8    <input type="text" name="description" id="description" value="{{description}}"/>
9  </div>
10
11  {% include 'edit-file.htm' with {'file': file[1], 'fileid': 0} %}
12
13  {% include 'edit-add.htm' %}
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    Create
19   </button>
20  </div>
21
22 </form>
23 {% endblock %}