Sha256: 273dce0112132446f0c472feccb6a1434710cb3088c5ef43fda544092944d27e

Contents?: true

Size: 701 Bytes

Versions: 12

Compression:

Stored size: 701 Bytes

Contents

- if @parent
  %h3
    = "Children of #{@parent.name}"
    = link_to ' (Back)', selections_path
  = link_to 'New Selection', new_selection_selection_path(@parent), :class => 'btn create' unless @parent.is_system
- else
  %h3
    Selections
%table.data.table-striped{:width => "100%"}
  %tr
    %th Name
    %th Position value
    %th Is default
    %th Archived at
    %th System code
  - if @selections.size == 0
    %tr.no-records
      %td{:colspan => "6"}
        %p No records to display.
  - @selections.each do |selection|
    %tr
      %td= selector selection
      %td= selection.position_value
      %td= selection.is_default
      %td= selection.archived_at
      %td= selection.system_code

Version data entries

12 entries across 12 versions & 1 rubygems

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