move "add file" button to bottom button bar
[phorkie.git] / data / templates / new.htm
1 {% extends "base.htm" %}
2 {% block title %}New paste{% endblock %}
3
4 {% block content %}
5 <form method="post" action="/new" enctype="multipart/form-data">
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, 'newfile': true} %}
12
13  {% include 'edit-add.htm' %}
14
15  <div class="row-fluid formbuttons">
16   <div class="span4"></div>
17   <div class="span4" style="text-align: center">
18    {% include 'edit-add-button.htm' %}
19   </div>
20   <div class="span4" style="text-align: right">
21    <button class="btn btn-primary" type="submit">
22     <i class="icon-check icon-white"></i>
23     Create
24    </button>
25   </div>
26  </div>
27
28 </form>
29
30 {% include 'fork-remote-new.htm' %}
31
32 <script type="application/javascript">
33 $(document).ready(function() {
34     initEdit();
35 });
36 </script>
37 {% endblock %}
38
39
40 {% block sidebar %}
41  {% if recents.results %}
42  <h3>Recently created</h3>
43  <ul>
44  {% for repo in recents.repos %}
45    {% include 'repo-sidebar-list.htm' %}
46  {% endfor %}
47  </ul>
48  {% endif %}
49 {% endblock %}