This commit is contained in:
Andras Bacsai 2023-09-08 16:59:49 +02:00
parent 49f86621f4
commit 2e855e030f
2 changed files with 42 additions and 22 deletions

View File

@ -20,20 +20,31 @@
id="team.discord_webhook_url" label="Webhook" /> id="team.discord_webhook_url" label="Webhook" />
</form> </form>
@if (data_get($team, 'discord_enabled')) @if (data_get($team, 'discord_enabled'))
<h3 class="mt-4">Subscribe to events</h3> <h2 class="mt-4">Subscribe to events</h2>
<div class="w-64"> <div class="w-64">
@if (isDev()) @if (isDev())
<x-forms.checkbox instantSave="saveModel" id="team.discord_notifications_test" label="Test" /> <h3 class="mt-4">Test</h3>
<div class="flex items-end gap-10">
<x-forms.checkbox instantSave="saveModel" id="team.discord_notifications_test" label="Enabled" />
</div>
@endif @endif
<h4 class="mt-4">General</h4> <h3 class="mt-4">Container Status Changes</h3>
<div class="flex items-end gap-10">
<x-forms.checkbox instantSave="saveModel" id="team.discord_notifications_status_changes" <x-forms.checkbox instantSave="saveModel" id="team.discord_notifications_status_changes"
label="Container Status Changes" /> label="Enabled" />
<h4 class="mt-4">Applications</h4> </div>
<h3 class="mt-4">Application Deployments</h3>
<div class="flex items-end gap-10">
<x-forms.checkbox instantSave="saveModel" id="team.discord_notifications_deployments" <x-forms.checkbox instantSave="saveModel" id="team.discord_notifications_deployments"
label="Deployments" /> label="Enabled" />
<h4 class="mt-4">Databases</h4> </div>
<h3 class="mt-4">Backup Status</h3>
<div class="flex items-end gap-10">
<x-forms.checkbox instantSave="saveModel" id="team.discord_notifications_database_backups" <x-forms.checkbox instantSave="saveModel" id="team.discord_notifications_database_backups"
label="Backup Statuses" /> label="Enabled" />
</div>
</div> </div>
@endif @endif
</div> </div>

View File

@ -42,7 +42,6 @@ class="text-white normal-case btn btn-xs no-animation btn-primary">
</div> </div>
@endif @endif
@if (!$team->use_instance_email_settings) @if (!$team->use_instance_email_settings)
<h3 class="pb-4">Custom Email Service</h3>
<form class="flex flex-col items-end gap-2 pb-4 xl:flex-row" wire:submit.prevent='submitFromFields'> <form class="flex flex-col items-end gap-2 pb-4 xl:flex-row" wire:submit.prevent='submitFromFields'>
<x-forms.input required id="team.smtp_from_name" helper="Name used in emails." label="From Name" /> <x-forms.input required id="team.smtp_from_name" helper="Name used in emails." label="From Name" />
<x-forms.input required id="team.smtp_from_address" helper="Email address used in emails." <x-forms.input required id="team.smtp_from_address" helper="Email address used in emails."
@ -110,19 +109,29 @@ class="text-white normal-case btn btn-xs no-animation btn-primary">
</div> </div>
@endif @endif
@if (isEmailEnabled($team) || data_get($team, 'use_instance_email_settings')) @if (isEmailEnabled($team) || data_get($team, 'use_instance_email_settings'))
<h3 class="mt-4">Subscribe to events</h3> <h2 class="mt-4">Subscribe to events</h2>
<div class="w-64"> <div class="w-64">
@if (isDev()) @if (isDev())
<x-forms.checkbox instantSave="saveModel" id="team.smtp_notifications_test" label="Test" /> <h3 class="mt-4">Test</h3>
<div class="flex items-end gap-10">
<x-forms.checkbox instantSave="saveModel" id="team.smtp_notifications_test" label="Enabled" />
</div>
@endif @endif
<h4 class="mt-4">General</h4> <h3 class="mt-4">Container Status Changes</h3>
<div class="flex items-end gap-10">
<x-forms.checkbox instantSave="saveModel" id="team.smtp_notifications_status_changes" <x-forms.checkbox instantSave="saveModel" id="team.smtp_notifications_status_changes"
label="Container Status Changes" /> label="Enabled" />
<h4 class="mt-4">Applications</h4> </div>
<x-forms.checkbox instantSave="saveModel" id="team.smtp_notifications_deployments" label="Deployments" /> <h3 class="mt-4">Application Deployments</h3>
<h4 class="mt-4">Databases</h4> <div class="flex items-end gap-10">
<x-forms.checkbox instantSave="saveModel" id="team.smtp_notifications_deployments"
label="Enabled" />
</div>
<h3 class="mt-4">Backup Status</h3>
<div class="flex items-end gap-10">
<x-forms.checkbox instantSave="saveModel" id="team.smtp_notifications_database_backups" <x-forms.checkbox instantSave="saveModel" id="team.smtp_notifications_database_backups"
label="Backup Statuses" /> label="Enabled" />
</div>
</div> </div>
@endif @endif
</div> </div>