shx-3d-render
parent
8544250741
commit
b9b8d7f234
|
@ -24,7 +24,7 @@
|
|||
overflow: hidden;
|
||||
}
|
||||
|
||||
.shx_ifc_renderButton {
|
||||
.shx_ifc_renderButton, .shx-ifc-form_label {
|
||||
margin-top: 1rem;
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,8 @@
|
|||
|
||||
let globalInputFormsObjValues = {
|
||||
"test1": {
|
||||
"shx-text1": "test"
|
||||
"shx-text1": "test",
|
||||
"shx-font": "LT Beverage"
|
||||
},
|
||||
"test2": {
|
||||
"text1": "test1",
|
||||
|
@ -51,7 +52,7 @@
|
|||
|
||||
function SHX_IFC_genTextInput(inputID, labelText, inputName, inputVal) {
|
||||
return `
|
||||
<label class="form__label custom" for="${inputID}-label">${labelText}</label>
|
||||
<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}">
|
||||
</div>
|
||||
|
@ -65,22 +66,11 @@
|
|||
|
||||
}
|
||||
|
||||
/*<select id="ContactForm-reason" name="contact[reason]" class="field__input" style="height: 60px">
|
||||
<option value="allgemein">Allgemein</option>
|
||||
<option value="feedback">Feedback</option>
|
||||
<option value="einProblemMelden">Ein Problem melden</option>
|
||||
<option value="erstattungOderRabattBeantragen">Erstattung oder Rabatt beantragen</option>
|
||||
<option value="produktfrage">Produktfrage</option>
|
||||
<option value="sonderanfertigung">Sonderanfertigung</option>
|
||||
<option value="kooperationAnfragen">Kooperation anfragen</option>
|
||||
<option value="sonstiges">Sonstiges</option>
|
||||
</select>*/
|
||||
|
||||
function SHX_IFC_genDropdownSelect(inputID, labelText, inputName, inputVal, options) {
|
||||
let html = `
|
||||
<label class="form__label custom" for="${inputID}-label">${labelText}</label>
|
||||
<label class="form__label custom shx-ifc-form_label" for="${inputID}-label">${labelText}</label>
|
||||
<div class="field custom">
|
||||
<select id="${inputID}" name="properties[${inputName}]" class="field__input" style="height: 60px">
|
||||
<select id="${inputID}" name="properties[${inputName}]" class="field__input" style="height: 40px">
|
||||
`;
|
||||
|
||||
for(let i = 0; i < options.length; i++) {
|
||||
|
@ -102,7 +92,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', 'Dropdown', 'dropdown', 'test', ['test', 'test2', 'test3']);
|
||||
html += SHX_IFC_genDropdownSelect('shx-font', 'Schriftart', 'dropdown', 'LT Beverage', ['LT Beverage', 'test2', 'test3']);
|
||||
html += SHX_IFC_genRenderButton();
|
||||
|
||||
return html;
|
||||
|
|
Loading…
Reference in New Issue