-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from lara-zeus/imporve-resourses
Imporve resourses
- Loading branch information
Showing
17 changed files
with
222 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,68 @@ | ||
<x-filament::modal width="4xl"> | ||
<x-slot name="trigger"> | ||
<button x-on:click="isOpen = true" type="button" data-tippy-content="Other Form Options"> | ||
<button x-on:click="isOpen = true" type="button" data-tippy-content="{{ __('Other Form Options') }}"> | ||
<x-clarity-cog-line class="h-6 w-6 text-green-600" /> | ||
</button> | ||
</x-slot> | ||
<x-slot name="header"> | ||
<x-filament::modal.heading> | ||
<p class="text-green-700"> | ||
<x-clarity-cog-line class="h-6 w-6 inline" /> | ||
Form Options | ||
{{ __('Form Options') }} | ||
</p> | ||
</x-filament::modal.heading> | ||
</x-slot> | ||
|
||
<div class="space-y-10"> | ||
<x-zeus::input.group for="category_id" inline label="Category"> | ||
<x-zeus::input.group for="category_id" inline label="{{ __('Category') }}"> | ||
<cite class="text-gray-500 text-xs mb-4 block"> | ||
optional, | ||
organize your forms into categories | ||
{{ __('optional, organize your forms into categories') }} | ||
</cite> | ||
<x-zeus::input.select id="category_id" wire:model="data.category_id"> | ||
<option value="">Select Category...</option> | ||
<option value="">{{ __('Select Category...') }}</option> | ||
@foreach(\LaraZeus\Bolt\Models\Category::get() as $category) | ||
<option value="{{ $category->id }}">{{ $category->name }}</option> | ||
@endforeach | ||
</x-zeus::input.select> | ||
</x-zeus::input.group> | ||
|
||
<div> | ||
<h4 class="block text-base font-medium leading-5 text-green-700">Form Dates</h4> | ||
<h4 class="block text-base font-medium leading-5 text-green-700">{{ __('Form Dates') }}</h4> | ||
<cite class="text-gray-500 text-xs mb-4 block"> | ||
optional, | ||
specify when the form will be active and receiving new entries | ||
{{ __('optional, specify when the form will be active and receiving new entries') }} | ||
</cite> | ||
<div class="flex justify-between gap-2"> | ||
<div class="w-full"> | ||
<x-zeus::input.group inline for="start_date" label="Start Date"> | ||
<x-zeus::input.date wire:model="data.start_date" placeholder="Start Date" id="start_date" /> | ||
<x-zeus::input.group inline for="start_date" label="{{ __('Start Date') }}"> | ||
<x-zeus::input.date wire:model="data.start_date" placeholder="{{ __('Start Date') }}" id="start_date" /> | ||
</x-zeus::input.group> | ||
</div> | ||
|
||
<div class="w-full"> | ||
<x-zeus::input.group inline for="end_date" label="End Date"> | ||
<x-zeus::input.date wire:model="data.end_date" placeholder="End Date"/> | ||
<x-zeus::input.group inline for="end_date" label="{{ __('End Date') }}"> | ||
<x-zeus::input.date wire:model="data.end_date" placeholder="{{ __('End Date') }}"/> | ||
</x-zeus::input.group> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<x-zeus::input.group inline for="data.options.emailsNotification" label="Emails Notifications" help-text="separate emails with a comma"> | ||
<x-zeus::input.group inline for="data.options.emailsNotification" label="{{ __('Emails Notifications') }}" help-text="{{ __('separate emails with a comma') }}"> | ||
<x-slot name="cite"> | ||
optional, | ||
enter the emails you want to receive notification when ever you got a new entry | ||
{{ __('optional, enter the emails you want to receive notification when ever you got a new entry') }} | ||
</x-slot> | ||
<x-zeus::input.text wire:model="data.options.emailsNotification" placeholder="emailOne , emailTwo"/> | ||
<x-zeus::input.text wire:model="data.options.emailsNotification" placeholder="{{ __('emailOne , emailTwo') }}"/> | ||
</x-zeus::input.group> | ||
|
||
<x-zeus::input.group inline for="data.options.webHook" label="Send to a webhook" help-text="enter webHook URL"> | ||
<x-zeus::input.group inline for="data.options.webHook" label="Send to a webhook" help-text="{{ __('enter webHook URL') }}"> | ||
<x-slot name="cite"> | ||
Send the form data to a webHook, <a>read more</a> | ||
{{ __('Send the form data to a webHook.') }} | ||
</x-slot> | ||
<x-zeus::input.text wire:model="data.options.webHook" placeholder=""/> | ||
<x-zeus::input.text wire:model="data.options.webHook" placeholder="https://site/etc"/> | ||
</x-zeus::input.group> | ||
</div> | ||
<x-slot name="footer"> | ||
<x-filament::modal.actions> | ||
<x-filament::button x-on:click="isOpen = false">Save</x-filament::button> | ||
<x-filament::button x-on:click="isOpen = false">{{ __('Save') }}</x-filament::button> | ||
</x-filament::modal.actions> | ||
</x-slot> | ||
</x-filament::modal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
<x-filament::modal width="4xl"> | ||
<x-slot name="trigger"> | ||
<button x-on:click="isOpen = true" type="button" data-tippy-content="form activation and access options"> | ||
<button x-on:click="isOpen = true" type="button" data-tippy-content="{{ __('form activation and access options') }}"> | ||
<x-clarity-slider-line class="h-6 w-6 text-green-600" /> | ||
</button> | ||
</x-slot> | ||
<x-slot name="header"> | ||
<x-filament::modal.heading> | ||
<p class="text-green-700"> | ||
<x-clarity-slider-line class="h-6 w-6 inline" /> | ||
Form Settings | ||
{{ __('Form Settings') }} | ||
</p> | ||
</x-filament::modal.heading> | ||
</x-slot> | ||
|
||
<div class="space-y-10"> | ||
<x-zeus::input.group inline for="data.is_active" label="Activate the form"> | ||
<x-zeus::input.group inline for="data.is_active" label="{{ __('Activate the form') }}"> | ||
<x-zeus::input.toggle wireTo="data.is_active" /> | ||
</x-zeus::input.group> | ||
|
||
<x-zeus::input.group inline for="data.options.requireLogin" label="require Login"> | ||
<x-zeus::input.group inline for="data.options.requireLogin" label="{{ __('require Login') }}"> | ||
<x-slot name="cite"> | ||
User must be logged in or create an account before can submit a new entry | ||
{{ __('User must be logged in or create an account before can submit a new entry') }} | ||
</x-slot> | ||
<x-zeus::input.toggle wireTo="data.options.requireLogin" /> | ||
</x-zeus::input.group> | ||
|
||
<div> | ||
<x-zeus::input.group inline for="data.options.oneEntryPerUser" label="One Entry Per User"> | ||
<x-zeus::input.group inline for="data.options.oneEntryPerUser" label="{{ __('One Entry Per User') }}"> | ||
<x-slot name="cite"> | ||
to check if the user already submitted an entry in this form | ||
</x-slot> | ||
<x-zeus::input.toggle wireTo="data.options.oneEntryPerUser" /> | ||
</x-zeus::input.group> | ||
</div> | ||
|
||
<x-zeus::input.group inline for="data.options.sectionsToPages" label="sections To Pages"> | ||
<x-zeus::input.group inline for="data.options.sectionsToPages" label="{{ __('Sections To Pages') }}"> | ||
<x-slot name="cite"> | ||
instead of showing all section in one page, separate them in multiple pages with next and previous buttons | ||
{{ __('instead of showing all section in one page, separate them in multiple pages with next and previous buttons') }} | ||
</x-slot> | ||
<x-zeus::input.toggle wireTo="data.options.sectionsToPages" /> | ||
</x-zeus::input.group> | ||
</div> | ||
|
||
<x-slot name="footer"> | ||
<x-filament::modal.actions> | ||
<x-filament::button x-on:click="isOpen = false">Save</x-filament::button> | ||
<x-filament::button x-on:click="isOpen = false">{{ __('Save') }}</x-filament::button> | ||
</x-filament::modal.actions> | ||
</x-slot> | ||
</x-filament::modal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,38 @@ | ||
<x-filament::modal width="4xl"> | ||
<x-slot name="trigger"> | ||
<button x-on:click="isOpen = true" type="button" data-tippy-content="Set Form Texts, like desc and details"> | ||
<button x-on:click="isOpen = true" type="button" data-tippy-content="{{ __('Set Form Texts, like desc and details') }}"> | ||
<x-clarity-talk-bubbles-line class="h-6 w-6 text-green-600" /> | ||
</button> | ||
</x-slot> | ||
<x-slot name="header"> | ||
<x-filament::modal.heading> | ||
<p class="text-green-700"> | ||
<x-clarity-talk-bubbles-line class="h-6 w-6 inline" /> | ||
Form Texts | ||
{{ __('Form Texts') }} | ||
</p> | ||
</x-filament::modal.heading> | ||
</x-slot> | ||
|
||
<div class="space-y-10"> | ||
<x-zeus::input.group inline for="desc" label="Desc" :error="$errors->first('data.desc')"> | ||
<x-zeus::input.textarea wire:model="data.desc" placeholder="Form Desc"/> | ||
<x-zeus::input.group inline for="desc" label="{{ __('Description') }}" :error="$errors->first('data.desc')"> | ||
<x-zeus::input.textarea wire:model="data.desc" placeholder="{{ __('Form Description') }}"/> | ||
</x-zeus::input.group> | ||
|
||
<x-zeus::input.group inline label="Details" for="data.details" :error="$errors->first('data.details')" help-text="Write a few details about the form."> | ||
<x-zeus::input.group inline label="Details" for="data.details" :error="$errors->first('data.details')" help-text="{{ __('Write a few details about the form.') }}"> | ||
<x-zeus::input.rich-text wire:model.lazy="data.details" id="data.details"/> | ||
</x-zeus::input.group> | ||
|
||
<x-zeus::input.group inline for="options.confirmationMessage" label="Confirmation Message"> | ||
<x-zeus::input.group inline for="options.confirmationMessage" label="{{ __('Confirmation Message') }}"> | ||
<x-slot name="cite"> | ||
optional, | ||
show a massage whenever any one submit a new entery | ||
{{ __('optional, show a massage whenever any one submit a new entery') }} | ||
</x-slot> | ||
<x-zeus::input.textarea wire:model="data.options.confirmationMessage" placeholder="Confirmation Message"/> | ||
<x-zeus::input.textarea wire:model="data.options.confirmationMessage" placeholder="{{ __('Confirmation Message') }}"/> | ||
</x-zeus::input.group> | ||
</div> | ||
|
||
<x-slot name="footer"> | ||
<x-filament::modal.actions> | ||
<x-filament::button x-on:click="isOpen = false">Save</x-filament::button> | ||
<x-filament::button x-on:click="isOpen = false">{{ __('Save') }}</x-filament::button> | ||
</x-filament::modal.actions> | ||
</x-slot> | ||
</x-filament::modal> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.