shx-3d-render

main
Jan Umbach 2024-06-15 12:16:30 +02:00
parent b9b8d7f234
commit fc91f05994
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
{% assign content_type = content_type | default: 'body' %}
{% assign section_id = sectionID | default: 'null' %}
{% if content_type == 'body' %}
@ -54,7 +55,7 @@
return `
<label class="form__label custom shx-ifc-form_label" for="${inputID}-label">${labelText}</label>
<div class="field custom">
<input class="field__input" form="{{ 'product-form-' | append: section.id }}" type="text" id="${inputID}" name="properties[${inputName}]" value="${inputVal}">
<input class="field__input" form="{{ 'product-form-' | append: section_id }}" type="text" id="${inputID}" name="properties[${inputName}]" value="${inputVal}">
</div>
`;
}
@ -92,7 +93,7 @@
let html = defaultStyle;
html += SHX_IFC_genTextInput('shx-text1', 'Custom Text 1', 'Custom Text 1', globalInputFormsObjValues['test1']['shx-text1']);
html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'dropdown', 'LT Beverage', ['LT Beverage', 'test2', 'test3']);
html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'dropdown', globalInputFormsObjValues['test1']['shx-font'], ['LT Beverage', 'test2', 'test3']);
html += SHX_IFC_genRenderButton();
return html;