Sha256: 55393e403bbc9ad105ce1bdaa390b604069e45674de13da2477dc2b078f4be30

Contents?: true

Size: 628 Bytes

Versions: 10

Compression:

Stored size: 628 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" %>
<%% end %>

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

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

Version data entries

10 entries across 10 versions & 1 rubygems

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