Sha256: a7b3b41cb12adfc19bd7da6e4fb3c27f1cd833bc69df62b5ffcfe50301f9d570
Contents?: true
Size: 1.52 KB
Versions: 5
Compression:
Stored size: 1.52 KB
Contents
<h2><%%= t('headers.index', name: t('activerecord.models.<%= name %>.other')) %></h2> <table class="table table-striped table-hover"> <thead> <tr> <th><%%= t('activerecord.attributes.<%= name %>.email') %></th> <th><%%= t('activerecord.attributes.<%= name %>.name') %></th> <th><%%= t('activerecord.attributes.<%= name %>.active') %></th> <th><%%= t('activerecord.attributes.<%= name %>.status') %></th> <th><%%= t('activerecord.attributes.<%= name %>.theme') %></th> <th class="index-actions"><%%= t('actions.title') %></th> </tr> </thead> <tbody> <%% @<%= table_name %>.each do |<%= name %>| %> <tr> <td><%%= <%= name %>.email %></td> <td><%%= <%= name %>.name %></td> <td><%%= <%= name %>.active ? t('simple_form.yes') : t('simple_form.no') %></td> <td><%%= t('enums.<%= name %>.status.' + <%= name %>.status) %></td> <td><%%= <%= name %>.theme %></td> <td class="index-actions"> <%%= link_to t('actions.show'), <%= name %>, class: 'btn btn-default btn-xs' %> <br> <%%= link_to t('actions.edit'), [:edit, <%= name %>], class: 'btn btn-default btn-xs' %> <br> <%%= link_to t('actions.destroy'), <%= name %>, method: :delete, data: { confirm: t('actions.confirm') }, class: 'btn btn-danger btn-xs' %> </td> </tr> <%% end %> </tbody> </table> <br> <%%= link_to t('actions.add', name: t('activerecord.models.<%= name %>.one')), new_<%= name %>_path, class: 'btn btn-primary' %>
Version data entries
5 entries across 5 versions & 1 rubygems