Mercurial > zeropaste
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 |
rev | line source |
---|---|
260 | 1 <%= form_for @paste do |f| %> |
379 | 2 <%= render "shared/filter_spam" %> |
3 <div id="paste-form"> | |
4 <%= f.text_area :paste, :rows => 10, :autofocus => true %> | |
2 | 5 </div> |
189
b4b7a29b70f6
Initial work for paste deletion.
Edho Arief <edho@myconan.net>
parents:
56
diff
changeset
|
6 |
379 | 7 <div id="paste-control"> |
8 <div class="inputs left"> | |
9 | |
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 | 12 <%= f.text_field :key %> |
13 </div> | |
14 | |
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 | 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 | 24 </div> |
25 </div> | |
26 | |
27 <div class="inputs right"> | |
28 <%= f.button %> | |
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 | 31 </div> |
2 | 32 </div> |
33 <% end %> |