Sha256: 4e34e428e31cfa0d29c009be71ace6b7c236cbb0551b9f2f4546f519e0b6a843
Contents?: true
Size: 1.38 KB
Versions: 47
Compression:
Stored size: 1.38 KB
Contents
<% javascript 'backend/sortable' %> <div id="form-fields" class="card"> <div class="card-header"> <%= t 'b.msg.form_fields.index_header_html', form: form.description %> <% if form.fields.any? %> <div class="pull-right"> <%= link_to icon(:plus, t('b.msg.form_fields.add')), new_backend_form_field_path(form), class: 'btn btn-primary btn-sm' %> </div> <% end %> </div> <div class="card-block"> <% if form.fields.any? %> <table class="table table-hover"> <thead> <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-xs-right"> <%= link_to icon(:pencil_square_o), edit_backend_form_field_path(form, f) %> <%= link_to icon(:trash), backend_form_field_path(form, f), method: :delete, data: { confirm: t('b.msg.confirm') }, title: t('b.delete') %> </td> </tr> <% end %> </tbody> </table> <% else %> <p> <%= t('b.msg.form_fields.explanation') %> <%= link_to t('b.msg.form_fields.add_first'), new_backend_form_field_path(form) %>. </p> <% end %> </div> </div>
Version data entries
47 entries across 47 versions & 1 rubygems