File tree 1 file changed +4
-3
lines changed
frontend/src/routes/settings/admin/application-configuration/forms
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 43
43
const { inputs, ... form } = createForm <typeof formSchema >(formSchema , updatedAppConfig );
44
44
45
45
async function onSubmit() {
46
+ console .log (' submit' );
46
47
const data = form .validate ();
47
48
if (! data ) return false ;
48
49
await callback ({
78
79
</script >
79
80
80
81
<form onsubmit ={onSubmit }>
81
- <div class =" mt-5 grid grid-cols-2 gap-5" >
82
+ <div class =" mt-5 grid grid-cols-1 gap-5 md:grid-cols-2 " >
82
83
<FormInput label ="SMTP Host" bind:input ={$inputs .smtpHost } />
83
84
<FormInput label ="SMTP Port" type ="number" bind:input ={$inputs .smtpPort } />
84
85
<FormInput label ="SMTP User" bind:input ={$inputs .smtpUser } />
91
92
bind:checked ={$inputs .smtpSkipCertVerify .value }
92
93
/>
93
94
</div >
94
- <div class =" mt-8 flex justify-end gap-3" >
95
+ <div class =" mt-8 flex flex-wrap justify-end gap-3" >
95
96
{#if emailEnabled }
96
97
<Button variant ="secondary" onclick ={onDisable }>Disable</Button >
97
98
<Button isLoading ={isSendingTestEmail } variant ="secondary" onclick ={onTestEmail }
100
101
101
102
<Button onclick ={onSubmit } type =" submit" >Save</Button >
102
103
{:else }
103
- <Button onclick ={onEnable } type = " submit " >Enable</Button >
104
+ <Button onclick ={onEnable }>Enable</Button >
104
105
{/if }
105
106
</div >
106
107
</form >
You can’t perform that action at this time.
0 commit comments