-
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.
Regulering: Splitta opp i uttrekk steg og orkesteringsteg.
Co-authored-by: Håkon Røed <[email protected]> Co-authored-by: Kristoffer Mjelva <[email protected]>
- Loading branch information
1 parent
a05045a
commit 192dcee
Showing
6 changed files
with
166 additions
and
56 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
|
||
import React, { useState } from 'react' | ||
import { Form, useSubmit } from '@remix-run/react' | ||
|
||
export default function ReguleringOrkestrering() { | ||
|
||
const [isClicked, setIsClicked] = useState(false); | ||
const submit = useSubmit(); | ||
const handleSubmit = (e:any)=> {submit(e.target.form); setIsClicked(true)} | ||
|
||
return <div><h2>Start Orkestrering</h2><Form method="POST"> | ||
<input type="hidden" name="formType" value="startReguleringOrkestrering" /> | ||
<p> | ||
Satsdato | ||
<input | ||
defaultValue="2025-05-01" | ||
aria-label="Satsdato" | ||
name="satsDato" | ||
type="text" | ||
placeholder="Satsdato" | ||
/> | ||
</p> | ||
<p> | ||
Reguleringsdato | ||
<input | ||
defaultValue="2025-05-01" | ||
aria-label="Reguleringsdato" | ||
name="reguleringsDato" | ||
type="text" | ||
placeholder="Reguleringsdato" | ||
/> | ||
</p> | ||
<p> | ||
Kjør til og med aktivitet | ||
<input | ||
defaultValue="A100" | ||
aria-label="SisteAktivitet" | ||
name="sisteAktivitet" | ||
type="text" | ||
placeholder="SisteAktivitet" | ||
/> | ||
</p> | ||
<p> | ||
Opprett maks antall familiebehandlinger | ||
<input | ||
defaultValue="10" | ||
aria-label="MaxFamiliebehandlinger" | ||
name="maxFamiliebehandlinger" | ||
type="text" | ||
placeholder="Maks antall familiebehandlinger (-1 for alle)" | ||
/> | ||
</p> | ||
<p> | ||
<button type="submit" disabled={isClicked} onClick={handleSubmit}> | ||
Start | ||
</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