@if($field['field_type'] === 'author_bio')
@continue
@endif
@@ -587,14 +587,35 @@ HTML;
+ @elseif($field['field_type'] === 'text')
+
+ @elseif($field['field_type'] === 'code')
+
@elseif($field['field_type'] === 'password')
@@ -611,6 +633,7 @@ HTML;
label="{{ $field['name'] }}"
wire:model="configuration.{{ $fieldKey }}"
description="{{ $field['description'] ?? '' }}"
+ descriptionTrailing="{{ $field['help_text'] ?? '' }}"
>
@foreach(timezone_identifiers_list() as $timezone)
@@ -622,6 +645,7 @@ HTML;
type="number"
label="{{ $field['name'] }}"
description="{{ $field['description'] ?? $field['name'] }}"
+ descriptionTrailing="{{ $field['help_text'] ?? '' }}"
wire:model="configuration.{{ $fieldKey }}"
value="{{ $currentValue }}"
/>
@@ -629,6 +653,7 @@ HTML;
@@ -637,6 +662,16 @@ HTML;
type="date"
label="{{ $field['name'] }}"
description="{{ $field['description'] ?? $field['name'] }}"
+ descriptionTrailing="{{ $field['help_text'] ?? '' }}"
+ wire:model="configuration.{{ $fieldKey }}"
+ value="{{ $currentValue }}"
+ />
+ @elseif($field['field_type'] === 'time')
+
@@ -646,6 +681,7 @@ HTML;
label="{{ $field['name'] }}"
wire:model="configuration.{{ $fieldKey }}"
description="{{ $field['description'] ?? '' }}"
+ descriptionTrailing="{{ $field['help_text'] ?? '' }}"
>
@if(isset($field['options']) && is_array($field['options']))
@foreach($field['options'] as $option)
@@ -664,6 +700,7 @@ HTML;
label="{{ $field['name'] }}"
wire:model="configuration.{{ $fieldKey }}"
description="{{ $field['description'] ?? '' }}"
+ descriptionTrailing="{{ $field['help_text'] ?? '' }}"
>
@if(isset($field['options']) && is_array($field['options']))
@@ -687,6 +724,7 @@ HTML;
label="{{ $field['name'] }}"
wire:model="configuration.{{ $fieldKey }}"
description="{{ $field['description'] ?? '' }}"
+ descriptionTrailing="{{ $field['help_text'] ?? '' }}"
wire:init="loadXhrSelectOptions('{{ $fieldKey }}', '{{ $field['endpoint'] }}')"
>
@@ -722,7 +760,7 @@ HTML;
wire:click="searchXhrSelect('{{ $fieldKey }}', '{{ $field['endpoint'] }}')"
icon="magnifying-glass"/>
-
+
{{ $field['help_text'] ?? '' }}
@if((isset($xhrSelectOptions[$fieldKey]) && is_array($xhrSelectOptions[$fieldKey]) && count($xhrSelectOptions[$fieldKey]) > 0) || !empty($currentValue))
@else
- {{ $field['name'] }}: Field type "{{ $field['field_type'] }}" not yet supported
+ Field type "{{ $field['field_type'] }}" not yet supported
@endif