<% content_for :head do %> <% end %> <% provide(:head_title, t("users.settings.teams.head_title")) %> <% provide(:container_class, "no-second-nav-container") %>
<%= render partial: "users/settings/sidebar" %>

<% if can_manage_team?(@team) %> <%= render partial: "shared/inline_editing", locals: { initial_value: @team.name, config: { field_to_udpate: 'name', params_group: 'team', path_to_update: update_team_path(@team, format: :json) } } %> <% else %> <%= @team.name %> <% end %>

<% if can_manage_team?(@team) %>
"><%= @team.description %>
<%= t('general.cancel') %> <%= t('general.save') %>
<% else %> <%= @team.description.blank? ? t('users.settings.teams.edit.header_no_description') : @team.description %> <% end %>
<% if can_invite_team_users?(@team) %> <%= render(partial: 'shared/invite_users_modal', locals: { modal_id: 'team-invite-users-modal', type: 'invite_to_team_with_role', team: @team } ) %> <% end %>
<%= t("users.settings.teams.edit.thead_user_name") %> <%= t("users.settings.teams.edit.thead_email") %> <%= t("users.settings.teams.edit.thead_role") %> <%= t("users.settings.teams.edit.thead_joined_on") %> <%= t("users.settings.teams.edit.thead_status") %> <%= t("users.settings.teams.edit.thead_actions") %>
<%= render partial: 'users/settings/teams/description_modal' %> <%= render partial: 'users/settings/teams/destroy_modal', locals: { team: @team } %> <%= render partial: 'users/settings/user_teams/destroy_user_team_modal' %> <%= stylesheet_link_tag 'datatables' %> <%= javascript_include_tag 'users/settings/teams/show' %>