Sha256: 32d6a94733582214629f06c0e6f0824ebb336472202e1d3e93b61f554338c20c

Contents?: true

Size: 874 Bytes

Versions: 7

Compression:

Stored size: 874 Bytes

Contents

<%= form_for(@file_item) do |f| %>
  <% if @file_item.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@file_item.errors.count, "error") %> prohibited this file_item from being saved:</h2>

      <ul>
      <% @file_item.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </div>
  <% unless @file_item.item_type == Saphira::FileItem::TYPE_FOLDER %>
  <div class="field">
    <%= f.label :file %><br />
    <%= f.file_field :file %>
  </div>
  <% end %>
  <div class="field">
    <%= f.label :tag_list %><br />
    <%= f.text_field :tag_list %>
  </div>
  <div class="actions">
    <%= f.hidden_field :item_type %>
    <%= f.hidden_field :parent_id %>
    <%= f.submit 'Create' %>
  </div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
saphira-0.1.1.beta1 app/views/saphira/file_items/_form.html.erb
saphira-0.1.0 app/views/saphira/file_items/_form.html.erb
saphira-0.1.0.beta4 app/views/saphira/file_items/_form.html.erb
saphira-0.1.0.beta3 app/views/saphira/file_items/_form.html.erb
saphira-0.1.0.beta2 app/views/saphira/file_items/_form.html.erb
saphira-0.1.0.beta1 app/views/saphira/file_items/_form.html.erb
saphira-0.0.1 app/views/saphira/file_items/_form.html.erb