Sha256: 66f658ca229bd4f0768e06ffd3e3aaec0da967afec400fb679fc0a86ee0e4279

Contents?: true

Size: 904 Bytes

Versions: 4

Compression:

Stored size: 904 Bytes

Contents

= form_for @map do |f|
  - if @map.errors.any?
    #error_explanation
      %h2= "#{pluralize(@map.errors.count, "error")} prohibited this map from being saved:"
      %ul
        - @map.errors.full_messages.each do |message|
          %li= message

  
  .row
    .col-md-3
      .field
        = f.label :slug
        = f.text_field :slug
    .col-md-3
      .field
        = f.label :parent_slug
        = f.text_field :parent_slug
    .col-md-3
      .field
        = f.label :w
        = f.number_field :w
    .col-md-3
      .field
        = f.label :h
        = f.number_field :h
  .field
    = f.label :description
    = f.text_field :description
  .field
    = f.label :img_path
    = f.text_field :img_path
  .row
    .col-md-4
      .field
        = f.label :ordering_type
        = select_tag :ordering_type, options_for_select(::Gameui::Map::ORDERING_TYPES)
  .actions
    = f.submit 'Save'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ish_manager-0.1.8.196 app/views/ish_manager/maps/_form.haml
ish_manager-0.1.8.195 app/views/ish_manager/maps/_form.haml
ish_manager-0.1.8.194 app/views/ish_manager/maps/_form.haml
ish_manager-0.1.8.193 app/views/ish_manager/maps/_form.haml