Sha256: 2c02b89b60030ec91e46c1282b9284bf8f7f96959855daa996abd6e7836fcd32

Contents?: true

Size: 858 Bytes

Versions: 2

Compression:

Stored size: 858 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 %>
  <% end %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

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