comparison app/views/pastes/new.html.erb @ 424:967233b26404

Fix styling for md size
author nanaya <me@myconan.net>
date Sat, 26 Sep 2015 03:56:24 +0900
parents 080dd141898c
children b2991317d4d7
comparison
equal deleted inserted replaced
423:ec413bbb4128 424:967233b26404
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> 15 </div></div>
16 16
17 <div class="row"><div class="col-sm-3"> 17 <div class="form-group <%= error_class f.object, :key %> form-group--narrow">
18 <div class="form-group <%= error_class f.object, :key %>"> 18 <%= f.label :key, t(".deletion_key") %>
19 <%= f.label :key, t(".deletion_key") %> 19 <%= f.text_field :key, :class => "form-control" %>
20 <%= f.text_field :key, :class => "form-control" %> 20 </div>
21
22 <div class="form-group">
23 <label><%= t(".privacy.label") %></label>
24
25 <div class="radio-container">
26 <% paste_privacy_options.each do |label, value| %>
27 <div class="radio">
28 <label>
29 <%= f.radio_button :is_private, value %>
30 <%= t(".privacy.#{label}") %>
31 </label>
32 </div>
33 <% end %>
21 </div> 34 </div>
35 </div>
22 36
23 <div class="form-group"> 37 <div class="form-group form-group--narrow">
24 <label><%= t(".privacy.label") %></label> 38 <%= f.label :language %>
25 39
26 <div class="radio-container"> 40 <%= f.select :language, [], { :prompt => t(".language_none") }, :class => "form-control" %>
27 <% paste_privacy_options.each do |label, value| %> 41 </div>
28 <div class="radio">
29 <label>
30 <%= f.radio_button :is_private, value %>
31 <%= t(".privacy.#{label}") %>
32 </label>
33 </div>
34 <% end %>
35 </div>
36 </div>
37 42
38 <div class="form-group"> 43 <div class="form-group">
39 <%= f.label :language %> 44 <%= f.button :class => "btn btn-primary" %>
40 45
41 <%= f.select :language, [], { :prompt => t(".language_none") }, :class => "form-control" %> 46 <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %>
42 </div> 47 </div>
43
44 <div class="form-group">
45 <%= f.button :class => "btn btn-primary" %>
46
47 <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %>
48 </div>
49 </div></div>
50 <% end %> 48 <% end %>
51 49
52 <div class="modal fade js-paste-preview-md-modal" tabindex="-1" role="dialog"> 50 <div class="modal fade js-paste-preview-md-modal" tabindex="-1" role="dialog">
53 <div class="modal-dialog" role="document"> 51 <div class="modal-dialog" role="document">
54 <div class="modal-content"> 52 <div class="modal-content">