mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-27 04:51:14 +00:00
8020b06f45
Tweaked layout for contest page Various styling updates
28 lines
845 B
Text
28 lines
845 B
Text
<%= form_for @map, html: { multipart: true, class: 'square' } do |f| %>
|
|
<%= render 'shared/errors', messages: @map.errors.full_messages %>
|
|
|
|
<div class="fields horizontal">
|
|
<%= f.label :name %>
|
|
<%= f.text_field :name %>
|
|
</div>
|
|
<div class="fields horizontal">
|
|
<%= f.label :category_id %>
|
|
<%= f.select :category_id, Category.ordered.domain(Category::DOMAIN_GAMES).collect { |c| [c, c.id] } %>
|
|
</div>
|
|
<div class="fields horizontal">
|
|
<%= f.label :download %>
|
|
<%= f.text_field :download %>
|
|
</div>
|
|
<div class="fields horizontal">
|
|
<%= f.label :picture %>
|
|
<div class="inputs">
|
|
<% if @map.picture.length > 0 %>
|
|
<%= image_tag @map.picture %><br>
|
|
<% end %>
|
|
<%= f.file_field :picture %>
|
|
</div>
|
|
</div>
|
|
<div class="controls">
|
|
<%= f.submit 'Update Map' %>
|
|
</div>
|
|
<% end %>
|