Sha256: be470f5be6e73d640693619afca5d8ac003c45a61e05e2259de7ebb19a72cca4

Contents?: true

Size: 569 Bytes

Versions: 9

Compression:

Stored size: 569 Bytes

Contents

= content_for :data_controls do
  = link_to 'Edit',
    edit_admin_<%=module_name_formatted.singularize%>_path(@<%=module_name_formatted.singularize%>),
    class: 'btn btn-default'
  = link_to 'Back',
    admin_<%= module_name_formatted %>_path,
    class: 'btn btn-default'

dl.dl-horizontal
  <%- attribute_names.each do |attribute| -%>
  dt <%= attribute.humanize.titlecase %>:
  dd = @<%= module_name_formatted.singularize %>.<%= attribute %>
  <%- end -%>

javascript:
  document.addEventListener('DOMContentLoaded', app.admin.<%= module_name_formatted %>.show);

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
tb_core-1.5.4 lib/generators/spud/templates/views/admin/show.html.slim
tb_core-1.5.3 lib/generators/spud/templates/views/admin/show.html.slim
tb_core-1.5.2 lib/generators/spud/templates/views/admin/show.html.slim
tb_core-1.5.1 lib/generators/spud/templates/views/admin/show.html.slim
tb_core-1.5.0 lib/generators/spud/templates/views/admin/show.html.slim
tb_core-1.4.8 lib/generators/spud/templates/views/admin/show.html.slim
tb_core-1.4.7 lib/generators/spud/templates/views/admin/show.html.slim
tb_core-1.4.6 lib/generators/spud/templates/views/admin/show.html.slim
tb_core-1.4.5 lib/generators/spud/templates/views/admin/show.html.slim