forked from kompetenzinventar/ki-frontend
visibility and availability
This commit is contained in:
parent
feb425c1d7
commit
055e05822d
@ -2,6 +2,16 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>Profil Ändern</h1>
|
<h1>Profil Ändern</h1>
|
||||||
<form @submit.prevent="submitForm()">
|
<form @submit.prevent="submitForm()">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col">
|
||||||
|
<input type="radio" id="false" :value="false" v-model="profile.visible" />
|
||||||
|
<label for="false">Nicht Öffentlich</label>
|
||||||
|
</div>
|
||||||
|
<div class="col">
|
||||||
|
<input type="radio" id="true" :value="true" v-model="profile.visible" />
|
||||||
|
<label for="true">Öffentlich</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-6 col-xs-12">
|
<div class="col-6 col-xs-12">
|
||||||
<label for="nickname" class="form-label">Nickname:</label>
|
<label for="nickname" class="form-label">Nickname:</label>
|
||||||
@ -67,6 +77,18 @@
|
|||||||
@update-values="profile.searchtopics = $event"
|
@update-values="profile.searchtopics = $event"
|
||||||
></auto-complete>
|
></auto-complete>
|
||||||
|
|
||||||
|
<div class="col-12 col-xs-12">
|
||||||
|
<label for="volunteerwork" class="form-label"
|
||||||
|
>Ich bin für Anfragen verfügbar:</label
|
||||||
|
>
|
||||||
|
<textarea
|
||||||
|
class="form-control"
|
||||||
|
id="availability"
|
||||||
|
rows="3"
|
||||||
|
v-model="profile.availability"
|
||||||
|
></textarea>
|
||||||
|
</div>
|
||||||
|
|
||||||
<auto-complete
|
<auto-complete
|
||||||
type="contacttype"
|
type="contacttype"
|
||||||
label="Kontaktmöglichkeiten"
|
label="Kontaktmöglichkeiten"
|
||||||
@ -127,10 +149,12 @@ export default {
|
|||||||
return {
|
return {
|
||||||
showErrorMessage: false,
|
showErrorMessage: false,
|
||||||
profile: {
|
profile: {
|
||||||
|
visible: false,
|
||||||
nickname: "",
|
nickname: "",
|
||||||
pronouns: "",
|
pronouns: "",
|
||||||
volunteerwork: "",
|
volunteerwork: "",
|
||||||
freetext: "",
|
freetext: "",
|
||||||
|
availability: "",
|
||||||
address: {
|
address: {
|
||||||
postcode: "",
|
postcode: "",
|
||||||
city: "",
|
city: "",
|
||||||
@ -154,15 +178,7 @@ export default {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
console.log(userProfile.data);
|
console.log(userProfile.data);
|
||||||
this.profile.nickname = userProfile.data.profile.nickname;
|
this.profile = userProfile.data.profile;
|
||||||
this.profile.pronouns = userProfile.data.profile.pronouns;
|
|
||||||
this.profile.volunteerwork = userProfile.data.profile.volunteerwork;
|
|
||||||
this.profile.freetext = userProfile.data.profile.freetext;
|
|
||||||
this.profile.skills = userProfile.data.profile.skills;
|
|
||||||
this.profile.languages = userProfile.data.profile.languages;
|
|
||||||
this.profile.searchtopics = userProfile.data.profile.searchtopics;
|
|
||||||
this.profile.contacts = userProfile.data.profile.contacts;
|
|
||||||
this.profile.address = userProfile.data.profile.address;
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user