Sha256: 51d412d7b27a0b8614660ae436fe066812937a9f9d5cd1b3de78180089e3cee5

Contents?: true

Size: 788 Bytes

Versions: 12

Compression:

Stored size: 788 Bytes

Contents

<div class="section">
  <div class="container">
    <p content="content">
      <%= link_to "New choice", new_field_choice_path(@field), class: "button is-primary" %>
      <%= link_to "Back", fields_path, class: "button is-link" %>
    </p>
    <table class="table is-fullwidth">
      <thead>
      <tr>
        <th>Label</th>
        <th></th>
      </tr>
      </thead>
      <tbody>
      <% @field.choices.each do |choice| %>
        <tr>
          <td><%= choice.label %></td>
          <td>
            <%= link_to "Edit", edit_field_choice_path(@field, choice) %> |
            <%= link_to "Destroy", field_choice_path(@field, choice), method: :delete, data: {confirm: "Are you sure?"} %>
          </td>
        </tr>
      <% end %>
      </tbody>
    </table>
  </div>
</div>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
script_core-0.3.2 spec/dummy/app/views/fields/choices/index.html.erb
script_core-0.3.0 spec/dummy/app/views/fields/choices/index.html.erb
script_core-0.2.7 spec/dummy/app/views/fields/choices/index.html.erb
script_core-0.2.6 spec/dummy/app/views/fields/choices/index.html.erb
script_core-0.2.5 spec/dummy/app/views/fields/choices/index.html.erb
script_core-0.2.4 spec/dummy/app/views/fields/choices/index.html.erb
script_core-0.2.3 spec/dummy/app/views/fields/choices/index.html.erb
script_core-0.2.2 spec/dummy/app/views/fields/choices/index.html.erb
script_core-0.2.1 spec/dummy/app/views/fields/choices/index.html.erb
script_core-0.2.0 spec/dummy/app/views/fields/choices/index.html.erb
script_core-0.1.1 spec/dummy/app/views/fields/choices/index.html.erb
script_core-0.1.0 spec/dummy/app/views/fields/choices/index.html.erb