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> </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