mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-29 14:01:48 +00:00
30 lines
592 B
Text
30 lines
592 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.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>
|