Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import type { EServiceMode } from '@/api/api.generatedTypes'
import { useQuery } from '@tanstack/react-query'
import { EServiceCreateFromTemplateStepPurpose } from './components/EServiceCreateStepPurpose/EServiceCreateFromTemplateStepPurpose'
import { EServiceTemplateQueries } from '@/api/eserviceTemplate'
import { Typography } from '@mui/material'

const ProviderEServiceCreatePage: React.FC = () => {
const { t } = useTranslation('eservice')
Expand Down Expand Up @@ -145,6 +146,15 @@ const ProviderEServiceCreatePage: React.FC = () => {
}}
isLoading={!isReady}
>
<Typography
sx={{
fontSize: 16,
fontWeight: 700,
color: 'text.secondary',
}}
>
{t('create.requiredLabel')}
</Typography>
<Stepper steps={steps} activeIndex={activeStep} />
{isReady && (
<EServiceCreateContextProvider
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,6 @@ export const EServiceCreateStepGeneral: React.FC = () => {

return (
<FormProvider {...formMethods}>
{!isEserviceFromTemplate && (
<Alert severity="warning" sx={{ mb: 3 }}>
{t('create.step1.firstVersionOnlyEditableInfo')}
</Alert>
)}
<Box component="form" noValidate onSubmit={formMethods.handleSubmit(onSubmit)}>
<SectionContainer
title={t('create.step1.detailsTitle')}
Expand Down Expand Up @@ -190,6 +185,7 @@ export const EServiceCreateStepGeneral: React.FC = () => {
inputProps={{ maxLength: 60 }}
size="small"
sx={{ width: '49%', my: 0, mt: 1 }}
required
/>

<RHFTextField
Expand All @@ -202,8 +198,15 @@ export const EServiceCreateStepGeneral: React.FC = () => {
inputProps={{ maxLength: 250 }}
rules={!eserviceTemplate ? { required: true, minLength: 10 } : undefined}
sx={{ mb: 0, mt: 3 }}
required
/>

</SectionContainer>
<SectionContainer title={t('create.step1.detailsSection.title')}>
{!isEserviceFromTemplate && (
<Alert severity="warning" sx={{ mb: 0, mt: 3 }}>
{t('create.step1.firstVersionOnlyEditableInfo')}
</Alert>
)}
<RHFRadioGroup
name="technology"
row
Expand Down
6 changes: 5 additions & 1 deletion src/static/locales/en/eservice.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"backToEServiceBtn": "Back to the e-service",
"create": {
"emptyTitle": "Create e-service",
"requiredLabel": "*Required fields.",
"stepper": {
"step1Label": "General",
"step2Label": "Version",
Expand Down Expand Up @@ -85,7 +86,10 @@
"checkboxLabel": "I authorize delegates to associate their clients with the purposes they have created as delegates for use. Read the <1>documentation</1> for further information"
}
},
"firstVersionOnlyEditableInfo": "The contents of this step will no longer be editable after the first version of this e-service is published"
"detailsSection": {
"title": "E-service details"
},
"firstVersionOnlyEditableInfo": "This data will no longer be editable after the first version of the e-service is published."
},
"stepPurpose": {
"firstVersionOnlyEditableInfoAlert": "The contents of this step will no longer be editable after the publication of the first version of the e-service",
Expand Down
6 changes: 5 additions & 1 deletion src/static/locales/it/eservice.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"backToEServiceBtn": "Torna all'e-service",
"create": {
"emptyTitle": "Crea e-service",
"requiredLabel": "*Campi obbligatori.",
"stepper": {
"step1Label": "Generale",
"step2Label": "Versione",
Expand Down Expand Up @@ -85,7 +86,10 @@
"checkboxLabel": "Autorizzo che i delegati possano associare i propri client alle finalità che hanno creato in qualità di delegati alla fruizione. Consulta la <1>documentazione</1> per approfondire"
}
},
"firstVersionOnlyEditableInfo": "I contenuti di questo passaggio, ad eccezione della descrizione, non saranno più modificabili dopo la pubblicazione della prima versione dell’e-service."
"detailsSection": {
"title": "Dettagli dell'e-service"
},
"firstVersionOnlyEditableInfo": "Questi dati non saranno più modificabili dopo la pubblicazione della prima versione dell’e-service."
},
"stepPurpose": {
"firstVersionOnlyEditableInfoAlert": "I contenuti di questo passaggio non saranno più modificabili dopo la pubblicazione della prima versione dell’e-service.",
Expand Down
Loading