Mercurial > zeropaste
annotate app/views/pastes/_form.html.erb @ 395:26f8c634052c
Complete rework.
author | nanaya <me@myconan.net> |
---|---|
date | Sat, 27 Jun 2015 14:46:01 +0900 |
parents | 2ddd61aca2c8 |
children |
rev | line source |
---|---|
395 | 1 <%= form_for @paste, :html => { :class => "main-form" } do |f| %> |
379 | 2 <%= render "shared/filter_spam" %> |
395 | 3 <div class="main-textarea-container"> |
4 <%= f.text_area :paste, :rows => 10, :autofocus => true, :class => "main-textarea monospaced" %> | |
2 | 5 </div> |
189
b4b7a29b70f6
Initial work for paste deletion.
Edho Arief <edho@myconan.net>
parents:
56
diff
changeset
|
6 |
395 | 7 <div class="settings-group"> |
379 | 8 |
395 | 9 <div class="settings"> |
10 | |
11 <div class="settings-item"> | |
12 <%= f.label :key, t(".deletion_key"), :class => "settings-label" %> | |
379 | 13 <%= f.text_field :key %> |
14 </div> | |
15 | |
395 | 16 <div class="settings-item"> |
17 <div class="settings-label"><%= t(".privacy.label") %></div> | |
379 | 18 |
380
2ddd61aca2c8
I18n. And refactor paste privacy settings form.
nanaya <me@myconan.net>
parents:
379
diff
changeset
|
19 <% paste_privacy_options.each do |label, value| %> |
395 | 20 <label> |
380
2ddd61aca2c8
I18n. And refactor paste privacy settings form.
nanaya <me@myconan.net>
parents:
379
diff
changeset
|
21 <%= f.radio_button :is_private, value %> |
2ddd61aca2c8
I18n. And refactor paste privacy settings form.
nanaya <me@myconan.net>
parents:
379
diff
changeset
|
22 <span><%= t(".privacy.#{label}") %></span> |
2ddd61aca2c8
I18n. And refactor paste privacy settings form.
nanaya <me@myconan.net>
parents:
379
diff
changeset
|
23 </label> |
2ddd61aca2c8
I18n. And refactor paste privacy settings form.
nanaya <me@myconan.net>
parents:
379
diff
changeset
|
24 <% end %> |
379 | 25 </div> |
395 | 26 |
379 | 27 </div> |
28 | |
395 | 29 <div class="settings"> |
30 | |
31 <%= f.button :class => "action btn btn--primary" %> | |
379 | 32 |
395 | 33 <%= button_tag t(".clear"), :type => "button", :class => "action btn btn--danger" %> |
34 | |
379 | 35 </div> |
395 | 36 |
2 | 37 </div> |
38 <% end %> |