-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #38 from navikt/regulering-fortsettavhengige
Fortsett avhengige reguleringsbehandlinger
- Loading branch information
Showing
4 changed files
with
114 additions
and
3 deletions.
There are no files selected for viewing
63 changes: 63 additions & 0 deletions
63
app/components/regulering/regulering-fortsett-avhengige.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
import React, { useState } from 'react' | ||
import { Form, useSubmit } from '@remix-run/react' | ||
|
||
export default function FortsettAvhengigeReguleringBehandlinger() { | ||
|
||
const [isClicked, setIsClicked] = useState(false); | ||
const submit = useSubmit(); | ||
const handleSubmit = (e: any) => { | ||
submit(e.target.form) | ||
setIsClicked(true) | ||
} | ||
|
||
return ( | ||
<div> | ||
<h1>Fortsett Avhengige behandlinger</h1> | ||
<Form method="POST"> | ||
<p> | ||
BehandlingId for Uttreksbehandling | ||
<input | ||
defaultValue="" | ||
aria-label="BehandlingIdRegulering" | ||
name="behandlingIdRegulering" | ||
type="text" | ||
placeholder="BehandlingId for Uttreksbehandling" | ||
/> | ||
</p> | ||
<p> | ||
Antall avhengige behandlinger | ||
<select | ||
aria-label="AntallFamiliebehandlinger" | ||
name="antallFamiliebehandlinger" | ||
defaultValue="0" | ||
> | ||
<option value="1">1</option> | ||
<option value="10">10</option> | ||
<option value="100">100</option> | ||
<option value="500">500</option> | ||
<option value="500">500</option> | ||
</select> | ||
</p> | ||
<p> | ||
Fortsett til prosesserings-aktivitet Axxx | ||
<input | ||
defaultValue="A202" | ||
aria-label="FortsettTilAktivitet" | ||
name="fortsettTilAktivitet" | ||
type="text" | ||
placeholder="Fortsett Til Aktivitet" | ||
/> | ||
</p> | ||
<p> | ||
<button | ||
type="submit" | ||
disabled={isClicked} | ||
onClick={handleSubmit} | ||
> | ||
Fortsett | ||
</button> | ||
</p> | ||
</Form> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters