Form fixes
This commit is contained in:
parent
269dea70a1
commit
a05860515e
3 changed files with 51 additions and 45 deletions
|
@ -58,7 +58,9 @@ export default function WebhookDialogForm(props: {
|
||||||
props.handleClose();
|
props.handleClose();
|
||||||
}}
|
}}
|
||||||
className="space-y-4">
|
className="space-y-4">
|
||||||
|
<div>
|
||||||
<input type="hidden" {...form.register("id")} />
|
<input type="hidden" {...form.register("id")} />
|
||||||
|
</div>
|
||||||
<fieldset className="space-y-2">
|
<fieldset className="space-y-2">
|
||||||
<InputGroupBox className="border-0 bg-gray-50">
|
<InputGroupBox className="border-0 bg-gray-50">
|
||||||
<Controller
|
<Controller
|
||||||
|
@ -76,6 +78,7 @@ export default function WebhookDialogForm(props: {
|
||||||
/>
|
/>
|
||||||
</InputGroupBox>
|
</InputGroupBox>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
<div>
|
||||||
<TextField
|
<TextField
|
||||||
label={t("subscriber_url")}
|
label={t("subscriber_url")}
|
||||||
{...form.register("subscriberUrl")}
|
{...form.register("subscriberUrl")}
|
||||||
|
@ -89,7 +92,7 @@ export default function WebhookDialogForm(props: {
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
<fieldset className="space-y-2">
|
<fieldset className="space-y-2">
|
||||||
<FieldsetLegend>{t("event_triggers")}</FieldsetLegend>
|
<FieldsetLegend>{t("event_triggers")}</FieldsetLegend>
|
||||||
<InputGroupBox className="border-0 bg-gray-50">
|
<InputGroupBox className="border-0 bg-gray-50">
|
||||||
|
|
|
@ -102,17 +102,18 @@ export default function ApiKeyDialogForm(props: {
|
||||||
setSuccessfulNewApiKeyModal(true);
|
setSuccessfulNewApiKeyModal(true);
|
||||||
}}
|
}}
|
||||||
className="space-y-4">
|
className="space-y-4">
|
||||||
<div className=" mb-10 mt-1">
|
<div className="mb-10 mt-1">
|
||||||
<h2 className="font-semi-bold font-cal text-xl tracking-wide text-gray-900">{props.title}</h2>
|
<h2 className="font-semi-bold font-cal text-xl tracking-wide text-gray-900">{props.title}</h2>
|
||||||
<p className="mt-1 mb-5 text-sm text-gray-500">{t("api_key_modal_subtitle")}</p>
|
<p className="mt-1 mb-5 text-sm text-gray-500">{t("api_key_modal_subtitle")}</p>
|
||||||
</div>
|
</div>
|
||||||
|
<div>
|
||||||
<TextField
|
<TextField
|
||||||
label={t("personal_note")}
|
label={t("personal_note")}
|
||||||
placeholder={t("personal_note_placeholder")}
|
placeholder={t("personal_note_placeholder")}
|
||||||
{...form.register("note")}
|
{...form.register("note")}
|
||||||
type="text"
|
type="text"
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<div className="flex justify-between py-2">
|
<div className="flex justify-between py-2">
|
||||||
<span className="block text-sm font-medium text-gray-700">{t("expire_date")}</span>
|
<span className="block text-sm font-medium text-gray-700">{t("expire_date")}</span>
|
||||||
|
|
|
@ -1888,6 +1888,7 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
|
||||||
addLocation(newLocation, details);
|
addLocation(newLocation, details);
|
||||||
setShowLocationModal(false);
|
setShowLocationModal(false);
|
||||||
}}>
|
}}>
|
||||||
|
<div>
|
||||||
<Controller
|
<Controller
|
||||||
name="locationType"
|
name="locationType"
|
||||||
control={locationFormMethods.control}
|
control={locationFormMethods.control}
|
||||||
|
@ -1910,6 +1911,7 @@ const EventTypePage = (props: inferSSRProps<typeof getServerSideProps>) => {
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
<LocationOptions />
|
<LocationOptions />
|
||||||
<div className="mt-4 flex justify-end space-x-2">
|
<div className="mt-4 flex justify-end space-x-2">
|
||||||
<Button onClick={() => setShowLocationModal(false)} type="button" color="secondary">
|
<Button onClick={() => setShowLocationModal(false)} type="button" color="secondary">
|
||||||
|
|
Loading…
Reference in a new issue