Sha256: ccc5d39b8adc81ea43229bad041f0897d2124f3a162d0e3e40f19c8fc9460764

Contents?: true

Size: 1.05 KB

Versions: 12

Compression:

Stored size: 1.05 KB

Contents

= form_for ([@parent, @selection]), html: {class: 'form-horizontal'} do |f|
  - if @selection.errors.any?
    #error_explanation
      %h2= "#{pluralize(@selection.errors.count, "error")} prohibited this selection from being saved:"
      %ul
        - @selection.errors.full_messages.each do |msg|
          %li= msg

  .control-group
    = f.label :name
    .controls
      = f.text_field :name
  .control-group
    = f.label :parent
    .controls
      = link_to @selection.parent, selection_selections_path(@selection.parent)
  .control-group
    = f.label :system_code
    .controls
      = f.text_field :system_code, :readonly => !@selection.new_record?
  .control-group
    = f.label :position_value
    .controls
      = f.text_field :position_value
  .control-group
    = f.label :is_default
    .controls
      = f.check_box :is_default
  .control-group
    = f.label :archived
    .controls
      = f.check_box :archived

  .form-actions
    = f.submit 'Save Changes', :class => 'btn-primary'
    = link_to 'Cancel', selection_selections_path(@parent), :class => 'btn'

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
selections-1.1.1 lib/generators/selections_scaffold/templates/_form.html.haml
selections-1.0.5 lib/generators/selections_scaffold/templates/_form.html.haml
selections-1.0.4 lib/generators/selections_scaffold/templates/_form.html.haml
selections-1.1.0 lib/generators/selections_scaffold/templates/_form.html.haml
selections-1.0.3 lib/generators/selections_scaffold/templates/_form.html.haml
selections-1.0.2 lib/generators/selections_scaffold/templates/_form.html.haml
selections-1.0.1 lib/generators/selections_scaffold/templates/_form.html.haml
selections-1.0.0 lib/generators/selections_scaffold/templates/_form.html.haml
selections-0.2.2 lib/generators/selections_scaffold/templates/_form.html.haml
selections-0.2.1 lib/generators/selections_scaffold/templates/_form.html.haml
selections-0.1.14 lib/generators/selections_scaffold/templates/_form.html.haml
selections-0.1.13 lib/generators/selections_scaffold/templates/_form.html.haml