mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 21:10:54 +00:00
25 lines
606 B
Text
25 lines
606 B
Text
<div class="wide box">
|
|
<%= form_for @map, :html => { :multipart => true } do |f| %>
|
|
<%= f.error_messages %>
|
|
|
|
<p>
|
|
<%= f.label :name %><br />
|
|
<%= f.text_field :name %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :category_id %><br />
|
|
<%= f.select :category_id, Category.ordered.domain(Category::DOMAIN_GAMES).collect{|c| [c, c.id]} %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :download %><br />
|
|
<%= f.text_field :download %>
|
|
</p>
|
|
<p>
|
|
<%= f.label :picture %><br />
|
|
<%= f.file_field :picture %>
|
|
</p>
|
|
<p>
|
|
<%= f.submit 'Update' %>
|
|
</p>
|
|
<% end %>
|
|
</div>
|