annotate app/views/pastes/_form.html.erb @ 379:2ad092e60975

[mq]: new-design
author nanaya <me@myconan.net>
date Sun, 07 Jun 2015 02:35:12 +0900
parents 5ca896a5ddef
children 2ddd61aca2c8
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">
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
11 <%= f.label :key, "Deletion key", :class => "form-label" %>
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">
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
16 <div class="form-label">Privacy</div>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
17 <label class="radio">
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
18 <%= f.radio_button :is_private, "0" %>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
19 <span>Public</span>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
20 </label>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
21
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
22 <label class="radio">
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
23 <%= f.radio_button :is_private, "1" %>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
24 <span>Private</span>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
25 </label>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
26 </div>
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
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
29 <div class="inputs right">
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
30 <%= f.button %>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
31
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
32 <%= button_tag "Clear", :type => "button", :id => "reset_paste" %>
2ad092e60975 [mq]: new-design
nanaya <me@myconan.net>
parents: 306
diff changeset
33 </div>
2
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
34 </div>
42de15334db1 Added the pastes.
Edho Arief <edho@myconan.net>
parents:
diff changeset
35 <% end %>