Sha256: 36ede3587409b0e7daa4b5d28097c192705bd56b712f96a282410105aa666ee9
Contents?: true
Size: 1.52 KB
Versions: 44
Compression:
Stored size: 1.52 KB
Contents
<%= render 'backend/breadcrumbs' %> <% if @forms.any? %> <p class="text-right"> <%= link_to icon(:plus, t('b.add')), new_backend_form_path, class: 'btn btn-primary btn-sm' %> </p> <table class="table table-striped table-hover"> <thead class="thead-inverse"> <tr> <th><%= t 'b.description' %></th> <th><%= t 'b.form_fields' %></th> <th><%= t 'b.form_submissions' %></th> <th> </th> </tr> </thead> <tbody> <% @forms.each do |f| %> <tr> <td><%= f.description %></td> <td> <%= f.fields.size %> (<%= link_to t('b.overview').downcase, backend_form_fields_path(f) %>) </td> <td> <% if f.submissions.none? %> 0 <% else %> <%= f.submissions.size %> (<%= link_to t('b.overview').downcase, backend_form_submissions_path(f) %>) <% end %> </td> <td class="text-right"> <%= link_to_edit [:backend, f] %> <% if f.submissions.any? %> <%= link_to icon(:trash), '#', data: { toggle: 'tooltip' }, title: t('b.msg.forms.removal_warning', submissions: f.submissions.size) %> <% else %> <%= link_to_delete [:backend, f] if f.deletable? %> <% end %> </td> </tr> <% end %> </tbody> </table> <% else %> <p><%= t('b.msg.forms.explanation') %></p> <%= link_to t('b.msg.forms.add_first'), new_backend_form_path, class: 'btn btn-primary' %> <% end %>
Version data entries
44 entries across 44 versions & 1 rubygems