Properly align 'Description' field in all widths
[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" class="form-horizontal">
6  <div class="control-group">
7   <label class="control-label" for="description">Description</label>
8   <div class="controls">
9    <input type="text" name="description" id="description" value="{{description}}"/>
10   </div>
11  </div>
12
13  {% include 'edit-file.htm' with {'file': file[1], 'fileid': 0, 'newfile': true} %}
14  {% include 'edit-add.htm' %}
15
16  <div class="row-fluid formbuttons">
17   <div class="span4"></div>
18   <div class="span4" style="text-align: center">
19    {% include 'edit-add-button.htm' %}
20   </div>
21   <div class="span4" style="text-align: right">
22    <button class="btn btn-primary" type="submit">
23     <i class="icon-check icon-white"></i>
24     Create
25    </button>
26   </div>
27  </div>
28
29 </form>
30
31 {% include 'fork-remote-new.htm' %}
32
33 <script type="application/javascript">
34 $(document).ready(function() {
35     initEdit();
36 });
37 </script>
38 {% endblock %}
39
40
41 {% block sidebar %}
42  {% if recents.results %}
43  <h4>Recently updated</h4>
44  <ul class="unstyled">
45  {% for repo in recents.repos %}
46    {% include 'repo-sidebar-list.htm' %}
47  {% endfor %}
48  </ul>
49  {% endif %}
50 {% endblock %}