update_21.09.23

This commit is contained in:
NW
2023-09-21 15:20:06 +01:00
parent 046eddc957
commit 0de0459ce1
25 changed files with 2454 additions and 2091 deletions

View File

@@ -68,7 +68,7 @@
<div class="row">
<div class="col-sm-1">{{$element['min']}}</div>
<div class="col-sm-10">
<input type="range"
<input type="range"
name="fields[{{$element['name']}}]"
@if($element['required']) required @endif
data-msg-required="{{$element['required_error_msg']}}"
@@ -112,7 +112,7 @@
data-toggle="datetimepicker"
id="{{$element['name']}}"
class="form-control datetimepicker-input {{$element['custom_class']}}"
readonly
readonly
data-target="#{{$element['name']}}"
@if($element['required']) required @endif
data-msg-required="{{$element['required_error_msg']}}"
@@ -189,11 +189,11 @@
<span style="color:{{$form->schema['settings']['color']['required_asterisk_color']}}">*</span>
@endif
</label>
@foreach(explode(PHP_EOL, $element['options']) as $option)
<div class="custom-control @if($element['type'] == 'radio') custom-radio @else custom-checkbox @endif">
<input class="custom-control-input"
type="{{$element['type']}}"
<input class="custom-control-input"
type="{{$element['type']}}"
value="{{$option}}"
name="fields[{{$element['name']}}][]"
id="{{$element['name']}}_{{$loop->index}}"
@@ -302,7 +302,7 @@
<span style="color:{{$form->schema['settings']['color']['required_asterisk_color']}}">*</span>
@endif
</label>
<textarea class="form-control summer_note" id="{{$element['name']}}" name="fields[{{$element['name']}}]" @if($element['required']) required @endif data-msg-required="{{$element['required_error_msg']}}"
<textarea class="form-control summer_note" id="{{$element['name']}}" name="fields[{{$element['name']}}]" @if($element['required']) required @endif data-msg-required="{{$element['required_error_msg']}}"
@includeIf('form.partials.custom_attribute_generator', ['attributes' => $custom_attributes])></textarea>
@if(!empty($element['help_text']))
<small class="form-text text-muted">
@@ -431,7 +431,7 @@
id="{{$element['name']}}"
name="{{$element['label']}}"
title="{{$element['label']}}"
class="{{$element['custom_class']}}"
class="{{$element['custom_class']}}"
width="{{$element['width']}}%"
height="{{$element['height']}}"
frameborder="0"
@@ -451,7 +451,7 @@
id="{{$element['name']}}"
name="{{$element['label']}}"
title="{{$element['label']}}"
class="{{$element['custom_class']}}"
class="{{$element['custom_class']}}"
width="{{$element['width']}}%"
height="{{$element['height']}}"
frameborder="0"
@@ -471,7 +471,7 @@
id="{{$element['name']}}"
name="{{$element['label']}}"
title="{{$element['label']}}"
class="{{$element['custom_class']}}"
class="{{$element['custom_class']}}"
width="{{$element['width']}}%"
height="{{$element['height']}}"
frameborder="0"
@@ -496,4 +496,4 @@
</div>
@endforeach
</div>
@endif
@endif

View File

@@ -4,8 +4,18 @@
$error_msg_color = $form->schema['settings']['color']['error_msg'];
$bg_type = $form->schema['settings']['background']['bg_type'];
$bg_image = $form->schema['settings']['color']['image_path'];
$action = '';
switch (request()->route()->getName()) {
case 'form-data.edit':
$action = 'edit';
break;
case 'forms.show':
$action = 'show';
break;
}
@endphp
<div class="tab-content card-body"
<div class="tab-content card-body"
id="" role="tabpanel" style='@if(!empty($bg_image) && $bg_type == 'bg_image')background-image: url("{{Storage::url(config('constants.doc_path').'/'.$bg_image)}}"); background-repeat: no-repeat;background-size: cover;background-position: right top;@else background-color: {{$bg_color}}; @endif'>
@if(!empty($is_form_closed) && $is_form_closed)
@@ -13,7 +23,7 @@
{!! $form_closed_msg !!}
</div>
@else
<show-form form="{{json_encode($form)}}" action-by="{{$action_by ?? ''}}"></show-form>
<show-form form="{{json_encode($form)}}" action-by="{{$action_by ?? ''}}" action="{{ $action }}"></show-form>
@endif
</div>
</div>
</div>