comparison app/views/pastes/_form.html.erb @ 395:26f8c634052c

Complete rework.
author nanaya <me@myconan.net>
date Sat, 27 Jun 2015 14:46:01 +0900
parents 2ddd61aca2c8
children
comparison
equal deleted inserted replaced
394:6feb8c2574a1 395:26f8c634052c
1 <%= form_for @paste do |f| %> 1 <%= form_for @paste, :html => { :class => "main-form" } do |f| %>
2 <%= render "shared/filter_spam" %> 2 <%= render "shared/filter_spam" %>
3 <div id="paste-form"> 3 <div class="main-textarea-container">
4 <%= f.text_area :paste, :rows => 10, :autofocus => true %> 4 <%= f.text_area :paste, :rows => 10, :autofocus => true, :class => "main-textarea monospaced" %>
5 </div> 5 </div>
6 6
7 <div id="paste-control"> 7 <div class="settings-group">
8 <div class="inputs left">
9 8
10 <div class="vertical-flex"> 9 <div class="settings">
11 <%= f.label :key, t(".deletion_key"), :class => "form-label" %> 10
11 <div class="settings-item">
12 <%= f.label :key, t(".deletion_key"), :class => "settings-label" %>
12 <%= f.text_field :key %> 13 <%= f.text_field :key %>
13 </div> 14 </div>
14 15
15 <div class="vertical-flex"> 16 <div class="settings-item">
16 <div class="form-label"><%= t(".privacy.label") %></div> 17 <div class="settings-label"><%= t(".privacy.label") %></div>
17 18
18 <% paste_privacy_options.each do |label, value| %> 19 <% paste_privacy_options.each do |label, value| %>
19 <label class="radio"> 20 <label>
20 <%= f.radio_button :is_private, value %> 21 <%= f.radio_button :is_private, value %>
21 <span><%= t(".privacy.#{label}") %></span> 22 <span><%= t(".privacy.#{label}") %></span>
22 </label> 23 </label>
23 <% end %> 24 <% end %>
24 </div> 25 </div>
26
25 </div> 27 </div>
26 28
27 <div class="inputs right"> 29 <div class="settings">
28 <%= f.button %>
29 30
30 <%= button_tag t(".clear"), :type => "button", :id => "reset_paste" %> 31 <%= f.button :class => "action btn btn--primary" %>
32
33 <%= button_tag t(".clear"), :type => "button", :class => "action btn btn--danger" %>
34
31 </div> 35 </div>
36
32 </div> 37 </div>
33 <% end %> 38 <% end %>