comparison app/views/pastes/new.html.erb @ 398:851432f21603

Nope, failing at redesigning.
author nanaya <me@myconan.net>
date Sun, 06 Sep 2015 03:52:52 +0900
parents app/views/pastes/_form.html.erb@26f8c634052c
children a18e19139f57
comparison
equal deleted inserted replaced
395:26f8c634052c 398:851432f21603
1 <% provide :title, 'New Paste' %> 1 <% provide :title, t(".title") %>
2 <%= form_for @paste do |f| %>
3 <%= render "shared/filter_spam" %>
2 4
3 <%= render 'form' %> 5 <div class="form-group <%= error_class f.object, :paste %>">
6 <%= f.text_area :paste, :autofocus => true, :class => "form-control paste-paste js-paste-paste", :rows => 20 %>
7 </div>
8
9 <div class="form-horizontal">
10 <div class="form-group <%= error_class f.object, :key %>">
11 <%= f.label :key, t(".deletion_key"), :class => "col-sm-2 control-label" %>
12 <div class="col-sm-3">
13 <%= f.text_field :key, :class => "form-control" %>
14 </div>
15 </div>
16
17 <div class="form-group">
18 <label class="control-label col-sm-2"><%= t(".privacy.label") %></label>
19
20 <div class="col-sm-10">
21 <% paste_privacy_options.each do |label, value| %>
22 <div class="radio">
23 <label>
24 <%= f.radio_button :is_private, value %>
25 <%= t(".privacy.#{label}") %>
26 </label>
27 </div>
28 <% end %>
29 </div>
30 </div>
31
32 <div class="form-group"><div class="col-sm-offset-2 col-sm-10">
33 <%= f.button :class => "btn btn-primary" %>
34
35 <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %>
36 </div></div>
37 </div>
38 <% end %>