Sha256: 4ed20400eb35c8fc91ebdb5cb48a01f857a305f197330841d2dfdfeadfa4e5be

Contents?: true

Size: 1.06 KB

Versions: 5

Compression:

Stored size: 1.06 KB

Contents

<li id="<%= dom_id record %>">
  <dl class="record columns">
    <dt class="column">
      <% unless record.leaf? || record.root? %>
        <span class="toggle">
        <% if children.blank? %>
          <%= link_to '+', resource.member_path(record, :action => :expand), :remote => true %>
        <% else %>
          <%= link_to '–', resource.member_path(record, :action => :collapse), :remote => true %>
        <% end %>
        </span>
      <% end %>
      <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>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
puffer-0.0.23 app/views/puffer/tree_base/_record.html.erb
puffer-0.0.22 app/views/puffer/tree_base/_record.html.erb
puffer-0.0.21 app/views/puffer/tree_base/_record.html.erb
puffer_pages-0.0.15 app/views/puffer/tree_base/_record.html.erb
puffer_pages-0.0.14 app/views/puffer_tree/_record.html.erb