Sha256: d48abdc4400a1cfc8fb3be3e759b67436230ad60e2e54f44b430c90423f79902

Contents?: true

Size: 1.76 KB

Versions: 5

Compression:

Stored size: 1.76 KB

Contents

.markers--form

  = form_for @marker do |f|
    -# = f.hidden_field :map_id, value: (params['map_id']||@map_id)

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

    .row
      .col-md-1
        = f.label :map
        = f.text_field :map_id, value: @marker.map_id || params[:map_id]
      .col-md-5
        .field
          = f.label :name
          = f.text_field :name
      .col-md-6
        .field
          = f.label :slug
          = f.text_field :slug
    .row
      .col-md-3
        .field
          = f.label :w
          = f.number_field :w
      .col-md-3
        .field
          = f.label :h
          = f.number_field :h
      .col-md-3
        .field
          = f.label :x
          = f.number_field :x
      .col-md-3
        .field
          = f.label :y
          = f.number_field :y
    .field
      = f.label :img_path
      = f.text_field :img_path
    .field
      = f.label :title_img_path
      = f.text_field :title_img_path
    .row
      .col-md-3  
      .col-md-6
        .field
          = f.label :description
          = f.text_area :description
    .row
      .col-md-4
        .field
          = f.label :item_type
          = f.select :item_type, options_for_select(::Gameui::Marker::ITEM_TYPES)
      .col-md-4
        .field
          = f.label :ordering
          = f.text_field :ordering
      .col-md-4
    .row
      .col-md-3  
      .col-md-6
        .row
          .col-md-6
            .field
              = f.check_box :is_active
              = f.label :is_active
          .col-md-6
            .actions
              = f.submit 'Save'

Version data entries

5 entries across 5 versions & 1 rubygems

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