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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
395
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
1 <%= form_for @paste, :html => { :class => "main-form" } do |f| %>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
2 <%= render "shared/filter_spam" %>
395
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
3 <div class="main-textarea-container">
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
4 <%= f.text_area :paste, :rows => 10, :autofocus => true, :class => "main-textarea monospaced" %>
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
395
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
7 <div class="settings-group">
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
8
395
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
9 <div class="settings">
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
10
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
11 <div class="settings-item">
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
12 <%= f.label :key, t(".deletion_key"), :class => "settings-label" %>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
13 <%= f.text_field :key %>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
14 </div>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
15
395
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
16 <div class="settings-item">
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
17 <div class="settings-label"><%= t(".privacy.label") %></div>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
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
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
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
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
25 </div>
395
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
26
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
27 </div>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
28
395
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
29 <div class="settings">
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
30
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
31 <%= f.button :class => "action btn btn--primary" %>
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
32
395
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
33 <%= button_tag t(".clear"), :type => "button", :class => "action btn btn--danger" %>
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
34
379
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
35 </div>
395
26f8c634052c Complete rework.
nanaya <me@myconan.net>
parents: 380
diff changeset
36
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
37 </div>
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
38 <% end %>