view 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 source

<%= form_for @paste, :html => { :class => "main-form" } do |f| %>
  <%= render "shared/filter_spam" %>
  <div class="main-textarea-container">
    <%= f.text_area :paste, :rows => 10, :autofocus => true, :class => "main-textarea monospaced" %>
  </div>

  <div class="settings-group">

    <div class="settings">

      <div class="settings-item">
        <%= f.label :key, t(".deletion_key"), :class => "settings-label" %>
        <%= f.text_field :key %>
      </div>

      <div class="settings-item">
        <div class="settings-label"><%= t(".privacy.label") %></div>

        <% paste_privacy_options.each do |label, value| %>
          <label>
            <%= f.radio_button :is_private, value %>
            <span><%= t(".privacy.#{label}") %></span>
          </label>
        <% end %>
      </div>

    </div>

    <div class="settings">

      <%= f.button :class => "action btn btn--primary" %>

      <%= button_tag t(".clear"), :type => "button", :class => "action btn btn--danger" %>

    </div>

  </div>
<% end %>