Sha256: 595c1d77d7db99874c2155cfaa111f1984033e5a28805b0ecffb75bacf22c6f0
Contents?: true
Size: 920 Bytes
Versions: 1
Compression:
Stored size: 920 Bytes
Contents
<%= form_for(@page.new_record? ? [spotlight, @page.exhibit, @page] : [spotlight, @page] , role: 'form', html: {:'data-form-observer' => true}) do |f| %> <% if @page.errors.any? %> <div id="error_explanation"> <h2><%= pluralize(@page.errors.count, "error") %> prohibited this page from being saved:</h2> <ul> <% @page.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <div class="form-group"> <%= f.label :title, class: 'sr-only' %> <%= f.text_field :title, class: 'form-control input-lg', placeholder: t(:'.title_placeholder') %> </div> <div class="form-group"> <%= f.label :content, class: 'sr-only' %> <%= f.sir_trevor_text_area :content %> </div> <div class="actions"> <%= link_to(t('cancel'), :back, class: "btn btn-default") %> <%= f.submit class: 'btn btn-default' %> </div> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-0.0.3 | app/views/spotlight/pages/_form.html.erb |