Sha256: 4d07de8695a8bea3fbf309abb8d736235a34d50382ac55a06733aca30e613193

Contents?: true

Size: 1.49 KB

Versions: 15

Compression:

Stored size: 1.49 KB

Contents

<%%= content_for :data_controls do %>
  <%%= link_to "New <%=module_name_formatted.singularize.humanize.titlecase%>", new_spud_admin_<%=module_name_formatted.singularize%>_path, :class => "btn btn-primary", :title => "<%=module_name_formatted.singularize.humanize.titlecase%>" %>
<%% end %>

<%%= content_for :detail do %>
  <table class="admin-table" id="client_table">
    <thead>
      <tr>
        <%attributes.each do |attribute|%>
          <%-attribute_args = attribute.split(":")-%>
          <th><%=attribute_args[0].humanize.titlecase%></th>
        <%end%>
      </tr>
    </thead>
    <tbody>
      <%% @<%=module_name_formatted%>.each do |<%=module_name_formatted.singularize%>| %>
        <tr>
          <%-attributes.each do |attribute|-%>
          <%-attribute_args = attribute.split(":")-%>
          <td><%%=<%=module_name_formatted.singularize%>.<%=attribute_args[0]%> %></td>
          <%-end-%>
          <td align="right" width="150">
            <%%= link_to 'Edit', edit_spud_admin_<%=module_name_formatted.singularize%>_path(<%=module_name_formatted.singularize%>), :class => 'btn' %>
            <%%= link_to 'Delete', spud_admin_<%=module_name_formatted.singularize%>_path(<%=module_name_formatted.singularize%>), :method => :delete, :confirm => 'Are you sure you want to delete this <%=module_name_formatted.singularize.humanize%>?', :class => 'btn btn-danger' %>
          </td>
        </tr>
      <%%end%>
    </tbody>
  </table>
  <%%=will_paginate @<%=module_name_formatted%>%>
<%% end %>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
spud_core-1.0.6 lib/generators/spud/templates/views/admin/index.html.erb
spud_core-1.0.5 lib/generators/spud/templates/views/admin/index.html.erb
spud_core-1.0.4 lib/generators/spud/templates/views/admin/index.html.erb
spud_core-1.0.3 lib/generators/spud/templates/views/admin/index.html.erb
spud_core-1.0.2 lib/generators/spud/templates/views/admin/index.html.erb
spud_core-1.0.1 lib/generators/spud/templates/views/admin/index.html.erb
spud_core-1.0.0 lib/generators/spud/templates/views/admin/index.html.erb
spud_core-1.0.0.rc2 lib/generators/spud/templates/views/admin/index.html.erb
spud_core-1.0.0.rc1.1 lib/generators/spud/templates/views/admin/index.html.erb
spud_core-1.0.0.rc1 lib/generators/spud/templates/views/admin/index.html.erb
spud_core-0.9.22 lib/generators/spud/templates/views/admin/index.html.erb
spud_core-0.9.21 lib/generators/spud/templates/views/admin/index.html.erb
spud_core-0.9.20 lib/generators/spud/templates/views/admin/index.html.erb
spud_core-0.9.19 lib/generators/spud/templates/views/admin/index.html.erb
spud_core-0.9.18 lib/generators/spud/templates/views/admin/index.html.erb