teams form
This commit is contained in:
1 parent
2eb6850cb9
commit
fc2c3aa6a6
2 files changed
+23
-9
No files matched your search
@@ -712,6 +712,20 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"teams": {
|
"teams": {
|
||||||
|
"form": {
|
||||||
|
"basic": {
|
||||||
|
"title": "Basic information",
|
||||||
|
"description": "Set team name and description",
|
||||||
|
"optionName": "Team name",
|
||||||
|
"optionDescription": "Team description"
|
||||||
|
},
|
||||||
|
"role": {
|
||||||
|
"title": "Role",
|
||||||
|
"description": "Choose your role for this new team. You will be the first member",
|
||||||
|
"optionRole": "Role",
|
||||||
|
"optionIncludedPermissions": "Included permissions"
|
||||||
|
}
|
||||||
|
},
|
||||||
"details": {
|
"details": {
|
||||||
"infoHeader": {
|
"infoHeader": {
|
||||||
"description": "Description",
|
"description": "Description",
|
||||||
|
|||||||
@@ -56,8 +56,8 @@ export const TeamsForm = ({
|
|||||||
return (
|
return (
|
||||||
<BasePage component={"form"} onSubmit={handleSubmit(onSubmit)}>
|
<BasePage component={"form"} onSubmit={handleSubmit(onSubmit)}>
|
||||||
<ConfigBox
|
<ConfigBox
|
||||||
title={t("createTeamsPage.basicInfoTitle")}
|
title={t("teams.form.basic.title")}
|
||||||
subtitle={t("createTeamsPage.basicInfoSubtitle")}
|
subtitle={t("teams.form.basic.description")}
|
||||||
rightContent={
|
rightContent={
|
||||||
<Stack gap={theme.spacing(8)}>
|
<Stack gap={theme.spacing(8)}>
|
||||||
<Controller
|
<Controller
|
||||||
@@ -66,7 +66,7 @@ export const TeamsForm = ({
|
|||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<TextInput
|
<TextInput
|
||||||
{...field}
|
{...field}
|
||||||
fieldLabel={t("createTeamsPage.basicInfoName")}
|
fieldLabel={t("teams.form.basic.optionName")}
|
||||||
required
|
required
|
||||||
type="text"
|
type="text"
|
||||||
fullWidth
|
fullWidth
|
||||||
@@ -81,7 +81,7 @@ export const TeamsForm = ({
|
|||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<TextInput
|
<TextInput
|
||||||
{...field}
|
{...field}
|
||||||
fieldLabel={t("createTeamsPage.basicInfoDescription")}
|
fieldLabel={t("teams.form.basic.optionDescription")}
|
||||||
type="text"
|
type="text"
|
||||||
fullWidth
|
fullWidth
|
||||||
error={!!errors.description}
|
error={!!errors.description}
|
||||||
@@ -96,8 +96,8 @@ export const TeamsForm = ({
|
|||||||
/>
|
/>
|
||||||
{mode === "create" && (
|
{mode === "create" && (
|
||||||
<ConfigBox
|
<ConfigBox
|
||||||
title="Role"
|
title={t("teams.form.role.title")}
|
||||||
subtitle="Choose your role for this new team. You will be the first member"
|
subtitle={t("teams.form.role.description")}
|
||||||
rightContent={
|
rightContent={
|
||||||
<Controller
|
<Controller
|
||||||
name="roleId"
|
name="roleId"
|
||||||
@@ -111,7 +111,7 @@ export const TeamsForm = ({
|
|||||||
<Stack gap={theme.spacing(8)}>
|
<Stack gap={theme.spacing(8)}>
|
||||||
<Select
|
<Select
|
||||||
value={field.value}
|
value={field.value}
|
||||||
fieldLabel="Role"
|
fieldLabel={t("teams.form.role.optionRole")}
|
||||||
required
|
required
|
||||||
error={!!errors.roleId}
|
error={!!errors.roleId}
|
||||||
onChange={field.onChange}
|
onChange={field.onChange}
|
||||||
@@ -126,7 +126,7 @@ export const TeamsForm = ({
|
|||||||
</Select>
|
</Select>
|
||||||
<Stack>
|
<Stack>
|
||||||
<Typography variant={"h2"} mb={theme.spacing(4)}>
|
<Typography variant={"h2"} mb={theme.spacing(4)}>
|
||||||
Included permissions:
|
{t("teams.form.role.optionIncludedPermissions")}
|
||||||
</Typography>
|
</Typography>
|
||||||
{selectedRole?.permissions?.map((perm: string) => (
|
{selectedRole?.permissions?.map((perm: string) => (
|
||||||
<Typography key={perm}>- {perm}</Typography>
|
<Typography key={perm}>- {perm}</Typography>
|
||||||
@@ -146,7 +146,7 @@ export const TeamsForm = ({
|
|||||||
variant="contained"
|
variant="contained"
|
||||||
color="primary"
|
color="primary"
|
||||||
>
|
>
|
||||||
{t("settingsSave")}
|
{t("common.buttons.save")}
|
||||||
</Button>
|
</Button>
|
||||||
</Stack>
|
</Stack>
|
||||||
</BasePage>
|
</BasePage>
|
||||||
|
|||||||
Reference in new issue
Block a user