-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugs fixed penamaan class dengan 2 kata
- Loading branch information
1 parent
eba225a
commit ce1ea19
Showing
3 changed files
with
71 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,81 +1,80 @@ | ||
@foreach ($fields as $field) | ||
@switch($field['type']) | ||
@case('boolean') | ||
<wirex-toggle lg | ||
wire:key="{{ $field['column'] }}" | ||
left-label="{{ $field['label'] }}" wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
@break | ||
@case('file') | ||
<xxx-inputs.filepond | ||
<wirex-inputs.filepond | ||
wire:key="{{ $field['column'] }}" | ||
id="{{ $field['column'] }}" wire:model.live="myFile"/> | ||
@break | ||
@case('date') | ||
<xxx-datetime-picker | ||
<wirex-datetime-picker | ||
wire:key="{{ $field['column'] }}" | ||
time-format="24" :without-timezone="true" :without-time="true" label="{{ $field['label'] }}" | ||
placeholder="{{ $field['label'] }}" wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
@break | ||
@case('datetime') | ||
<xxx-datetime-picker | ||
<wirex-datetime-picker | ||
wire:key="{{ $field['column'] }}" | ||
time-format="24" :without-timezone="true" :without-time="true" label="{{ $field['label'] }}" | ||
placeholder="{{ $field['label'] }}" wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
@break | ||
|
||
@case('time') | ||
<xxx-datetime-picker time-format="24" :without-timezone="true" :without-time="false" | ||
label="{{ $field['label'] }}" | ||
placeholder="{{ $field['label'] }}" | ||
wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
<wirex-datetime-picker time-format="24" :without-timezone="true" :without-time="false" | ||
label="{{ $field['label'] }}" | ||
placeholder="{{ $field['label'] }}" | ||
wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
@break | ||
|
||
@case('longtext') | ||
<xxx-inputs.editor wire:key="{{ $field['column'] }}" id="{{ $field['column'] }}" | ||
wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
<wirex-inputs.editor wire:key="{{ $field['column'] }}" id="{{ $field['column'] }}" | ||
wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
@break | ||
|
||
@case('select') | ||
<xxx-select label="{{ $field['label'] }}" | ||
placeholder="Pilih salah satu" | ||
wire:key="{{ $field['column'] }}" | ||
:options="{{ __('$options') }}['{{ $field['column'] }}']" | ||
option-label="{{ $field['label_column'] }}" | ||
option-value="{{ $field['column'] }}" | ||
wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
<wirex-select label="{{ $field['label'] }}" | ||
placeholder="Pilih salah satu" | ||
wire:key="{{ $field['column'] }}" | ||
:options="{{ __('$options') }}['{{ $field['column'] }}']" | ||
option-label="{{ $field['label_column'] }}" | ||
option-value="{{ $field['column'] }}" | ||
wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
@break | ||
|
||
@case('string') | ||
<xxx-input label="{{ $field['label'] }}" placeholder="{{ $field['label'] }}" | ||
wire:key="{{ $field['column'] }}" | ||
wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
<wirex-input label="{{ $field['label'] }}" placeholder="{{ $field['label'] }}" | ||
wire:key="{{ $field['column'] }}" | ||
wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
@break | ||
@case('text') | ||
<xxx-textarea label="{{ $field['label'] }}" placeholder="{{ $field['label'] }}" | ||
wire:key="{{ $field['column'] }}" | ||
wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
<wirex-textarea label="{{ $field['label'] }}" placeholder="{{ $field['label'] }}" | ||
wire:key="{{ $field['column'] }}" | ||
wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
@break | ||
@case('integer') | ||
<xxx-input type="number" step="1" label="{{ $field['label'] }}" placeholder="{{ $field['label'] }}" | ||
wire:key="{{ $field['column'] }}" | ||
wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
<wirex-input type="number" step="1" label="{{ $field['label'] }}" placeholder="{{ $field['label'] }}" | ||
wire:key="{{ $field['column'] }}" | ||
wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
@break | ||
@case('double' || 'float') | ||
<xxx-input type="text" label="{{ $field['label'] }}" placeholder="{{ $field['label'] }}" | ||
wire:key="{{ $field['column'] }}" | ||
wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
<wirex-input label="{{ $field['label'] }}" placeholder="{{ $field['label'] }}" | ||
wire:key="{{ $field['column'] }}" | ||
wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
@break | ||
|
||
@case('radio') | ||
<xxx--radio | ||
<wirex-radio | ||
wire:key="{{ $field['column'] }}" | ||
label="{{ $field['label'] }}" wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
@break | ||
|
||
@case('tinyint') | ||
<xxx-toggle lg | ||
wire:key="{{ $field['column'] }}" | ||
left-label="{{ $field['label'] }}" wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
@break | ||
@case('boolean') | ||
<xxx-toggle lg | ||
wire:key="{{ $field['column'] }}" | ||
left-label="{{ $field['label'] }}" wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
<wirex-toggle lg | ||
wire:key="{{ $field['column'] }}" | ||
left-label="{{ $field['label'] }}" wire:model="{{ $model }}.{{ $field['column'] }}"/> | ||
@break | ||
@endswitch | ||
@endforeach |
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