Sha256: 3dec6be333365daa7a3c4678677da2cabd02a7d61017b1f13874c8cf094672f3

Contents?: true

Size: 674 Bytes

Versions: 3

Compression:

Stored size: 674 Bytes

Contents

Coprl::Presenters.define(:show, namespace: :<%= plural_table_name %>) do
  helpers  <%= controller_class_name %>Helper

  snackbar params[:notice] if params[:notice]
  grid do
    column 1
    column 5 do
      card do
      <% attributes.each_with_index do |attribute,index| -%>
        <% if index == 0 -%>
          heading <%= singular_table_name %>.<%= attribute.name %>
      <% else -%>
          body <%= singular_table_name %>.<%= attribute.name %>
      <%  end -%>
      <% end -%>
      end
      link 'Edit', presenter_path(:edit,<%= singular_table_name %>_id: params[:<%= singular_table_name %>_id])
      link 'Back', presenter_path(:index)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 lib/generators/pom/scaffold/templates/show.html.pom
coprl-3.0.0.beta.11 lib/generators/pom/scaffold/templates/show.html.pom
coprl-3.0.0.beta.10 lib/generators/pom/scaffold/templates/show.html.pom