f846fe5cd7faf05bd263b3ad062a9f73f9ee7ef9
[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="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
24 {% include 'new-fork-remote.htm' %}
25
26 <script type="application/javascript">
27 $(document).ready(function() {
28     initEdit();
29 });
30 </script>
31 {% endblock %}
32
33
34 {% block sidebar %}
35  {% if recents.results %}
36  <h3>Recently created</h3>
37  <ul>
38  {% for repo in recents.repos %}
39    {% include 'repo-sidebar-list.htm' %}
40  {% endfor %}
41  </ul>
42  {% endif %}
43 {% endblock %}