Sha256: b544b4dee3ec935ad096e649893359ccd2e40d01de85c116601bde1d462e7b6c
Contents?: true
Size: 781 Bytes
Versions: 2
Compression:
Stored size: 781 Bytes
Contents
<p id="notice"><%%= notice %></p> <table class="table table-striped"> <tbody> <% attributes.reject(&:password_digest?).each do |attribute| -%> <tr> <td><strong><%= attribute.human_name %>:</strong></td> <td><%%= @<%= singular_table_name %>.<%= attribute.name %> %></td> </tr> <% end -%> </tbody> </table> <div class="row"> <div class="col-md-6"> <%%= link_to 'Back', <%= prefixed_index_helper %>_path, class: 'btn btn-default' %> </div <div class="col-md-6 text-right"> <%%= link_to 'Edit', edit_<%= prefixed_plain_model_url %>_path(@<%= singular_table_name %>), class: 'btn btn-primary' %> <%%= link_to 'Destroy', <%= "[:#{prefix}, @#{singular_table_name}]" %>, method: :delete, data: { confirm: 'Are you sure?' }, class: 'btn btn-danger' %> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
admin-panel-0.1.1 | lib/generators/admin_panel/scaffold/templates/views/erb/show.html.erb.erb |
admin-panel-0.1.0 | lib/generators/admin_panel/scaffold/templates/views/erb/show.html.erb.erb |