Sha256: ed8e3c905241622e68e01a8c08a5f47374a375a6291cec9c88946feb61f54f20

Contents?: true

Size: 764 Bytes

Versions: 1

Compression:

Stored size: 764 Bytes

Contents

<%- back_path = @file_attachment.attachable_id.blank? ? 
  file_attachments_path : polymorphic_path(@file_attachment.attachable_id) -%>
<p><%= link_to '< back', back_path, :class => 'fake_button' %></p>

<%= content_tag :div do %>
  <%= semantic_form_for @file_attachment do |form| %>
    <%= form.inputs do %>
      <%= form.input :name, :hint => 'something memorable' %>
      <%= render({
        :partial => 'file_container_select',
        :locals => {
          :selected => "#{@file_attachment.attachable_type}_#{@file_attachment.attachable_id}"
        }
      }) %>
      <%= form.input :description, :hint => "of file contents, purpose, etc" %>
    <% end %>
    <%= form.buttons %>
  <% end %>
<% end if has_authorization?(:update, @file_attachment) %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
file_share-0.1.3 app/views/file_attachments/edit.html.erb