Sha256: 7014feb1ac2b9a63684de2791d48038434e81b8c7545cd23bc9938f0a806f426

Contents?: true

Size: 1.07 KB

Versions: 46

Compression:

Stored size: 1.07 KB

Contents

<% javascript 'backend/sortable' %>

<% breadcrumb.add t('b.form_fields') %>
<%= render 'backend/breadcrumbs' %>

<% if @form.fields.any? %>
  <p class="text-right">
    <%= link_to icon(:plus, t('b.add')), new_backend_form_field_path(@form), class: 'btn btn-primary btn-sm' %>
  </p>

  <table class="table table-striped table-hover">
    <thead class="thead-inverse">
      <tr>
        <th><%= t('b.name') %></th>
        <th>&nbsp;</th>
      </tr>
    </thead>

    <tbody>
      <% @form.fields.each do |f| %>
        <tr data-update-position="<%= update_position_backend_form_field_path(@form, f) %>">
          <td><%= f.identifier %></td>
          <td class="text-right">
            <%= link_to_edit edit_backend_form_field_path(@form, f) %>
            <%= link_to_delete backend_form_field_path(@form, f) %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>

<% else %>
  <p><%= t('b.msg.form_fields.explanation') %></p>
  <p>
    <%= link_to t('b.msg.form_fields.add_first'), new_backend_form_field_path(@form), class: 'btn btn-primary' %>
  </p>
<% end %>

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
udongo-7.9.0 app/views/backend/forms/fields/index.html.erb
udongo-7.8.1 app/views/backend/forms/fields/index.html.erb
udongo-7.8.0 app/views/backend/forms/fields/index.html.erb
udongo-7.7.2 app/views/backend/forms/fields/index.html.erb
udongo-7.7.1 app/views/backend/forms/fields/index.html.erb
udongo-7.7.0 app/views/backend/forms/fields/index.html.erb
udongo-7.6.2 app/views/backend/forms/fields/index.html.erb
udongo-7.6.1 app/views/backend/forms/fields/index.html.erb
udongo-7.6.0 app/views/backend/forms/fields/index.html.erb
udongo-7.5.1 app/views/backend/forms/fields/index.html.erb
udongo-7.5.0 app/views/backend/forms/fields/index.html.erb
udongo-7.4.2 app/views/backend/forms/fields/index.html.erb
udongo-7.4.1 app/views/backend/forms/fields/index.html.erb
udongo-7.4.0 app/views/backend/forms/fields/index.html.erb
udongo-7.3.5 app/views/backend/forms/fields/index.html.erb
udongo-7.3.4 app/views/backend/forms/fields/index.html.erb
udongo-7.3.3 app/views/backend/forms/fields/index.html.erb
udongo-7.3.2 app/views/backend/forms/fields/index.html.erb
udongo-7.3.1 app/views/backend/forms/fields/index.html.erb
udongo-7.2.1 app/views/backend/forms/fields/index.html.erb