-
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.
* fix: render form fields with uppercase in type * fix: use field->GetCombinationChildren to (default) render combination fields * fix: lint
- Loading branch information
Showing
4 changed files
with
18 additions
and
33 deletions.
There are no files selected for viewing
36 changes: 10 additions & 26 deletions
36
resources/views/siteboss/forms/fields/combination.blade.php
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,26 +1,10 @@ | ||
<div class="col-sm-12"> | ||
<div class="row"> | ||
{% for item in item.fields %} | ||
{{ include(item.type|lower ~ '.html', {label: item.label, properties: item.properties, id: item.id }) }} | ||
{% endfor %} | ||
</div> | ||
</div> | ||
|
||
{% if item.triggerId != '' %} | ||
<script> | ||
$(document).ready(function() { | ||
$("[name='{{ item.triggerId }}']" ).change(function (e){ | ||
thisCombo = $("#{{ item.id }}"); | ||
if(e.target.value == '{{ item.triggerValue }}') { | ||
thisCombo.show(); | ||
} else { | ||
thisCombo.hide(); | ||
//thisCombo.find('input').val(''); | ||
//thisCombo.find('textarea').val(''); | ||
//thisCombo.find("input:checked[type='radio']").prop('checked', false); | ||
//thisCombo.find("input:checked[type='checkbox']").prop('checked', false); | ||
} | ||
}); | ||
}) | ||
</script> | ||
{% endif %} | ||
<div class="row"> | ||
@foreach ($field->GetChildrenOfCombination($field->form_id, $field->id) as $childfield) | ||
<div> | ||
<x-dynamic-component | ||
:component="$childfield->getBladeComponent()" | ||
:field="$childfield" | ||
/> | ||
</div> | ||
@endforeach | ||
</div> |
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