Restrict visibility of 'skipOrdine' field to admin users in FormNewServizioAcquisto
This commit is contained in:
parent
099773b161
commit
b0bbeba2bb
1 changed files with 27 additions and 25 deletions
|
|
@ -1460,6 +1460,7 @@ export const FormNewServizioAcquisto = ({
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
<div className="flex w-full items-center justify-center gap-2 pb-8 sm:justify-end">
|
<div className="flex w-full items-center justify-center gap-2 pb-8 sm:justify-end">
|
||||||
|
{isAdmin && (
|
||||||
<FormField
|
<FormField
|
||||||
control={form.control}
|
control={form.control}
|
||||||
name="skipOrdine"
|
name="skipOrdine"
|
||||||
|
|
@ -1485,6 +1486,7 @@ export const FormNewServizioAcquisto = ({
|
||||||
</FormItem>
|
</FormItem>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
<Button type="submit" className="w-full sm:w-auto">
|
<Button type="submit" className="w-full sm:w-auto">
|
||||||
Salva e Procedi
|
Salva e Procedi
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue