Sha256: da70ec928290b6fd56110da64fb2752ad5cf9e3df1ee5d5561c8c04a33faa709
Contents?: true
Size: 1.24 KB
Versions: 8
Compression:
Stored size: 1.24 KB
Contents
<%= form_for([@object, @medium]) do |f| %> <div class="small-12 columns"> <%= f.submit 'Save', class: 'success button' %> <%= link_to 'Back', polymorphic_url([@object, :media]), class: 'secondary hollow button' %> </div> <% if @medium.errors.any? %> <div class="small-12 columns"> <div class="callout warning"> <h5><%= pluralize(@medium.errors.count, 'error') %> prohibited this content from being saved:</h5> <ul> <% @medium.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> </div> <% end %> <div class="small-12 columns"> <%= f.label :file %> <%= f.file_field :file, { class: 'hollow button' } %> </div> <div class="small-12 columns"> <%= f.label :title %> <%= f.text_field :title %> </div> <div class="small-12 columns"> <%= f.label :caption %> <%= f.text_field :caption %> </div> <div class="small-12 columns"> <%= f.label :tags %> <%= f.text_field :tags, { class: 'tags' } %> </div> <% if @object %> <%= f.hidden_field :filable_type, value: @object.class %> <%= f.hidden_field :filable_id, value: @object.id %> <% end %> <%= current_site_form_field f %> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems