Sha256: 5f2cca52bfd27bf23effd9fa091b2f10a52d2f92d3be9cf0b1af7a390e477d7e

Contents?: true

Size: 761 Bytes

Versions: 1

Compression:

Stored size: 761 Bytes

Contents

<h1>Listing child_resources</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Description</th>
    <th>Parentresource</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @child_resources.each do |child_resource| %>
  <tr>
    <td><%= child_resource.name %></td>
    <td><%= child_resource.description %></td>
    <td><%= child_resource.ParentResource %></td>
    <td><%= link_to 'Show', child_resource %></td>
    <td><%= link_to 'Edit', edit_child_resource_path(child_resource) if check_privilege(Alberich::Privilege::MODIFY, child_resource) %></td>
    <td><%= link_to 'Destroy', child_resource, method: :delete, data: { confirm: 'Are you sure?' } if check_privilege(Alberich::Privilege::MODIFY, child_resource) %></td>
  </tr>
<% end %>
</table>

<br />

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alberich-0.2.0 test/dummy/app/views/child_resources/index.html.erb