annotate app/views/pastes/_form.html.erb @ 380:2ddd61aca2c8

I18n. And refactor paste privacy settings form.
author nanaya <me@myconan.net>
date Sun, 07 Jun 2015 02:45:49 +0900
parents 2ad092e60975
children 26f8c634052c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
260
c4aba8990c5e Fix new paste form.
edogawaconan <me@myconan.net>
parents: 213
diff changeset
1 <%= form_for @paste do |f| %>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
2 <%= render "shared/filter_spam" %>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
3 <div id="paste-form">
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
4 <%= f.text_area :paste, :rows => 10, :autofocus => true %>
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
5 </div>
189
b4b7a29b70f6 Initial work for paste deletion.
Edho Arief <edho@myconan.net>
parents: 56
diff changeset
6
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
7 <div id="paste-control">
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
8 <div class="inputs left">
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
9
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
10 <div class="vertical-flex">
380
2ddd61aca2c8 I18n. And refactor paste privacy settings form.
nanaya <me@myconan.net>
parents: 379
diff changeset
11 <%= f.label :key, t(".deletion_key"), :class => "form-label" %>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
12 <%= f.text_field :key %>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
13 </div>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
14
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
15 <div class="vertical-flex">
380
2ddd61aca2c8 I18n. And refactor paste privacy settings form.
nanaya <me@myconan.net>
parents: 379
diff changeset
16 <div class="form-label"><%= t(".privacy.label") %></div>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
17
380
2ddd61aca2c8 I18n. And refactor paste privacy settings form.
nanaya <me@myconan.net>
parents: 379
diff changeset
18 <% paste_privacy_options.each do |label, value| %>
2ddd61aca2c8 I18n. And refactor paste privacy settings form.
nanaya <me@myconan.net>
parents: 379
diff changeset
19 <label class="radio">
2ddd61aca2c8 I18n. And refactor paste privacy settings form.
nanaya <me@myconan.net>
parents: 379
diff changeset
20 <%= f.radio_button :is_private, value %>
2ddd61aca2c8 I18n. And refactor paste privacy settings form.
nanaya <me@myconan.net>
parents: 379
diff changeset
21 <span><%= t(".privacy.#{label}") %></span>
2ddd61aca2c8 I18n. And refactor paste privacy settings form.
nanaya <me@myconan.net>
parents: 379
diff changeset
22 </label>
2ddd61aca2c8 I18n. And refactor paste privacy settings form.
nanaya <me@myconan.net>
parents: 379
diff changeset
23 <% end %>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
24 </div>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
25 </div>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
26
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
27 <div class="inputs right">
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
28 <%= f.button %>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
29
380
2ddd61aca2c8 I18n. And refactor paste privacy settings form.
nanaya <me@myconan.net>
parents: 379
diff changeset
30 <%= button_tag t(".clear"), :type => "button", :id => "reset_paste" %>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
31 </div>
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
32 </div>
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
33 <% end %>