ensl.org/app/views/directories/_form.html.erb
Ari Timonen ce5dfcfa6a Finish recreate, Fix file browsing
Add it to adminpanel
2020-04-01 05:00:53 +03:00

30 lines
597 B
Text

<div class="wide box">
<%= form_for @directory do |f| %>
<div id="error_explanation">
<ul>
<% @directory.errors.full_messages.each do |msg| %>
<li><%= msg %></li>
<% end %>
</ul>
</div>
<% if @directory.new_record? %>
<%= f.hidden_field :parent_id %>
<% end %>
<p>
<b>Parent:</b> <%= @directory.parent.full_path %>
</p>
<p>
<%= f.label :name %><br />
<%= f.text_field :name %>
</p>
<p>
<%= f.label :hidden %><br />
<%= f.check_box :hidden %>
</p>
<p>
<%= f.submit %>
</p>
<% end %>
</div>