Skip to content
This repository has been archived by the owner on Dec 2, 2023. It is now read-only.

Commit

Permalink
changed default form now has an end page
Browse files Browse the repository at this point in the history
  • Loading branch information
wodka committed Mar 27, 2022
1 parent ba302dc commit 84d96cd
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ Template for next version

### Changed

- default form now has an end page

### Fixed

- sorting of fields in excel export
Expand Down
31 changes: 31 additions & 0 deletions pages/admin/forms/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,37 @@ const Create: NextPage = () => {
<Input type={'hidden'} />
</Form.Item>

<Form.Item
noStyle
name={[
'form', 'endPage', 'show',
]}
initialValue={true}
>
<Input type={'hidden'} />
</Form.Item>

<Form.Item
noStyle
name={[
'form', 'endPage', 'title',
]}
initialValue={t('form:submitted')}
>
<Input type={'hidden'} />
</Form.Item>

<Form.Item
noStyle
label={t('form:endPage.continueButtonText')}
name={[
'form', 'endPage', 'buttonText',
]}
initialValue={t('form:restart')}
>
<Input type={'hidden'} />
</Form.Item>

<Tabs>
<BaseDataTab key={'base_data'} tab={t('form:baseDataTab')} />
</Tabs>
Expand Down

0 comments on commit 84d96cd

Please sign in to comment.