Sha256: 58c8b4e6998cf3b57f1191e72937b82a541495cd21dbac73e6c8d5ff0d833360

Contents?: true

Size: 680 Bytes

Versions: 9

Compression:

Stored size: 680 Bytes

Contents

<div class="contextual">
  <%%= link_to 'Edit', edit_admin_<%= singular_name %>_path(@<%= singular_name %>), :class => 'icon icon-edit' %>
  <%%= link_to 'Destroy', [:admin, @<%= singular_name %>], :confirm => 'Are you sure?', :method => :delete, :class => 'icon icon-del' %>
</div>

<h2><%= singular_name.capitalize %> <%%= @<%= singular_name %>.id %></h2>

<div class="box">
<% for attribute in attributes -%>
  <p>
    <b><%= attribute.human_name %>:</b>
    <%%=h @<%= singular_name %>.<%= attribute.name %> %>
  </p>
<% end -%>
</div>

<%%= link_to 'Edit', edit_admin_<%= singular_name %>_path(@<%= singular_name %>) %> |
<%%= link_to 'Back', admin_<%= plural_name %>_path %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
admin_interface-1.4.3 lib/generators/admin_scaffold/templates/view_show.html.erb
admin_interface-1.4.2 lib/generators/admin_scaffold/templates/view_show.html.erb
admin_interface-1.4.1 lib/generators/admin_scaffold/templates/view_show.html.erb
admin_interface-1.3.1 lib/generators/admin_scaffold/templates/view_show.html.erb
admin_interface-1.3.0 lib/generators/admin_scaffold/templates/view_show.html.erb
admin_interface-1.2.2 lib/generators/admin_scaffold/templates/view_show.html.erb
admin_interface-1.2.1 lib/generators/admin_scaffold/templates/view_show.html.erb
admin_interface-1.2.0 lib/generators/admin_scaffold/templates/view_show.html.erb
admin_interface-1.0.0 lib/generators/admin_scaffold/templates/view_show.html.erb