subscribe to events
This commit is contained in:
@@ -35,5 +35,5 @@
|
||||
<div class="flex-1"></div>
|
||||
<input type="checkbox" @if ($disabled !== null) disabled @endif name={{ $id }}
|
||||
@if (!$noDirty) wire:dirty.class="input-warning" @endif
|
||||
@if ($instantSave) wire:click='instantSave' wire:model.defer={{ $id }} @else wire:model.defer={{ $value ?? $id }} @endif />
|
||||
@if ($instantSave) wire:click='{{ $instantSave === 'instantSave' || $instantSave == '1' ? 'instantSave' : $instantSave }}' wire:model.defer={{ $id }} @else wire:model.defer={{ $value ?? $id }} @endif />
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
<h4 class="mt-4">Subscribe to events</h4>
|
||||
<div class="w-64 ">
|
||||
@if (isDev())
|
||||
<x-forms.checkbox instantSave="instantSaveEvents" id="model.extra_attributes.notifications_test"
|
||||
label="Test Notifications" />
|
||||
@endif
|
||||
<x-forms.checkbox instantSave="instantSaveEvents" id="model.extra_attributes.notifications_deployments"
|
||||
label="New Deployments" />
|
||||
</div>
|
||||
7
resources/views/emails/application-deployed.blade.php
Normal file
7
resources/views/emails/application-deployed.blade.php
Normal file
@@ -0,0 +1,7 @@
|
||||
Hello,<br><br>
|
||||
|
||||
A new version of your application "{{ $name }}" has been deployed to <a target="_blank"
|
||||
href="{{ $fqdn }}">{{ $fqdn }}</a><br><br>
|
||||
|
||||
Click the following link to view the deployment logs: <a target="_blank" href="{{ $url }}">View
|
||||
Deployment</a><br><br>
|
||||
@@ -1 +1,3 @@
|
||||
Hello from test email. If you are seeing this, it means that your SMTP settings are working.
|
||||
Hello,<br><br>
|
||||
|
||||
If you are seeing this, it means that your SMTP settings are correct.
|
||||
|
||||
@@ -12,11 +12,12 @@
|
||||
</x-forms.button>
|
||||
@endif
|
||||
</div>
|
||||
<div class="flex flex-col gap-2 xl:flex-row w-96">
|
||||
<div class="w-48">
|
||||
<x-forms.checkbox instantSave id="model.extra_attributes.discord_active" label="Notification Enabled" />
|
||||
</div>
|
||||
<x-forms.input type="string"
|
||||
helper="Generate a webhook in Discord.<br>Example: https://discord.com/api/webhooks/...." required
|
||||
id="model.extra_attributes.discord_webhook" label="Webhook" />
|
||||
</form>
|
||||
<x-notification-subscription />
|
||||
</div>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</x-forms.button>
|
||||
@endif
|
||||
</div>
|
||||
<div class="flex flex-col">
|
||||
<div class="w-48">
|
||||
<x-forms.checkbox instantSave id="model.extra_attributes.smtp_active" label="Notification Enabled" />
|
||||
</div>
|
||||
|
||||
@@ -53,4 +53,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<x-notification-subscription />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user