mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-20 12:04:31 +08:00
24 lines
1.2 KiB
Text
24 lines
1.2 KiB
Text
<div class="content-header">
|
|
<div class="title-row">
|
|
<h1 id="team-name" class="settings-team-name" data-current-team="<%= current_team == @team %>">
|
|
<% 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 %>
|
|
<span class="view-mode"><%= @team.name %></span>
|
|
<% end %>
|
|
</h1>
|
|
</div>
|
|
</div>
|
|
<div class="tab-group mb-4">
|
|
<%= link_to t("users.settings.teams.navigation.details"), team_path(@team), class: "tab-item #{ 'active' if @active_tab == :details }"%>
|
|
<%= link_to t("users.settings.teams.navigation.members"), members_users_settings_team_path(@team), class: "tab-item #{ 'active' if @active_tab == :members }"%>
|
|
<%= link_to t("users.settings.teams.navigation.groups"), users_settings_team_user_groups_path(@team), class: "tab-item #{ 'active' if @active_tab == :user_groups }"%>
|
|
</div>
|