Sha256: f3c9b6b0509e0654c3b94983772e79921aeffd20c9cb1accb563711033084c37

Contents?: true

Size: 906 Bytes

Versions: 1

Compression:

Stored size: 906 Bytes

Contents

<% 
#if @file_attachment.event_id.nil?
%>
<p><%= link_to '< back', file_attachments_path, :class => 'fake_button' %></p>
<%
#else
%>
<!-- <p><%= 
#link_to '< back', event_path(@file_attachment.event.id), :class => 'fake_button'
%>
</p> -->
<% 
#end
%>
<%= 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 :event, :hint => 'does this file belong somewhere else?'
      %>
      <%= form.input :description, :hint => "of file contents, purpose, etc" %>
    <% end %>
    <%= form.buttons do %>
      <%= form.commit_button%>
    <% end %>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

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