Sha256: 20650c94bd62d4d38ee3dd37ac0ac07a157ad89d8301e6e2bd95e2d8c9a77481

Contents?: true

Size: 1.87 KB

Versions: 49

Compression:

Stored size: 1.87 KB

Contents

- url = params[:action] == 'new' ? markers_path : marker_path(@marker)
.markers--form
  = form_for @marker, url: url 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, selected: @marker.item_type )
      .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

49 entries across 49 versions & 1 rubygems

Version Path
ish_manager-0.1.8.208 app/views/ish_manager/markers/_form.haml
ish_manager-0.1.8.207 app/views/ish_manager/markers/_form.haml
ish_manager-0.1.8.206 app/views/ish_manager/markers/_form.haml
ish_manager-0.1.8.205 app/views/ish_manager/markers/_form.haml
ish_manager-0.1.8.204 app/views/ish_manager/markers/_form.haml
ish_manager-0.1.8.203 app/views/ish_manager/markers/_form.haml
ish_manager-0.1.8.202 app/views/ish_manager/markers/_form.haml
ish_manager-0.1.8.201 app/views/ish_manager/markers/_form.haml
ish_manager-0.1.8.200 app/views/ish_manager/markers/_form.haml