add :edit and :delete link to records
This commit is contained in:
parent
3bf16e0419
commit
07d757f3c5
|
@ -2,7 +2,16 @@
|
||||||
<tr id="<%= %>" class="with_action">
|
<tr id="<%= %>" class="with_action">
|
||||||
<td class="span1"><%= activity.member_profile.name %></td>
|
<td class="span1"><%= activity.member_profile.name %></td>
|
||||||
<td class="span1"><%= activity.year %></td>
|
<td class="span1"><%= activity.year %></td>
|
||||||
<td class="span5"><%= activity.activity_name %></td>
|
<td class="span5"><%= activity.activity_name %>
|
||||||
|
<div class="quick-edit">
|
||||||
|
<ul class="nav nav-pills hide">
|
||||||
|
<% if current_user.is_admin? %>
|
||||||
|
<li><%= link_to t('edit'), edit_admin_activity_path(activity) %></li>
|
||||||
|
<li><%= link_to t(:delete_), admin_activity_path(id: activity.id), method: :delete, remote: true, data: { confirm: 'Are you sure?' } %></li>
|
||||||
|
<% end %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
<td class="span1"><%= activity.activity_organizer %></td>
|
<td class="span1"><%= activity.activity_organizer %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue