ensl.org/app/views/data_files/new.html.erb

25 lines
638 B
Text
Raw Normal View History

2014-04-26 20:21:11 +00:00
<h1 class="title">New File</h1>
2014-04-26 20:21:11 +00:00
<%= form_for @file, html: { multipart: true, class: 'square' } do |f| %>
<%= render 'shared/errors', messages: @file.errors.full_messages %>
2014-04-26 20:21:11 +00:00
<div class="fields horizontal">
<%= f.label :name %>
<%= f.file_field :name %>
</div>
2014-04-26 20:21:11 +00:00
<div class="fields horizontal">
<%= f.label :description %>
<%= f.text_field :description %>
</div>
2014-04-26 20:21:11 +00:00
<div class="fields horizontal">
<%= f.label :directory_id %>
<%= f.select :directory_id, Directory.all.collect{|c| ["#{c.path} - #{c.name}", c.id]} %>
</div>
2014-04-26 20:21:11 +00:00
<div class="controls">
<%= f.submit 'Create File' %>
</div>
<% end %>