26 lines
1.0 KiB
Plaintext
26 lines
1.0 KiB
Plaintext
<tr id="<%= dom_id(account_auth) %>">
|
|
<td style="width:3rem">
|
|
<%= image_or_text_avatar(account_auth.user) %>
|
|
</td>
|
|
<td><%= account_auth.user.email %></td>
|
|
<td><%= account_auth.user.full_name %></td>
|
|
<td>
|
|
<% if account_auth.user == Current.user %>
|
|
<%= account_auth.role.to_s.titleize %>
|
|
<% else %>
|
|
<%= bootstrap_form_with model: account_auth, local: true, layout: :inline do |form| %>
|
|
<%= form.select :role, options_for_role_select, { hide_label: true, append: form.button("Change Role", class: "btn btn-success btn-sm") }, { class: "form-control custom-select" } %>
|
|
<% end %>
|
|
<% end %>
|
|
</td>
|
|
<td>
|
|
<%= pluralize(account_auth.user.accessible_projects_for(account_auth.account).size, "Project") %>
|
|
</td>
|
|
<td class="text-right">
|
|
<% if policy(account_auth).destroy? && account_auth.user != Current.user %>
|
|
<%= link_to t(".actions.remove"), account_auth_path(account_auth), method: :delete, data: { confirm: t(".confirm") }, class: "btn btn-light btn-sm border" %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|
|
|