format files lol
This commit is contained in:
@@ -7,34 +7,33 @@
|
||||
</x-forms.button>
|
||||
@if ($model->discord_enabled)
|
||||
<x-forms.button class="text-white normal-case btn btn-xs no-animation btn-primary"
|
||||
wire:click="sendTestNotification">
|
||||
wire:click="sendTestNotification">
|
||||
Send Test Notifications
|
||||
</x-forms.button>
|
||||
@endif
|
||||
</div>
|
||||
<div class="w-48">
|
||||
<x-forms.checkbox instantSave id="model.discord_enabled" label="Notification Enabled"/>
|
||||
<x-forms.checkbox instantSave id="model.discord_enabled" label="Notification Enabled" />
|
||||
</div>
|
||||
<x-forms.input type="password"
|
||||
helper="Generate a webhook in Discord.<br>Example: https://discord.com/api/webhooks/...."
|
||||
required
|
||||
id="model.discord_webhook_url" label="Webhook"/>
|
||||
helper="Generate a webhook in Discord.<br>Example: https://discord.com/api/webhooks/...." required
|
||||
id="model.discord_webhook_url" label="Webhook" />
|
||||
</form>
|
||||
@if (data_get($model, 'discord_enabled'))
|
||||
<h3 class="mt-4">Subscribe to events</h3>
|
||||
<div class="w-64">
|
||||
@if (is_dev())
|
||||
<x-forms.checkbox instantSave="saveModel" id="model.discord_notifications_test" label="Test"/>
|
||||
<x-forms.checkbox instantSave="saveModel" id="model.discord_notifications_test" label="Test" />
|
||||
@endif
|
||||
<h4 class="mt-4">General</h4>
|
||||
<x-forms.checkbox instantSave="saveModel" id="model.discord_notifications_status_changes"
|
||||
label="Container Status Changes"/>
|
||||
label="Container Status Changes" />
|
||||
<h4 class="mt-4">Applications</h4>
|
||||
<x-forms.checkbox instantSave="saveModel" id="model.discord_notifications_deployments"
|
||||
label="Deployments"/>
|
||||
label="Deployments" />
|
||||
<h4 class="mt-4">Databases</h4>
|
||||
<x-forms.checkbox instantSave="saveModel" id="model.discord_notifications_database_backups"
|
||||
label="Backup Statuses"/>
|
||||
label="Backup Statuses" />
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<div>
|
||||
<dialog id="sendTestEmail" class="modal">
|
||||
<form method="dialog" class="flex flex-col gap-2 rounded modal-box" wire:submit.prevent='submit'>
|
||||
<x-forms.input placeholder="test@example.com" id="emails" label="Recepients" required/>
|
||||
<x-forms.input placeholder="test@example.com" id="emails" label="Recepients" required />
|
||||
<x-forms.button onclick="sendTestEmail.close()" wire:click="sendTestNotification">
|
||||
Send Email
|
||||
</x-forms.button>
|
||||
@@ -23,37 +23,36 @@
|
||||
@endif
|
||||
@if ($model->smtp_enabled)
|
||||
<x-forms.button onclick="sendTestEmail.showModal()"
|
||||
class="text-white normal-case btn btn-xs no-animation btn-primary">
|
||||
class="text-white normal-case btn btn-xs no-animation btn-primary">
|
||||
Send Test Email
|
||||
</x-forms.button>
|
||||
@endif
|
||||
</div>
|
||||
<div class="w-48">
|
||||
<x-forms.checkbox instantSave id="model.smtp_enabled" label="Notification Enabled"/>
|
||||
<x-forms.checkbox instantSave id="model.smtp_enabled" label="Notification Enabled" />
|
||||
</div>
|
||||
<div class="flex flex-col gap-4">
|
||||
<div class="flex flex-col gap-2 xl:flex-row">
|
||||
<x-forms.input id="model.smtp_recipients"
|
||||
placeholder="If empty, all users will be notified in the team."
|
||||
helper="Email list to send the all notifications to, separated by comma."
|
||||
label="Recipients"/>
|
||||
placeholder="If empty, all users will be notified in the team."
|
||||
helper="Email list to send the all notifications to, separated by comma." label="Recipients" />
|
||||
</div>
|
||||
<div class="flex flex-col gap-2 xl:flex-row">
|
||||
<x-forms.input required id="model.smtp_host" helper="SMTP Hostname" placeholder="smtp.mailgun.org"
|
||||
label="Host"/>
|
||||
<x-forms.input required id="model.smtp_port" helper="SMTP Port" placeholder="587" label="Port"/>
|
||||
label="Host" />
|
||||
<x-forms.input required id="model.smtp_port" helper="SMTP Port" placeholder="587" label="Port" />
|
||||
<x-forms.input helper="If SMTP through SSL, set it to 'tls'." placeholder="tls"
|
||||
id="model.smtp_encryption" label="Encryption"/>
|
||||
id="model.smtp_encryption" label="Encryption" />
|
||||
</div>
|
||||
<div class="flex flex-col gap-2 xl:flex-row">
|
||||
<x-forms.input id="model.smtp_username" label="SMTP Username"/>
|
||||
<x-forms.input type="password" id="model.smtp_password" label="SMTP Password"/>
|
||||
<x-forms.input id="model.smtp_timeout" helper="Timeout value for sending emails." label="Timeout"/>
|
||||
<x-forms.input id="model.smtp_username" label="SMTP Username" />
|
||||
<x-forms.input type="password" id="model.smtp_password" label="SMTP Password" />
|
||||
<x-forms.input id="model.smtp_timeout" helper="Timeout value for sending emails." label="Timeout" />
|
||||
</div>
|
||||
<div class="flex flex-col gap-2 xl:flex-row">
|
||||
<x-forms.input required id="model.smtp_from_name" helper="Name used in emails." label="From Name"/>
|
||||
<x-forms.input required id="model.smtp_from_name" helper="Name used in emails." label="From Name" />
|
||||
<x-forms.input required id="model.smtp_from_address" helper="Email address used in emails."
|
||||
label="From Address"/>
|
||||
label="From Address" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
@@ -61,17 +60,16 @@
|
||||
<h4 class="mt-4">Subscribe to events</h4>
|
||||
<div class="w-64">
|
||||
@if (is_dev())
|
||||
<x-forms.checkbox instantSave="saveModel" id="model.smtp_notifications_test" label="Test"/>
|
||||
<x-forms.checkbox instantSave="saveModel" id="model.smtp_notifications_test" label="Test" />
|
||||
@endif
|
||||
<h4 class="mt-4">General</h4>
|
||||
<x-forms.checkbox instantSave="saveModel" id="model.smtp_notifications_status_changes"
|
||||
label="Container Status Changes"/>
|
||||
label="Container Status Changes" />
|
||||
<h4 class="mt-4">Applications</h4>
|
||||
<x-forms.checkbox instantSave="saveModel" id="model.smtp_notifications_deployments"
|
||||
label="Deployments"/>
|
||||
<x-forms.checkbox instantSave="saveModel" id="model.smtp_notifications_deployments" label="Deployments" />
|
||||
<h4 class="mt-4">Databases</h4>
|
||||
<x-forms.checkbox instantSave="saveModel" id="model.smtp_notifications_database_backups"
|
||||
label="Backup Statuses"/>
|
||||
label="Backup Statuses" />
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user