Sha256: 05907b442a691ae5d44a4ea08593d3d0ebbd1bbb06c4cb87be821b5dbde4a829
Contents?: true
Size: 1.56 KB
Versions: 13
Compression:
Stored size: 1.56 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><%%= link_to <%= name %>.email, "mailto:#{<%= 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
13 entries across 13 versions & 1 rubygems