Mercurial > zeropaste
view app/views/pastes/_form.html.erb @ 389:433bc70e1781
Style up Pastes#show a bit.
author | nanaya <me@myconan.net> |
---|---|
date | Sun, 07 Jun 2015 13:05:31 +0900 |
parents | 2ddd61aca2c8 |
children | 26f8c634052c |
line wrap: on
line source
<%= form_for @paste do |f| %> <%= render "shared/filter_spam" %> <div id="paste-form"> <%= f.text_area :paste, :rows => 10, :autofocus => true %> </div> <div id="paste-control"> <div class="inputs left"> <div class="vertical-flex"> <%= f.label :key, t(".deletion_key"), :class => "form-label" %> <%= f.text_field :key %> </div> <div class="vertical-flex"> <div class="form-label"><%= t(".privacy.label") %></div> <% paste_privacy_options.each do |label, value| %> <label class="radio"> <%= f.radio_button :is_private, value %> <span><%= t(".privacy.#{label}") %></span> </label> <% end %> </div> </div> <div class="inputs right"> <%= f.button %> <%= button_tag t(".clear"), :type => "button", :id => "reset_paste" %> </div> </div> <% end %>