Basic feature implemented, very basic poc
This commit is contained in:
parent
216089a3e7
commit
48c0067076
118 changed files with 2113 additions and 20 deletions
9
lib/templates/erb/scaffold/show.html.erb.tt
Normal file
9
lib/templates/erb/scaffold/show.html.erb.tt
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<h1><%%= t("scaffold.pagetitle_show", model: @<%= singular_table_name %>.class.model_name.human) %></h1>
|
||||
|
||||
<%%= render @<%= singular_table_name %> %>
|
||||
|
||||
<div class="action-row">
|
||||
<%%= link_to t("scaffold.link_edit", model: @<%= singular_table_name %>.model_name.human), <%= edit_helper(type: :path) %> %>
|
||||
<%%= link_to t("scaffold.link_index", model: @<%= singular_table_name %>.model_name.human(count: 2)), <%= index_helper(type: :path) %> %>
|
||||
<%%= button_to t("scaffold.link_destroy", model: @<%= singular_table_name %>.model_name.human), <%= model_resource_name(prefix: "@") %>, method: :delete, class: "btn btn-warning" %>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue