Sha256: 6c00b1ee904a93de2a2c049c1fa0cd7d36cb0fcb36a273658abf3a32ead9700e

Contents?: true

Size: 856 Bytes

Versions: 12

Compression:

Stored size: 856 Bytes

Contents

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


Version data entries

12 entries across 12 versions & 1 rubygems

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