lib/generators/templates/erb/scaffold/show.html.erb in wobapphelpers-4.1.2 vs lib/generators/templates/erb/scaffold/show.html.erb in wobapphelpers-4.2.0
- old
+ new
@@ -1,15 +1,22 @@
-<table class="table table-bordered table-hover autowidth">
-<% attributes.each do |attribute| %>
- <tr>
- <th><%%= t('attributes.<%= attribute.name %>')%>:</th>
- <td><%%= @<%= singular_table_name %>.<%= attribute.name %> %></td>
- </tr>
-<% end -%>
-</table>
+<div class="card">
+ <div class="card-header">
+ <h4><%%= t('activerecord.models.<%= singular_table_name %>') %></h4>
+ </div>
+ <div class="card-body">
+ <table class="table table-bordered table-hover autowidth">
+ <% attributes.each do |attribute| %>
+ <tr>
+ <th><%%= t('attributes.<%= attribute.name %>')%>:</th>
+ <td><%%= @<%= singular_table_name %>.<%= attribute.name %> %></td>
+ </tr>
+ <% end -%>
+ </table>
-<div role="toolbar">
- <%%= back_link %>
- <%%= edit_link(@<%= singular_table_name %>) %>
- <%%= delete_link(@<%= singular_table_name %>) %>
- <%%= new_link <%= class_name %> %>
+ <div role="toolbar">
+ <%%= back_link %>
+ <%%= edit_link(@<%= singular_table_name %>) %>
+ <%%= delete_link(@<%= singular_table_name %>) %>
+ <%%= new_link <%= class_name %> %>
+ </div>
+ </div>
</div>