create paste layout
[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" class="control-label">Description</label>
8   <div class="controls">
9    <input type="text" name="description" id="description" value="{{description}}"/>
10   </div>
11  </div>
12
13  <div class="well">
14   <div class="row-fluid">
15    <div class="span6">
16     <label for="filename_1">Filename</label>
17     <input type="text" name="file[1][name]" id="filename_1" value="{{ file[1]['name'] }}"/>
18    </div>
19    <div class="span6" style="text-align: right">
20     <label for="type_1">Type</label>
21     <select name="file[1][type]" id="type_1">
22      <option value="css">CSS</option>
23      <option value="php">PHP</option>
24      <option value="xml">XML</option>
25     </select>
26    </div>
27   </div>
28   <textarea name="file[1][content]" id="content_1" cols="80" rows="10" class="content">{{ file[1]['content'] }}</textarea>
29  </div>
30
31  <div class="well" style="text-align: right">
32   <button class="btn btn-primary" type="submit">
33    <i class="icon-check icon-white"></i>
34    Create
35   </button>
36  </div>
37
38 </form>
39 {% endblock %}