diff 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
line wrap: on
line diff
--- a/app/views/pastes/_form.html.erb	Mon Jun 08 19:14:53 2015 +0900
+++ b/app/views/pastes/_form.html.erb	Sat Jun 27 14:46:01 2015 +0900
@@ -1,33 +1,38 @@
-<%= form_for @paste do |f| %>
+<%= form_for @paste, :html => { :class => "main-form" } do |f| %>
   <%= render "shared/filter_spam" %>
-  <div id="paste-form">
-    <%= f.text_area :paste, :rows => 10, :autofocus => true %>
+  <div class="main-textarea-container">
+    <%= f.text_area :paste, :rows => 10, :autofocus => true, :class => "main-textarea monospaced" %>
   </div>
 
-  <div id="paste-control">
-    <div class="inputs left">
+  <div class="settings-group">
 
-      <div class="vertical-flex">
-        <%= f.label :key, t(".deletion_key"), :class => "form-label" %>
+    <div class="settings">
+
+      <div class="settings-item">
+        <%= f.label :key, t(".deletion_key"), :class => "settings-label" %>
         <%= f.text_field :key %>
       </div>
 
-      <div class="vertical-flex">
-        <div class="form-label"><%= t(".privacy.label") %></div>
+      <div class="settings-item">
+        <div class="settings-label"><%= t(".privacy.label") %></div>
 
         <% paste_privacy_options.each do |label, value| %>
-          <label class="radio">
+          <label>
             <%= f.radio_button :is_private, value %>
             <span><%= t(".privacy.#{label}") %></span>
           </label>
         <% end %>
       </div>
+
     </div>
 
-    <div class="inputs right">
-      <%= f.button %>
+    <div class="settings">
+
+      <%= f.button :class => "action btn btn--primary" %>
 
-      <%= button_tag t(".clear"), :type => "button", :id => "reset_paste" %>
+      <%= button_tag t(".clear"), :type => "button", :class => "action btn btn--danger" %>
+
     </div>
+
   </div>
 <% end %>