mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-23 23:19:28 +00:00
also shows the zustelladresse checkbox when viewing an Adresse component in the hr View for Profil Updates
This commit is contained in:
@@ -80,7 +80,7 @@ class ProfilUpdate extends Auth_Controller
|
||||
$insertID = $this->handleAdresse($requested_change, $personID);
|
||||
$insertID = hasData($insertID) ? getData($insertID) : null;
|
||||
if(isset($insertID)) {
|
||||
$requested_change['kontakt_id'] = $insertID;
|
||||
$requested_change['adresse_id'] = $insertID;
|
||||
$update_res = $this->updateRequestedChange($id,$requested_change);
|
||||
if(isError($update_res)){
|
||||
echo json_encode(error("was not able to add addresse_id " . $insertID . " to profilRequest " . $id ));
|
||||
|
||||
@@ -97,7 +97,7 @@ const app = Vue.createApp({
|
||||
//! function that is called when clicking on a row in the table
|
||||
|
||||
let cellData = cell.getRow().getData();
|
||||
console.log("cellData",cellData);
|
||||
|
||||
AcceptDenyUpdate.popup({ value: cellData })
|
||||
.then((res) => {
|
||||
console.log("res of the modal: ", res);
|
||||
@@ -144,7 +144,7 @@ const app = Vue.createApp({
|
||||
<div>
|
||||
|
||||
<div class="form-underline flex-fill ">
|
||||
<div class="form-underline-titel">Show Profil Requests</div>
|
||||
<div class="form-underline-titel">Show </div>
|
||||
|
||||
<select class="mb-4 " v-model="showAll" @change="updateData" class="form-select" aria-label="Profil updates display selection">
|
||||
<option :selected="true" :value="false">Pending Requests</option>
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
export default {
|
||||
props:{data:Object, view:String},
|
||||
props:{
|
||||
data:Object,
|
||||
view:String,
|
||||
withZustelladresse:{
|
||||
type:Boolean,
|
||||
default:false,
|
||||
},
|
||||
},
|
||||
data(){
|
||||
return{}
|
||||
},
|
||||
@@ -7,6 +14,7 @@ export default {
|
||||
|
||||
},
|
||||
template:`
|
||||
|
||||
<div class="gy-2 row justify-content-center align-items-center">
|
||||
|
||||
<!-- column 1 in the address row -->
|
||||
@@ -27,6 +35,9 @@ export default {
|
||||
</div>
|
||||
|
||||
<!-- column 2 in the address row -->
|
||||
|
||||
|
||||
|
||||
<div class="offset-1 offset-sm-0 offset-xl-1 offset-xxl-0 order-2 order-sm-4 order-xl-2 order-xxl-4 col-11 col-sm-5 col-xl-11 col-xxl-5 ">
|
||||
|
||||
|
||||
@@ -43,12 +54,23 @@ export default {
|
||||
<span class="form-underline-content">{{data.ort}} </span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="offset-1 offset-sm-0 order-4 order-sm-2 order-xl-4 order-xxl-2 col-11 col-sm-3 col-xl-4 col-xxl-3 ">
|
||||
<div class=" offset-1 offset-sm-0 order-4 order-sm-2 order-xl-4 order-xxl-2 col-11 col-sm-3 col-xl-4 col-xxl-3 ">
|
||||
<div class="form-underline ">
|
||||
<div class="form-underline-titel">PLZ</div>
|
||||
<span class="form-underline-content">{{data.plz}} </span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="withZustelladresse" class="order-5 offset-1 col-11">
|
||||
<div class="form-underline ">
|
||||
<div class="form-underline-titel">Zustelladresse</div>
|
||||
<div class="ms-2 form-check ">
|
||||
<input class="form-check-input" type="checkbox" @click.prevent :checked="data.zustelladresse" >
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`
|
||||
|
||||
|
||||
@@ -197,7 +197,7 @@ export default {
|
||||
</template>
|
||||
|
||||
|
||||
<component v-else :is="getComponentView" :data="data.requested_change"></component>
|
||||
<component v-else :is="getComponentView" :withZustelladresse="getComponentView==='adresse'?true:false" :data="data.requested_change"></component>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user