- Aggiornate tutte le categorie ottimizzandole.
- Migrazione delle vecchie categ. con quelle nuove. - Create le Categorie e sottocategorie degli Eventi (a parte). - Aggiornato la card dell'Ospitalità
This commit is contained in:
@@ -431,6 +431,30 @@
|
||||
>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
<!--<q-item v-if="table === shared_consts.TABLES_MYHOSPS">
|
||||
<div
|
||||
v-if="myrec.preferences && myrec.preferences.length > 0"
|
||||
class="preferences-section q-mb-sm"
|
||||
>
|
||||
<div class="preferences-icons-container">
|
||||
<q-avatar
|
||||
v-for="(prefId, ind) of myrec.preferences"
|
||||
:key="ind"
|
||||
size="32px"
|
||||
:style="`background-color: ${tools.getPreferenceById(prefId)?.color || 'grey'}; cursor: pointer;`"
|
||||
class="preference-icon-avatar"
|
||||
@click.stop="showPreferencesDialog = true"
|
||||
>
|
||||
<q-icon
|
||||
:name="tools.getPreferenceById(prefId)?.icon || 'help'"
|
||||
size="18px"
|
||||
color="white"
|
||||
/>
|
||||
<q-tooltip>{{ tools.getPreferenceById(prefId)?.label }}</q-tooltip>
|
||||
</q-avatar>
|
||||
</div>
|
||||
</div>
|
||||
</q-item>-->
|
||||
<q-item
|
||||
v-if="
|
||||
myrec.idStatusSkill &&
|
||||
@@ -504,28 +528,49 @@
|
||||
|
||||
<q-item-section>
|
||||
<q-item-label>
|
||||
<q-chip
|
||||
v-if="getSectorByRec(myrec) && getSectorByRec(myrec)[0].descr"
|
||||
class="glossy"
|
||||
color="blue"
|
||||
text-color="white"
|
||||
dense
|
||||
>
|
||||
<span>{{ getSectorByRec(myrec)[0].descr }}</span>
|
||||
</q-chip>
|
||||
<q-chip
|
||||
v-if="
|
||||
getRecGoodSkillByRec(myrec) &&
|
||||
getRecGoodSkillByRec(myrec).length > 0 &&
|
||||
getRecGoodSkillByRec(myrec)[0].descr
|
||||
"
|
||||
class="glossy"
|
||||
dense
|
||||
color="blue"
|
||||
text-color="white"
|
||||
>
|
||||
<span>{{ getRecGoodSkillByRec(myrec)[0].descr }}</span>
|
||||
</q-chip>
|
||||
<div class="category-hierarchy">
|
||||
<q-chip
|
||||
v-for="(recSect, ind) of arrSector"
|
||||
:key="'sec-' + ind"
|
||||
class="tag-chip sector"
|
||||
:style="{
|
||||
background: `linear-gradient(135deg, ${recSect.color}, ${recSect.color})`,
|
||||
}"
|
||||
:color="recSect.color"
|
||||
>
|
||||
<q-icon
|
||||
v-if="recSect.icon"
|
||||
:name="recSect.icon"
|
||||
size="xs"
|
||||
class="q-mr-xs"
|
||||
/>
|
||||
{{ recSect.descr }}
|
||||
</q-chip>
|
||||
<q-icon
|
||||
v-if="arrSubSector.length > 0"
|
||||
name="chevron_right"
|
||||
size="sm"
|
||||
class="hierarchy-arrow"
|
||||
/>
|
||||
<q-chip
|
||||
v-for="(rec, ind) of arrSubSector"
|
||||
:key="'sub-' + ind"
|
||||
class="tag-chip subsector"
|
||||
:style="{
|
||||
background: `linear-gradient(135deg, ${getColorSubSector}, ${getColorSubSector})`,
|
||||
opacity: 0.8,
|
||||
}"
|
||||
:color="getColorSubSector"
|
||||
>
|
||||
<q-icon
|
||||
v-if="rec.icon"
|
||||
:name="rec.icon"
|
||||
size="xs"
|
||||
class="q-mr-xs"
|
||||
/>
|
||||
{{ rec.descr }}
|
||||
</q-chip>
|
||||
</div>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
</q-item>
|
||||
@@ -579,6 +624,7 @@
|
||||
:rec="myrec"
|
||||
:type="costanti.FieldType.multiselect"
|
||||
:value="myrec.preferences"
|
||||
size="md"
|
||||
:options="
|
||||
globalStore.getTableJoinByName(
|
||||
toolsext.TABPREF,
|
||||
@@ -589,7 +635,7 @@
|
||||
"
|
||||
:optval="fieldsTable.getKeyByTable(toolsext.TABPREF)"
|
||||
:optlab="fieldsTable.getLabelByTable(toolsext.TABPREF)"
|
||||
:opticon="fieldsTable.getIconByTable(toolsext.TABPREF)"
|
||||
:dense="false"
|
||||
></CMyChipList>
|
||||
</q-item-label>
|
||||
</q-item-section>
|
||||
@@ -1041,7 +1087,9 @@
|
||||
<span v-if="myrec.createdBy"
|
||||
><br />{{ $t('services.createdBy') }}
|
||||
<span class="text-bold"
|
||||
><a :href="'my/' + myrec.createdBy">{{ myrec.createdBy }}</a></span
|
||||
><a :href="'my/' + myrec.createdBy">{{
|
||||
myrec.createdBy
|
||||
}}</a></span
|
||||
></span
|
||||
>
|
||||
</q-item-label>
|
||||
@@ -1415,21 +1463,64 @@
|
||||
</div>
|
||||
</q-card-section>
|
||||
<q-card-actions align="right">
|
||||
<q-btn
|
||||
flat
|
||||
:label="$t('dialog.sendmsg')"
|
||||
color="primary"
|
||||
@click="sendMsg(true)"
|
||||
></q-btn>
|
||||
<q-btn
|
||||
flat
|
||||
:label="$t('dialog.cancel')"
|
||||
color="primary"
|
||||
v-close-popup
|
||||
></q-btn>
|
||||
<q-btn
|
||||
flat
|
||||
:label="$t('dialog.sendmsg')"
|
||||
color="primary"
|
||||
@click="sendMsg(true)"
|
||||
></q-btn>
|
||||
</q-card-actions>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
<!-- Categories Dialog -->
|
||||
<q-dialog v-model="showPreferencesDialog">
|
||||
<q-card
|
||||
class="categories-dialog"
|
||||
:style="{ minWidth: $q.screen.lt.sm ? '90vw' : '400px' }"
|
||||
>
|
||||
<q-card-section class="dialog-header">
|
||||
<div class="text-h6">Categorie</div>
|
||||
</q-card-section>
|
||||
|
||||
<q-separator />
|
||||
|
||||
<q-card-section class="dialog-content">
|
||||
<div class="categories-grid">
|
||||
<q-chip
|
||||
v-for="(rec, ind) of myrec.preferences"
|
||||
:key="ind"
|
||||
class="category-chip shadow-3"
|
||||
:style="`background-color: ${tools.getPreferenceById(rec).color}; color: white;`"
|
||||
>
|
||||
<q-icon
|
||||
:name="tools.getPreferenceById(rec).icon"
|
||||
left
|
||||
size="18px"
|
||||
/>
|
||||
{{ tools.getPreferenceById(rec).label }}
|
||||
</q-chip>
|
||||
</div>
|
||||
</q-card-section>
|
||||
|
||||
<q-separator />
|
||||
|
||||
<q-card-actions align="right">
|
||||
<q-btn
|
||||
flat
|
||||
label="Chiudi"
|
||||
color="primary"
|
||||
v-close-popup
|
||||
/>
|
||||
</q-card-actions>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
|
||||
<q-dialog
|
||||
v-model="bookEventpage.show"
|
||||
no-backdrop-dismiss
|
||||
@@ -1504,6 +1595,12 @@
|
||||
</div>
|
||||
|
||||
<q-card-actions align="right">
|
||||
<q-btn
|
||||
flat
|
||||
:label="$t('dialog.cancel')"
|
||||
color="primary"
|
||||
v-close-popup
|
||||
></q-btn>
|
||||
<q-btn
|
||||
v-if="bookEventpage.state === EState.Modifying"
|
||||
flat
|
||||
@@ -1525,13 +1622,6 @@
|
||||
@click="saveBookEvent"
|
||||
:disable="!(bookEventpage.state === EState.Creating || hasModifiedBooking)"
|
||||
></q-btn>
|
||||
|
||||
<q-btn
|
||||
flat
|
||||
:label="$t('dialog.cancel')"
|
||||
color="primary"
|
||||
v-close-popup
|
||||
></q-btn>
|
||||
</q-card-actions>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
|
||||
Reference in New Issue
Block a user