4a748bff1ff8372b743c58f4374cecd9bf3e6747
[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 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  {% include 'edit-add.htm' %}
13
14  <div class="row-fluid formbuttons">
15   <div class="span4"></div>
16   <div class="span4" style="text-align: center">
17    {% include 'edit-add-button.htm' %}
18   </div>
19   <div class="span4" style="text-align: right">
20    <button class="btn btn-primary" type="submit">
21     <i class="icon-check icon-white"></i>
22     Create
23    </button>
24   </div>
25  </div>
26
27 </form>
28
29 {% include 'fork-remote-new.htm' %}
30
31 <script type="application/javascript">
32 $(document).ready(function() {
33     initEdit();
34 });
35 </script>
36 {% endblock %}
37
38
39 {% block sidebar %}
40  {% if recents.results %}
41  <h4>Recently updated</h4>
42  <ul class="unstyled">
43  {% for repo in recents.repos %}
44    {% include 'repo-sidebar-list.htm' %}
45  {% endfor %}
46  </ul>
47  {% endif %}
48 {% endblock %}