Sha256: ba8a1c0084d3cb3afdb81782be8768afcf334e2ba9b9dc9a6b3a1724afbd056d
Contents?: true
Size: 1.44 KB
Versions: 1
Compression:
Stored size: 1.44 KB
Contents
<div class="panel-header"><%%= link_to t('actions.new') + <%= singular_table_name.classify %>.model_name.human, new_<%= prefixed_plain_model_url %>_path, class: "ui button primary" %></div> <table> <thead> <tr> <% attributes.reject(&:password_digest?).each do |attribute| -%> <th><%%= <%= singular_table_name.classify %>.human_attribute_name(:<%= attribute.name %>) %></th> <% end -%> <th></th> </tr> </thead> <tbody> <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> <tr> <% attributes.reject(&:password_digest?).each do |attribute| -%> <td><%%= <%= singular_table_name %>.<%= attribute.name %> %></td> <% end -%> <td> <%%= link_to <%= "[:#{prefix}, #{singular_table_name}]" %>, class: "ui button tiny primary tooltip" do -%><span class="tooltiptext"><%%= t('actions.show') %></span><i class="ai ai-file"></i><%% end %> <%%= link_to edit_<%= prefixed_plain_model_url %>_path(<%= singular_table_name %>), class: "ui button tiny warning tooltip" do -%><span class="tooltiptext"><%%= t('actions.edit') %></span><i class="ai ai-pencil"></i><%% end %> <%%= link_to <%= "[:#{prefix}, #{singular_table_name}]" %>, method: :delete, data: { confirm: 'Are you sure?' }, class: "ui button tiny danger tooltip" do -%><span class="tooltiptext"><%%= t('actions.destroy') %></span><i class="ai ai-times"></i><%% end %> </td> </tr> <%% end %> </tbody> </table>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
admin_help-0.1.5 | lib/generators/admin/scaffold_controller/templates/views/erb/index.html.erb.erb |