1 {% extends
"../base.html" %}
4 {% if mode ==
"paste" %}
6 {% elif mode ==
"upload" %}
13 <div class=
"container">
14 <section class=
"features-content col-12">
15 {% if mode ==
"paste" %}
16 <h2 class=
"display-2 text-center">{{ _(
"New Paste") }}
</h2>
17 {% elif mode ==
"upload" %}
18 <h2 class=
"display-2 text-center">{{ _(
"Upload File") }}
</h3>
23 <form class=
"form-horizontal" action=
"" method=
"POST" enctype=
"multipart/form-data">
24 <div class=
"form-group">
25 <input type=
"hidden" name=
"mode" value=
"{{ mode }}">
27 {% if mode ==
"paste" %}
29 <textarea class=
"form-control" rows=
"12" name=
"content"
30 placeholder=
"{{ _("Please paste your content here...
") }}"></textarea>
32 {% elif mode ==
"upload" %}
33 <label for=
"inputFile" class=
"col-2 control-label">{{ _(
"File") }}
</label>
35 <input type=
"file" id=
"inputFile" name=
"file">
38 <p class=
"help-block">
39 {{ _(
"You may upload up to %s.") % format_size(max_size) }}
46 {% if mode ==
"paste" %}
47 <div class=
"form-group">
48 <label for=
"inputSubject" class=
"col-2 control-label">{{ _(
"Subject") }}
</label>
50 <input type=
"subject" class=
"form-control" id=
"inputSubject"
51 name=
"subject" placeholder=
"{{ _("Subject
") }} ({{ _("optional
") }})">
56 <div class=
"form-group">
57 <label for=
"inputExpires" class=
"col-2 control-label">{{ _(
"Expires") }}
</label>
59 <select class=
"form-control" id=
"inputExpires" name=
"expires">
60 <option value=
"0">{{ _(
"never") }}
</option>
61 <option value=
"600">{{ _(
"after ten minutes") }}
</option>
62 <option value=
"3600">{{ _(
"after one hour") }}
</option>
63 <option value=
"{{ 24 * 3600 }}">{{ _(
"after one day") }}
</option>
64 <option value=
"{{ 7 * 24 * 3600 }}">{{ _(
"after one week") }}
</option>
65 <option value=
"{{ 30 * 24 * 3600 }}" selected
>{{ _(
"after one month") }}
</option>
70 <div class=
"form-group">
72 <button type=
"submit" class=
"btn btn-primary">{{ _(
"Submit") }}
</button>
76 {% raw xsrf_form_html() %}