comparison 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
comparison
equal deleted inserted replaced
378:e84276bf344a 379:2ad092e60975
1 <%= form_for @paste do |f| %> 1 <%= form_for @paste do |f| %>
2 <div class="form-group"> 2 <%= render "shared/filter_spam" %>
3 <%= f.text_area :paste, :rows => 10, :class => "form-control" %> 3 <div id="paste-form">
4 <%= f.text_area :paste, :rows => 10, :autofocus => true %>
4 </div> 5 </div>
5 6
6 <div class="form-group"> 7 <div id="paste-control">
7 <%= f.label :key, "Deletion key", class: "control-label" %> 8 <div class="inputs left">
8 <div class="row"><div class="col-sm-3"> 9
9 <%= f.text_field :key, :class => "form-control" %> 10 <div class="vertical-flex">
10 </div></div> 11 <%= f.label :key, "Deletion key", :class => "form-label" %>
12 <%= f.text_field :key %>
13 </div>
14
15 <div class="vertical-flex">
16 <div class="form-label">Privacy</div>
17 <label class="radio">
18 <%= f.radio_button :is_private, "0" %>
19 <span>Public</span>
20 </label>
21
22 <label class="radio">
23 <%= f.radio_button :is_private, "1" %>
24 <span>Private</span>
25 </label>
26 </div>
27 </div>
28
29 <div class="inputs right">
30 <%= f.button %>
31
32 <%= button_tag "Clear", :type => "button", :id => "reset_paste" %>
33 </div>
11 </div> 34 </div>
12 <%= render 'shared/filter_spam' %>
13 <div class="checkbox">
14 <%= f.label :is_private do %>
15 <%= f.check_box :is_private %>
16 Private
17 <% end %>
18 </div>
19 <%= f.button :class => 'btn btn-primary' %>
20 <%= link_to 'Clear', root_path, :class => 'btn btn-danger', :id => 'reset_paste' %>
21 <% end %> 35 <% end %>