shx-3d-render
parent
d113a18277
commit
203b690742
|
@ -17,20 +17,11 @@
|
|||
<shx-input-forms>
|
||||
</shx-input-forms>
|
||||
|
||||
{% if product.images.size > 0 %}
|
||||
{% assign main_image = product.images.first %}
|
||||
<!-- Display the alt text -->
|
||||
<p>Main Image Alt Text: {{ main_image.alt }}</p>
|
||||
{% else %}
|
||||
<p>No images available for this product.</p>
|
||||
{% endif %}
|
||||
|
||||
{% elsif content_type == 'init' %}
|
||||
|
||||
<style>
|
||||
.shx-input-forms-container {
|
||||
overflow: hidden;
|
||||
|
||||
overflow: hidden;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
@ -55,12 +46,12 @@
|
|||
`;
|
||||
}
|
||||
|
||||
const defaultStyle = `<style>.custom.form__label{margin-bottom: 0.6rem}.field.custom{margin-top: 0.6rem}.custom .field__input{padding-top:0.8rem}</style>`;
|
||||
|
||||
let globalInputFormsObj = {
|
||||
"test1": {
|
||||
"renderHTML": () => {
|
||||
let html = `
|
||||
<style>.custom.form__label{margin-bottom: 0.6rem}.field.custom{margin-top:0}.custom .field__input{padding-top:0.8rem}</style>
|
||||
`;
|
||||
let html = defaultStyle;
|
||||
|
||||
html += genTextInput('custom-text-1', 'Custom Text 1', 'Custom Text 1', globalInputFormsObjValues['test1']['text1']);
|
||||
|
||||
|
@ -68,9 +59,7 @@
|
|||
}
|
||||
},"test2": {
|
||||
"renderHTML": () => {
|
||||
let html = `
|
||||
<style>.custom.form__label{margin-bottom: 0.6rem}.field.custom{margin-top:0}.custom .field__input{padding-top:0.8rem}</style>
|
||||
`;
|
||||
let html = defaultStyle;
|
||||
|
||||
html += genTextInput('custom-text-1', 'Custom Text 1', 'Custom Text 1', globalInputFormsObjValues['test2']['text1']);
|
||||
html += genTextInput('custom-text-2', 'Custom Text 2', 'Custom Text 2', globalInputFormsObjValues['test2']['text2']);
|
||||
|
|
Loading…
Reference in New Issue