]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blame - templates/nopaste/create.html
Massive web site update
[people/shoehn/ipfire.org.git] / templates / nopaste / create.html
CommitLineData
66862195
MT
1{% extends "../base.html" %}
2
b0b3e3e7
MT
3{% block title %}
4 {% if mode == "paste" %}
5 {{ _("New Paste") }}
6 {% elif mode == "upload" %}
7 {{ _("Upload File") }}
8 {% end %}
9{% end block %}
66862195 10
60b0917c
MT
11{% block container %}
12 <section class="container content-section">
13 <div class="page-header">
b0b3e3e7 14 {% if mode == "paste" %}
60b0917c 15 <h3>{{ _("New Paste") }}</h3>
b0b3e3e7 16 {% elif mode == "upload" %}
60b0917c
MT
17 <h3>{{ _("Upload File") }}</h3>
18 {% end %}
19 </div>
20
21 <form class="form-horizontal" action="" method="POST" enctype="multipart/form-data">
22 <div class="form-group">
23 <input type="hidden" name="mode" value="{{ mode }}">
b0b3e3e7 24
60b0917c
MT
25 {% if mode == "paste" %}
26 <div class="col-sm-12">
27 <textarea class="form-control" rows="12" name="content"
28 placeholder="{{ _("Please paste your content here...") }}"></textarea>
29 </div>
30 {% elif mode == "upload" %}
31 <label for="inputFile" class="col-sm-2 control-label">{{ _("File") }}</label>
32 <div class="col-sm-10">
33 <input type="file" id="inputFile" name="file">
34
35 {% if max_size %}
36 <p class="help-block">
37 {{ _("You may upload up to %s.") % format_size(max_size) }}
38 </p>
39 {% end %}
40 </div>
41 {% end %}
42 </div>
43
44 {% if mode == "paste" %}
45 <div class="form-group">
46 <label for="inputSubject" class="col-sm-2 control-label">{{ _("Subject") }}</label>
47 <div class="col-sm-10">
48 <input type="subject" class="form-control" id="inputSubject"
49 name="subject" placeholder="{{ _("Subject") }} ({{ _("optional") }})">
50 </div>
b0b3e3e7
MT
51 </div>
52 {% end %}
66862195 53
b0b3e3e7 54 <div class="form-group">
60b0917c 55 <label for="inputExpires" class="col-sm-2 control-label">{{ _("Expires") }}</label>
b0b3e3e7 56 <div class="col-sm-10">
60b0917c
MT
57 <select class="form-control" id="inputExpires" name="expires">
58 <option value="0">{{ _("never") }}</option>
59 <option value="600">{{ _("after ten minutes") }}</option>
60 <option value="3600">{{ _("after one hour") }}</option>
61 <option value="{{ 24 * 3600 }}">{{ _("after one day") }}</option>
62 <option value="{{ 7 * 24 * 3600 }}">{{ _("after one week") }}</option>
63 <option value="{{ 30 * 24 * 3600 }}" selected>{{ _("after one month") }}</option>
64 </select>
b0b3e3e7 65 </div>
66862195 66 </div>
66862195 67
60b0917c
MT
68 <div class="form-group">
69 <div class="col-sm-offset-2 col-sm-10">
70 <button type="submit" class="btn btn-primary">{{ _("Submit") }}</button>
71 </div>
66862195 72 </div>
66862195 73
60b0917c
MT
74 {% raw xsrf_form_html() %}
75 </form>
76 </section>
66862195 77{% end block %}