Mercurial > zeropaste
view app/views/pastes/new.html.erb @ 427:cbfb3a0a9d2e
Update gems
author | nanaya <me@myconan.net> |
---|---|
date | Sat, 14 Nov 2015 20:43:49 +0900 |
parents | 967233b26404 |
children | b2991317d4d7 |
line wrap: on
line source
<% provide :title, t(".title") %> <%= form_for @paste do |f| %> <%= render "shared/filter_spam" %> <div class="form-group <%= error_class f.object, :paste %>"> <%= f.text_area :paste, :autofocus => true, :class => "form-control paste-paste js-paste-paste", :rows => 20 %> </div> <div class="row"><div class="col-xs-12"> <%= link_to t(".preview_md"), "#", :class => "btn btn-default js-paste-preview-md pull-right" %> </div></div> <div class="form-group <%= error_class f.object, :key %> form-group--narrow"> <%= f.label :key, t(".deletion_key") %> <%= f.text_field :key, :class => "form-control" %> </div> <div class="form-group"> <label><%= t(".privacy.label") %></label> <div class="radio-container"> <% paste_privacy_options.each do |label, value| %> <div class="radio"> <label> <%= f.radio_button :is_private, value %> <%= t(".privacy.#{label}") %> </label> </div> <% end %> </div> </div> <div class="form-group form-group--narrow"> <%= f.label :language %> <%= f.select :language, [], { :prompt => t(".language_none") }, :class => "form-control" %> </div> <div class="form-group"> <%= f.button :class => "btn btn-primary" %> <%= link_to t(".clear"), "#", :class => "btn btn-danger js-paste-clear" %> </div> <% end %> <div class="modal fade js-paste-preview-md-modal" tabindex="-1" role="dialog"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-body js-paste-preview-md-box"> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal"> <%= t("buttons.close") %> </button> </div> </div> </div> </div>