<.settings_tiles> <.tile docs="users-roles"> <:title> Team name <:subtitle> Change the name of your team. <.form :let={f} action={Routes.settings_path(@conn, :update_team_name)} for={@team_name_changeset} method="post" > <.input readonly={@current_team_role not in [:owner, :admin]} type="text" field={f[:name]} label="Name" width="w-1/2" mt?={false} /> <.button type="submit" disabled={@current_team_role not in [:owner, :admin]}> Change name <.tile docs="users-roles#managing-team-member-roles" current_user={@current_user} current_team={@current_team} feature_mod={Plausible.Billing.Feature.Teams} > <:title> Team members <:subtitle> Add or remove team members and adjust their roles. {live_render(@conn, PlausibleWeb.Live.TeamManagement, id: "team-setup", session: %{"mode" => "team-management"} )} <.tile :if={@current_team_role == :owner} docs="2fa#require-all-team-members-to-enable-2fa"> <:title> Force Two-Factor Authentication (2FA) <:subtitle> Increase account security by requiring all team members to enable 2FA.
<.form action={Routes.settings_path(@conn, :disable_team_force_2fa)} for={@conn.params} method="post" > <.button theme="danger" x-on:click="disableTeamForce2FAOpen = true; $refs.disableTeamForce2FAPassword.value = ''" mt?={false} > Stop Forcing 2FA <:icon> <:buttons> <.button type="submit" class="w-full sm:w-auto"> Stop enforcing 2FA
This will remove the 2FA requirement for all team members.
Enter your password to stop enforcing 2FA.
<.input type="password" id="disable_team_force_2fa_password" name="password" value="" placeholder="Enter password" x-ref="disableTeamForce2FAPassword" />
<.form action={Routes.settings_path(@conn, :enable_team_force_2fa)} for={@conn.params} method="post" > <.button data-confirm="All team members, including you, will need to set up 2FA. Are you sure you want to enforce it?" type="submit" mt?={false} > Enforce 2FA
<.tile docs="users-roles#leaving-team"> <:title>Leave team <:subtitle>Remove yourself from this team as a member. <.button_link data-confirm="Are you sure you want to leave this team?" href={Routes.settings_path(@conn, :leave_team)} method="post" theme="danger" mt?={false} > Leave team