- aggiunto FeaturesSection all'editor HTML
This commit is contained in:
@@ -2774,6 +2774,82 @@
|
||||
<div></div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else-if="myel.type === shared_consts.ELEMTYPE.PAGE_SECTION">
|
||||
<!-- Edita i seguenti campi:
|
||||
Title, subtitle, features {name, icon, description }-->
|
||||
|
||||
<q-toggle
|
||||
v-model="myel.parambool2"
|
||||
color="positive"
|
||||
icon="fas fa-moon"
|
||||
label="Dark"
|
||||
@update:model-value="modifElem"
|
||||
></q-toggle>
|
||||
<q-input
|
||||
dense
|
||||
label="Sottotitolo Primario"
|
||||
@update:model-value="modifElem"
|
||||
v-model="myel.container3"
|
||||
filled
|
||||
v-on:keyup.enter="saveElem"
|
||||
></q-input>
|
||||
|
||||
<q-input
|
||||
dense
|
||||
label="Titolo"
|
||||
@update:model-value="modifElem"
|
||||
v-model="myel.container"
|
||||
filled
|
||||
v-on:keyup.enter="saveElem"
|
||||
></q-input>
|
||||
<q-input
|
||||
dense
|
||||
label="Sottotitolo"
|
||||
@update:model-value="modifElem"
|
||||
v-model="myel.container2"
|
||||
filled
|
||||
v-on:keyup.enter="saveElem"
|
||||
></q-input>
|
||||
<div v-if="myel.features && myel.features.length > 0" class="q-mt-md">
|
||||
<div v-for="(feature, index) in myel.features" :key="index">
|
||||
<div class="bg-blue text-white">Testo {{index + 1}}:</div>
|
||||
<q-input
|
||||
dense
|
||||
label="Nome"
|
||||
@update:model-value="modifElem"
|
||||
v-model="myel.features[index].name"
|
||||
filled
|
||||
v-on:keyup.enter="saveElem"
|
||||
></q-input>
|
||||
<q-input
|
||||
dense
|
||||
label="Icona"
|
||||
@update:model-value="modifElem"
|
||||
v-model="myel.features[index].icon"
|
||||
filled
|
||||
v-on:keyup.enter="saveElem"
|
||||
></q-input>
|
||||
<q-input
|
||||
dense
|
||||
label="Descrizione"
|
||||
@update:model-value="modifElem"
|
||||
v-model="myel.features[index].description"
|
||||
filled
|
||||
v-on:keyup.enter="saveElem"
|
||||
></q-input>
|
||||
<q-btn
|
||||
icon="fas fa-times"
|
||||
color="negative"
|
||||
@click="removeFeature(index)"
|
||||
></q-btn>
|
||||
</div>
|
||||
</div>
|
||||
<q-btn
|
||||
icon="fas fa-plus"
|
||||
color="positive"
|
||||
@click="addFeature()"
|
||||
></q-btn>
|
||||
</div>
|
||||
</q-list>
|
||||
</div>
|
||||
<br /><br /><br />
|
||||
|
||||
Reference in New Issue
Block a user