annotate app/views/pastes/new.html.erb @ 404:3d434e15ddb1

Already have the default.
author nanaya <me@myconan.net>
date Sun, 06 Sep 2015 04:35:11 +0900
parents e0626046579a
children 9ba3451cc063
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
1 <% provide :title, t(".title") %>
402
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
2
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
3 <%= form_for @paste do |f| %>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
4 <%= render "shared/filter_spam" %>
398
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
5
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
6 <div class="form-group <%= error_class f.object, :paste %>">
851432f21603 Nope, failing at redesigning.
nanaya <me@myconan.net>
parents: 395
diff changeset
7 <%= f.text_area :paste, :autofocus => true, :class => "form-control paste-paste js-paste-paste", :rows => 20 %>
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
8 </div>
189
b4b7a29b70f6 Initial work for paste deletion.
Edho Arief <edho@myconan.net>
parents: 56
diff changeset
9
402
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
10
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
11 <div class="row"><div class="col-xs-12">
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
12 <%= link_to t(".preview_md"), "#",
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
13 :class => "btn btn-default js-paste-preview-md pull-right"
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
14 %>
403
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
15 </div></div>
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
16
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
17 <div class="row">
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
18 <div class="form-group col-sm-3 <%= error_class f.object, :key %>">
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
19 <%= f.label :key, t(".deletion_key") %>
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
20 <%= f.text_field :key, :class => "form-control" %>
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
21 </div>
402
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
22 </div>
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
23
403
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
24 <div class="form-group">
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
25 <label><%= t(".privacy.label") %></label>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
26
403
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
27 <div class="radio-container">
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
28 <% paste_privacy_options.each do |label, value| %>
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
29 <div class="radio">
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
30 <label>
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
31 <%= f.radio_button :is_private, value %>
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
32 <%= t(".privacy.#{label}") %>
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
33 </label>
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
34 </div>
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
35 <% end %>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
36 </div>
403
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
37 </div>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
38
403
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
39 <div class="form-group">
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
40 <%= f.button :class => "btn btn-primary" %>
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
41
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
42 <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %>
e0626046579a Rearrange stuff.
nanaya <me@myconan.net>
parents: 402
diff changeset
43 </div></div>
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
44 <% end %>
402
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
45
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
46 <div class="modal fade js-paste-preview-md-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
47 <div class="modal-dialog" role="document">
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
48 <div class="modal-content">
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
49 <div class="modal-body js-paste-preview-md-box">
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
50 </div>
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
51 <div class="modal-footer">
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
52 <button type="button" class="btn btn-default" data-dismiss="modal">
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
53 <%= t(".close") %>
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
54 </button>
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
55 </div>
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
56 </div>
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
57 </div>
a18e19139f57 Markdown preview \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
58 </div>