Files
myprojplanet_vite/src/views/user/editprofile/editprofile.vue

340 lines
9.5 KiB
Vue
Raw Normal View History

2022-01-03 21:53:41 +01:00
<template>
2021-09-16 21:08:02 +02:00
<div class="q-gutter-sm q-pa-xs q-pb-md">
2021-09-19 02:59:24 +02:00
2021-09-16 21:08:02 +02:00
<CTitleBanner
class="q-pa-xs" :title="$t('pages.profile')" bgcolor="bg-primary" clcolor="text-white"
myclass="myshad" :canopen="true">
<div class="column">
2021-10-28 00:37:48 +02:00
<div class="myrow">
<div v-if="static_data.functionality.SHOW_NAMESURNAME">
<CMyFieldDb
:title="$t('reg.name')"
table="users"
mykey="name"
:type="costanti.FieldType.string">
</CMyFieldDb>
<CMyFieldDb
:title="$t('reg.surname')"
table="users"
mykey="surname"
:type="costanti.FieldType.string">
</CMyFieldDb>
</div>
2021-09-16 21:08:02 +02:00
</div>
2021-10-28 00:37:48 +02:00
<div class="myrow">
2021-09-16 21:08:02 +02:00
<CMyFieldDb
:title="$t('reg.username')"
table="users"
mykey="username"
2021-09-19 02:59:24 +02:00
:disable="true"
2022-01-03 21:53:41 +01:00
:readonly="true"
2021-09-19 02:59:24 +02:00
:type="costanti.FieldType.string">
2021-09-16 21:08:02 +02:00
</CMyFieldDb>
<CMyFieldDb
2022-01-03 21:53:41 +01:00
:title="$t('reg.username_telegram')"
table="users"
mykey="profile"
2022-01-03 21:53:41 +01:00
mysubkey="username_telegram"
:type="costanti.FieldType.string">
2021-09-16 21:08:02 +02:00
</CMyFieldDb>
2022-01-23 23:25:19 +01:00
</div>
2022-01-26 01:31:07 +01:00
<div class="myrow">
2021-09-16 21:08:02 +02:00
<CMyFieldDb
2022-01-03 21:53:41 +01:00
:title="$t('reg.email')"
2021-09-16 21:08:02 +02:00
table="users"
2022-01-03 21:53:41 +01:00
mykey="email"
:disable="true"
2021-09-19 02:59:24 +02:00
:type="costanti.FieldType.string">
2021-09-16 21:08:02 +02:00
</CMyFieldDb>
2022-01-23 23:25:19 +01:00
<CMyFieldDb
:title="$t('reg.website')"
table="users"
mykey="profile"
mysubkey="website"
:type="costanti.FieldType.string">
</CMyFieldDb>
2021-09-16 21:08:02 +02:00
</div>
<br/>
2021-10-28 00:37:48 +02:00
<div class="myrow justify-center">
2021-09-16 21:08:02 +02:00
<q-btn
push
rounded
2022-01-03 21:53:41 +01:00
color="white"
text-color="blue"
2021-09-16 21:08:02 +02:00
size="md"
to="/requestresetpwd"
:label="$t('reg.modificapassword')">
</q-btn>
</div>
</div>
</CTitleBanner>
2022-02-03 00:33:05 +01:00
<CTitleBanner
class="q-pa-xs" title="Competenze Personali (Offerte)" bgcolor="bg-primary" clcolor="text-white"
2022-02-03 00:33:05 +01:00
myclass="myshad" :canopen="true">
<CSkill
:filtercustom="filtroutente">
</CSkill>
</CTitleBanner>
2022-01-03 21:53:41 +01:00
<CTitleBanner
class="q-pa-xs" title="Informazioni su di te" bgcolor="bg-primary" clcolor="text-white"
myclass="myshad" :canopen="true">
<div class="myrow">
<CMyFieldDb
:title="$t('reg.photo')"
table="users"
mykey="profile"
mysubkey="img"
:type="costanti.FieldType.image">
</CMyFieldDb>
</div>
<CMyFieldDb
title="Qualifica"
table="users"
mykey="profile"
mysubkey="qualifica"
maxlength="40"
:showall="true"
:type="costanti.FieldType.string">
</CMyFieldDb>
2022-01-03 21:53:41 +01:00
<CMyFieldDb
title="Biografia"
table="users"
mykey="profile"
mysubkey="biografia"
maxlength="300"
hint="Scrivi chi sei e quale percorso formativo hai fatto"
2022-01-03 21:53:41 +01:00
:showall="true"
:type="costanti.FieldType.string">
</CMyFieldDb>
<div class="myrow">
<CMyFieldDb
:title="$t('reg.nationality')"
table="users"
tablesel="countries"
mykey="profile"
:useinput="false"
mysubkey="nationality"
:pickup="true"
:type="costanti.FieldType.nationality">
</CMyFieldDb>
<CMyFieldDb
:title="$t('reg.residency_city')"
table="users"
tablesel="cities"
mykey="profile"
:useinput="false"
mysubkey="born_city"
:pickup="true"
:type="costanti.FieldType.string">
</CMyFieldDb>
<CMyFieldDb
:title="$t('reg.dateofbirth')"
table="users"
mykey="profile"
mysubkey="dateofbirth"
:type="costanti.FieldType.date">
</CMyFieldDb>
</div>
<div class="myrow">
<CMyFieldDb
:title="$t('reg.intcode_cell')"
table="users"
mykey="profile"
mysubkey="intcode_cell"
:type="costanti.FieldType.intcode"
tablesel="phones"
:pickup="true">
</CMyFieldDb>
<CMyFieldDb
:title="$t('reg.cell')"
table="users"
mykey="profile"
mysubkey="cell"
:type="costanti.FieldType.string">
</CMyFieldDb>
</div>
</CTitleBanner>
2022-02-03 00:33:05 +01:00
<!--
<div class="column">
<div class="myrow">
<CMyFieldDb
title="Motivazioni"
table="users"
mykey="profile"
mysubkey="motivazioni"
:type="costanti.FieldType.string">
</CMyFieldDb>
</div>
<div class="myrow">
<CMyFieldDb
title="Competenze e Professionalità"
table="users"
mykey="profile"
mysubkey="competenze_professionalita"
:type="costanti.FieldType.string">
</CMyFieldDb>
</div>
<div class="myrow">
<CMyFieldDb
title="Cosa potrei offrire?"
table="users"
mykey="profile"
mysubkey="cosa_offrire"
:type="costanti.FieldType.string">
</CMyFieldDb>
</div>
<div class="myrow">
<CMyFieldDb
title="Cosa vorrei ricevere?"
table="users"
mykey="profile"
mysubkey="cosa_ricevere"
:type="costanti.FieldType.string">
</CMyFieldDb>
</div>
<div class="myrow">
<CMyFieldDb
title="Altre Comunicazioni"
table="users"
mykey="profile"
mysubkey="altre_comunicazioni"
:type="costanti.FieldType.string">
</CMyFieldDb>
</div>
<div class="myrow">
<CMyFieldDb
title="Come ci hai conosciuto?"
table="users"
mykey="profile"
mysubkey="come_ci_hai_conosciuto"
:type="costanti.FieldType.string">
</CMyFieldDb>
2021-09-16 21:08:02 +02:00
</div>
2022-02-03 00:33:05 +01:00
</div>
-->
2021-10-28 00:37:48 +02:00
2021-09-16 21:08:02 +02:00
<!--
<CTitleBanner class="q-pa-xs" :title="$t('pages.payment')" bgcolor="bg-primary" clcolor="text-white"
myclass="myshad" :canopen="true">
2021-10-28 00:37:48 +02:00
<div class="myrow fa-border justify-center items-center">
2021-09-16 21:08:02 +02:00
2021-09-19 02:59:24 +02:00
<CMyFieldDb v-if="costanti.isselectPayeer()"
2021-09-16 21:08:02 +02:00
:title="$t('reg.payeer_id')"
table="users"
mykey="profile"
myimg="statics/images/payeer.jpg"
mysubkey="payeer_id"
2021-09-19 02:59:24 +02:00
:type="costanti.FieldType.string">
2021-09-16 21:08:02 +02:00
</CMyFieldDb>
2021-09-19 02:59:24 +02:00
<CMyFieldDb v-if="costanti.isselectAdvCash()"
2021-09-16 21:08:02 +02:00
:title="$t('reg.advcash_id')"
table="users"
mykey="profile"
mysubkey="advcash_id"
myimg="statics/images/advcash.jpg"
2021-09-19 02:59:24 +02:00
:type="costanti.FieldType.string">
2021-09-16 21:08:02 +02:00
</CMyFieldDb>
2021-09-19 02:59:24 +02:00
<CMyFieldDb v-if="costanti.isselectRevolut()"
2021-09-16 21:08:02 +02:00
:title="$t('reg.revolut')"
table="users"
mykey="profile"
mysubkey="revolut"
myimg="statics/images/revolut.jpg"
2021-09-19 02:59:24 +02:00
:type="costanti.FieldType.string">
2021-09-16 21:08:02 +02:00
</CMyFieldDb>
2021-09-19 02:59:24 +02:00
<CMyFieldDb v-if="costanti.isselectPaypal()"
2021-09-16 21:08:02 +02:00
:title="$t('reg.email_paypal')"
table="users"
mykey="profile"
mysubkey="email_paypal"
myimg="statics/images/paypal.jpg"
2021-09-19 02:59:24 +02:00
:type="costanti.FieldType.string">
2021-09-16 21:08:02 +02:00
</CMyFieldDb>
2021-09-19 02:59:24 +02:00
<CMyFieldDb v-if="costanti.isselectPaypal()"
2021-09-16 21:08:02 +02:00
:title="$t('reg.link_payment')"
table="users"
mykey="profile"
mysubkey="link_payment"
2021-09-19 02:59:24 +02:00
:type="costanti.FieldType.string">
2021-09-16 21:08:02 +02:00
</CMyFieldDb>
<CMyFieldDb :title="$t('reg.country_pay')"
table="users"
mykey="profile"
mysubkey="country_pay"
2021-09-19 02:59:24 +02:00
:type="costanti.FieldType.nationality">
2021-09-16 21:08:02 +02:00
</CMyFieldDb>
<CMyFieldDb :title="$t('reg.note_payment')"
table="users"
mykey="profile"
mysubkey="note_payment"
2021-09-19 02:59:24 +02:00
:type="costanti.FieldType.string">
2021-09-16 21:08:02 +02:00
</CMyFieldDb>
</div>
<CMyFieldDb :title="$t('reg.paymenttype')"
table="users"
mykey="profile"
mysubkey="paymenttypes"
2021-09-19 02:59:24 +02:00
:type="costanti.FieldType.multiselect"
2021-09-16 21:08:02 +02:00
jointable="paymenttypes">
</CMyFieldDb>
</CTitleBanner>
-->
<br><br>
<div class="text-center">
<q-btn rounded size="md" color="negative" @click="eliminaAccount" :label="$t('reg.cancella_account')">
</q-btn>
</div>
</div>
</template>
2022-01-03 21:53:41 +01:00
<script lang="ts" src="./editprofile.ts">
2021-09-16 21:08:02 +02:00
</script>
<style lang="scss" scoped>
2022-01-03 21:53:41 +01:00
@import './editprofile.scss';
2021-09-16 21:08:02 +02:00
</style>
2021-09-19 02:59:24 +02:00
<!--<CMyFieldDb :title="$t('reg.username_telegram')"
table="users"
mykey="profile"
mysubkey="username_telegram"
:type="costanti.FieldType.string">
</CMyFieldDb>-->
<!--<CMyFieldDb title="Telegram Id"
table="users"
:readonly="true"
mykey="profile"
mysubkey="teleg_id"
:type="costanti.FieldType.number">
</CMyFieldDb>-->