Sha256: 625f98e8a53570dd2311b4ec39a7bb53283297238694380c2fe8a74767d9c340
Contents?: true
Size: 1.91 KB
Versions: 11
Compression:
Stored size: 1.91 KB
Contents
<% @title = resource.human %> <h1><%= @title %> Tree</h1> <% if records.present? %> <%= puffer_tree records, :class => 'puffer_tree' do |record, children| %> <li id="<%= dom_id(record) %>"> <dl class="record columns"> <dt class="column"> <span class="handle">⇅</span> <% tree_fields.each do |field| -%> <span><%= render_field field, record %></span> <% end -%> </dt> <dd class="column"> <%= link_to 'edit', resource.edit_path(record) if update_fields.present? %> <% controller._members.each do |member| %> <%= link_to member.label, resource.member_path(record, :action => member.action) if member.display? %> <% end %> <%= link_to 'destroy', resource.member_path(record), :confirm => "Are you sure?", :method => :delete if configuration.destroy %> </dd> </dl> <%= children %> </li> <% end %> <% else %> <p>Sorry, but there is no records in <%= resource.human %></p> <% end %> <% if false %> <table class="list_table"> <thead> <tr> <% index_fields.each do |field| -%> <th><%= render_head field %></th> <% end -%> <th class="actions">Actions</th> </tr> </thead> <tbody> <% records.each do |record| -%> <tr> <% index_fields.each do |field| -%> <td><%= render_field field, record %></td> <% end -%> <td class="actions"> <%= link_to 'edit', resource.edit_path(record) if update_fields.present? %> <% controller._members.each do |member| %> <%= link_to member.label, resource.member_path(record, :action => member.action) if member.display? %> <% end %> <%= link_to 'destroy', resource.member_path(record), :confirm => "Are you sure?", :method => :delete if configuration.destroy %> </td> </tr> <% end -%> </tbody> </table> <% end %>
Version data entries
11 entries across 11 versions & 1 rubygems