You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.3 KiB
29 lines
1.3 KiB
<div class="card manager-group-item manager-group-item-<%= manager_group.id %>">
|
|
<div class="card-header">
|
|
<div class="card-header-left">
|
|
<span class="manager-group-name"><%= manager_group.name %></span>
|
|
|
|
<% if manager_group.admin? %>
|
|
<span class="text-secondary font-12">(访问权限范围:客户列表中的全部客户)</span>
|
|
<% else %>
|
|
<span class="text-secondary font-12">(访问权限范围:客户列表中“权限控制”勾选了本组的客户)</span>
|
|
<% end %>
|
|
</div>
|
|
|
|
<% unless manager_group.admin? %>
|
|
<%= link_to 'javascript:void(0)', class: 'action',
|
|
data: { toggle: 'modal', target: '.partner-save-manager-group-modal', id: manager_group.id, name: manager_group.name } do %>
|
|
<i class="fa fa-lg fa-fw fa-pencil"></i>
|
|
<% end %>
|
|
<%= delete_link '删除', remove_manager_group_partner_path(current_partner, manager_group_id: manager_group.id, element: ".manager-group-item-#{manager_group.id}"), class: 'action text-danger' do %>
|
|
<i class="fa fa-lg fa-fw fa-trash-o"></i>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
<div class="partner-manager-body">
|
|
<%= render partial: 'partners/shared/partner_managers', locals: { manager_group: manager_group } %>
|
|
</div>
|
|
</div>
|
|
</div> |