orbit4-5/app/views/admin/member_infos/_member_info.html.erb

13 lines
607 B
Plaintext

<tr>
<td><%= attribute.key %></td>
<td>
<%= attribute.title %>
<div class="quick-edit">
<ul class="nav nav-pills">
<%= content_tag(:li, link_to(t(:add_attribute_field),edit_admin_member_info_path(attribute))) if current_user.is_admin? %>
<%= content_tag(:li, link_to(t(:delete_),admin_member_info_path(attribute), data: { confirm: t('sure?') }, method: :delete, class: "text-error", remote: true)) if current_user.is_admin? %>
</ul>
</div>
</td>
<td><%= attribute.key %></td>
</tr>