comparison app/views/pastes/new.html.erb @ 403:e0626046579a

Rearrange stuff.
author nanaya <me@myconan.net>
date Sun, 06 Sep 2015 04:32:02 +0900
parents a18e19139f57
children 9ba3451cc063
comparison
equal deleted inserted replaced
402:a18e19139f57 403:e0626046579a
10 10
11 <div class="row"><div class="col-xs-12"> 11 <div class="row"><div class="col-xs-12">
12 <%= link_to t(".preview_md"), "#", 12 <%= link_to t(".preview_md"), "#",
13 :class => "btn btn-default js-paste-preview-md pull-right" 13 :class => "btn btn-default js-paste-preview-md pull-right"
14 %> 14 %>
15 </div></div>
16
17 <div class="row">
18 <div class="form-group col-sm-3 <%= error_class f.object, :key %>">
19 <%= f.label :key, t(".deletion_key") %>
20 <%= f.text_field :key, :class => "form-control" %>
21 </div>
15 </div> 22 </div>
16 23
17 <div class="form-horizontal"> 24 <div class="form-group">
18 <div class="form-group <%= error_class f.object, :key %>"> 25 <label><%= t(".privacy.label") %></label>
19 <%= f.label :key, t(".deletion_key"), :class => "col-sm-2 control-label" %> 26
20 <div class="col-sm-3"> 27 <div class="radio-container">
21 <%= f.text_field :key, :class => "form-control" %> 28 <% paste_privacy_options.each do |label, value| %>
22 </div> 29 <div class="radio">
30 <label>
31 <%= f.radio_button :is_private, value %>
32 <%= t(".privacy.#{label}") %>
33 </label>
34 </div>
35 <% end %>
23 </div> 36 </div>
37 </div>
24 38
25 <div class="form-group"> 39 <div class="form-group">
26 <label class="control-label col-sm-2"><%= t(".privacy.label") %></label> 40 <%= f.button :class => "btn btn-primary" %>
27 41
28 <div class="col-sm-10"> 42 <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %>
29 <% paste_privacy_options.each do |label, value| %> 43 </div></div>
30 <div class="radio">
31 <label>
32 <%= f.radio_button :is_private, value %>
33 <%= t(".privacy.#{label}") %>
34 </label>
35 </div>
36 <% end %>
37 </div>
38 </div>
39
40 <div class="form-group"><div class="col-sm-offset-2 col-sm-10">
41 <%= f.button :class => "btn btn-primary" %>
42
43 <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %>
44 </div></div>
45 </div>
46 <% end %> 44 <% end %>
47 45
48 <div class="modal fade js-paste-preview-md-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> 46 <div class="modal fade js-paste-preview-md-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
49 <div class="modal-dialog" role="document"> 47 <div class="modal-dialog" role="document">
50 <div class="modal-content"> 48 <div class="modal-content">