Sha256: 7a6ae2c74178c5a28019a955efa236de8827d62bc8eff3d486cc60fec1cedf90

Contents?: true

Size: 770 Bytes

Versions: 13

Compression:

Stored size: 770 Bytes

Contents

<h1>Listing fields</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Type</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @fields.each do |field| %>
  <tr>
    <td><%= field.name %></td>
    <td><%= field.field_type %></td>
    <td><%= link_to 'Show', dynamic_fieldsets_field_path(field) %></td>
    <td><%= link_to 'Edit', edit_dynamic_fieldsets_field_path(field) %></td>
    <td><%= render :partial => "disable_field_form", :locals => { :field => field } %></td>
    <td>
      <% if field.in_use? %>
        <del>Destroy</del>
      <% else %>
        <%= button_to 'Destroy', dynamic_fieldsets_field_path(field), :method => :delete %>
      <% end %>
    </td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Field', new_dynamic_fieldsets_field_path %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dynamic_fieldsets-0.0.16 app/views/dynamic_fieldsets/fields/index.html.erb
dynamic_fieldsets-0.0.15 app/views/dynamic_fieldsets/fields/index.html.erb
dynamic_fieldsets-0.0.14 app/views/dynamic_fieldsets/fields/index.html.erb
dynamic_fieldsets-0.0.13 app/views/dynamic_fieldsets/fields/index.html.erb
dynamic_fieldsets-0.0.12 app/views/dynamic_fieldsets/fields/index.html.erb
dynamic_fieldsets-0.0.11 app/views/dynamic_fieldsets/fields/index.html.erb
dynamic_fieldsets-0.0.10 app/views/dynamic_fieldsets/fields/index.html.erb
dynamic_fieldsets-0.0.9 app/views/dynamic_fieldsets/fields/index.html.erb
dynamic_fieldsets-0.0.8 app/views/dynamic_fieldsets/fields/index.html.erb
dynamic_fieldsets-0.0.7 app/views/dynamic_fieldsets/fields/index.html.erb
dynamic_fieldsets-0.0.6 app/views/dynamic_fieldsets/fields/index.html.erb
dynamic_fieldsets-0.0.5 app/views/dynamic_fieldsets/fields/index.html.erb
dynamic_fieldsets-0.0.4 app/views/dynamic_fieldsets/fields/index.html.erb