mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-28 05:21:19 +00:00
27 lines
537 B
Text
27 lines
537 B
Text
|
<h1>New file</h1>
|
||
|
|
||
|
<div class="wide box">
|
||
|
<%= form_for @file, :html => { :multipart => true } do |f| %>
|
||
|
<%= f.error_messages %>
|
||
|
|
||
|
<p>
|
||
|
<%= f.label :name %><br />
|
||
|
<%= f.file_field :name %>
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
<%= f.label :description %><br />
|
||
|
<%= f.text_field :description %>
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
<%= f.label :directory_id %><br />
|
||
|
<%= f.select :directory_id, Directory.all.collect{|c| ["#{c.path} - #{c.name}", c.id]} %>
|
||
|
</p>
|
||
|
|
||
|
<p>
|
||
|
<%= f.submit 'Create' %>
|
||
|
</p>
|
||
|
<% end %>
|
||
|
</div>
|