a lot hehe
This commit is contained in:
@@ -1,23 +1,19 @@
|
||||
<div class="">
|
||||
<div class="text-xl">Discord</div>
|
||||
<div class="mt-2"></div>
|
||||
<div>
|
||||
<form wire:submit.prevent='submit' class="flex flex-col">
|
||||
<div class="flex flex-col gap-2 xl:flex-row w-96">
|
||||
<x-inputs.input type="checkbox" id="model.extra_attributes.discord_active" label="Active?" />
|
||||
<div class="flex items-center gap-2">
|
||||
<h3>Discord</h3>
|
||||
<x-forms.button class="w-16 mt-4" type="submit">
|
||||
Save
|
||||
</x-forms.button>
|
||||
</div>
|
||||
<div class="flex flex-col gap-2 xl:flex-row w-96">
|
||||
<x-inputs.input id="model.extra_attributes.discord_webhook" label="Discord Webhook" />
|
||||
<x-forms.checkbox instantSave id="model.smtp_attributes.discord_active" label="Notification Enabled" />
|
||||
</div>
|
||||
<div class="flex flex-col gap-2 xl:flex-row w-96">
|
||||
<x-forms.input required id="model.smtp_attributes.discord_webhook" label="Webhook" />
|
||||
</div>
|
||||
<div>
|
||||
<x-inputs.button class="w-16 mt-4" type="submit">
|
||||
Submit
|
||||
</x-inputs.button>
|
||||
<x-inputs.button
|
||||
class="mt-4 btn btn-xs no-animation normal-case text-white btn-primary"
|
||||
wire:click="sendTestNotification"
|
||||
>
|
||||
Send test message
|
||||
</x-inputs.button>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -1,45 +1,35 @@
|
||||
<div class="mt-10">
|
||||
<div class="text-xl">E-mail - SMTP</div>
|
||||
<div class="mt-2"></div>
|
||||
<form wire:submit.prevent='submit' class="flex flex-col">
|
||||
<div>
|
||||
<form wire:submit.prevent='submit' class="flex flex-col mt-2">
|
||||
<div class="flex items-center gap-2">
|
||||
<h3>E-mail (SMTP)</h3>
|
||||
<x-forms.button class="w-16 mt-4" type="submit">
|
||||
Save
|
||||
</x-forms.button>
|
||||
</div>
|
||||
<div class="flex flex-col w-96">
|
||||
<x-inputs.input type="checkbox" id="model.extra_attributes.smtp_active" label="Active?" />
|
||||
<x-forms.checkbox instantSave id="model.smtp_attributes.smtp_active" label="Notification Enabled" />
|
||||
</div>
|
||||
<div class="flex flex-col gap-2 xl:flex-row">
|
||||
<div class="flex flex-col w-96">
|
||||
<x-inputs.textarea
|
||||
id="model.extra_attributes.recipients"
|
||||
helper="E-mails, one per line"
|
||||
<x-forms.textarea required id="model.smtp_attributes.recipients" helper="E-mails, one per line"
|
||||
label="Recipients" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex flex-col gap-2 xl:flex-row">
|
||||
<div class="flex flex-col w-96">
|
||||
<x-inputs.input id="model.extra_attributes.smtp_host" label="Host" />
|
||||
<x-inputs.input id="model.extra_attributes.smtp_port" label="Port" />
|
||||
<x-inputs.input id="model.extra_attributes.smtp_encryption" label="Encryption" />
|
||||
<x-forms.input required id="model.smtp_attributes.smtp_host" label="Host" />
|
||||
<x-forms.input required id="model.smtp_attributes.smtp_port" label="Port" />
|
||||
<x-forms.input id="model.smtp_attributes.smtp_encryption" label="Encryption" />
|
||||
</div>
|
||||
<div class="flex flex-col w-96">
|
||||
<x-inputs.input id="model.extra_attributes.smtp_username" label="Username" />
|
||||
<x-inputs.input id="model.extra_attributes.smtp_password" label="Password" />
|
||||
<x-inputs.input id="model.extra_attributes.smtp_timeout" label="Timeout" />
|
||||
<x-forms.input id="model.smtp_attributes.smtp_username" label="Username" />
|
||||
<x-forms.input id="model.smtp_attributes.smtp_password" label="Password" />
|
||||
<x-forms.input id="model.smtp_attributes.smtp_timeout" label="Timeout" />
|
||||
</div>
|
||||
<div class="flex flex-col w-96">
|
||||
<x-inputs.input id="model.extra_attributes.from_address" label="From Address" />
|
||||
<x-inputs.input id="model.extra_attributes.from_name" label="From Name" />
|
||||
<x-inputs.input id="model.extra_attributes.test_address" label="Send test e-mails to" />
|
||||
<x-forms.input required id="model.smtp_attributes.from_address" label="From Address" />
|
||||
<x-forms.input required id="model.smtp_attributes.from_name" label="From Name" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="flex">
|
||||
<x-inputs.button class="w-16 mt-4" type="submit">
|
||||
Submit
|
||||
</x-inputs.button>
|
||||
<x-inputs.button
|
||||
class="mt-4 btn btn-xs no-animation normal-case text-white btn-primary"
|
||||
wire:click="sendTestNotification"
|
||||
>
|
||||
Send test message
|
||||
</x-inputs.button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
4
resources/views/livewire/notifications/test.blade.php
Normal file
4
resources/views/livewire/notifications/test.blade.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<x-forms.button isHighlighted class="mt-4 text-white normal-case btn btn-xs no-animation btn-primary"
|
||||
wire:click="sendTestNotification">
|
||||
Send Test Notifications
|
||||
</x-forms.button>
|
||||
Reference in New Issue
Block a user