phrasen for acceptDenyUpdate.js and ProfilUpdateView.js

This commit is contained in:
SimonGschnell
2024-04-05 10:33:23 +02:00
parent c1cb2904e6
commit 150b4ec09d
3 changed files with 217 additions and 17 deletions
@@ -14,7 +14,7 @@ export default {
props: {
title: {
type: String,
default: "Profil Update Request",
default: this.$p.t('profilUpdate','profilUpdateRequest'),
},
value: {
type: Object,
@@ -105,7 +105,7 @@ export default {
popup(options) {
return BsModal.popup.bind(this)(null, options);
},
template: `
template: /*html*/`
<bs-modal v-show="!loading" ref="modalContainer" v-bind="$props" body-class="" dialog-class="modal-lg" class="bootstrap-alert" backdrop="false" >
@@ -126,14 +126,14 @@ export default {
<div class="row">
<div class="form-underline mb-2 col-12 col-sm-6">
<div class="form-underline-titel">Status: </div>
<div class="form-underline-titel">{{$p.t('global','status')}}: </div>
<span class="form-underline-content" >{{data.status}}</span>
</div>
<div v-if="data.status!=='pending'" class="form-underline mb-2 col-12 col-sm-6">
<div class="form-underline-titel">Date of Status: </div>
<div class="form-underline-titel">{{$p.t('profilUpdate','statusDate')}}: </div>
<!-- only status timestamp and status message can be null in the database -->
<span class="form-underline-content" >{{data.status_timestamp?data.status_timestamp:'-'}}</span>
</div>
@@ -141,19 +141,19 @@ export default {
<div class="form-underline mb-2 col-12 col-sm-6">
<div class="form-underline-titel">UserID: </div>
<div class="form-underline-titel">{{$p.t('profilUpdate','userID')}}: </div>
<span class="form-underline-content" >{{data.uid}}</span>
</div>
<div class="form-underline mb-2 col-12 col-sm-6">
<div class="form-underline-titel">Name: </div>
<div class="form-underline-titel">{{$p.t('global','name')}}: </div>
<span class="form-underline-content" >{{data.name}}</span>
</div>
<div class="form-underline mb-2 col-12 col-sm-6">
<div class="form-underline-titel">Topic of Request: </div>
<div class="form-underline-titel">{{$p.t('profilUpdate','anfrageThema')}}: </div>
<span class="form-underline-content" >{{data.topic}}</span>
</div>
@@ -162,7 +162,7 @@ export default {
<div class="form-underline mb-2 col-12 col-sm-6">
<div class="form-underline-titel">Date of Request:</div>
<div class="form-underline-titel">{{$p.t('profilUpdate','anfrageDatum')}}:</div>
<span class="form-underline-content" >{{data.insertamum}}</span>
</div>
@@ -173,7 +173,7 @@ export default {
<div v-if="data.status !=='pending' && data.status_message" class="row">
<div class="col">
<div class="form-underline mb-2 ">
<div class="form-underline-titel">Status message</div>
<div class="form-underline-titel">{{$p.t('profilUpdate','statusMessage')}}</div>
<textarea class="form-control" rows="4" disabled>{{data.status_message}} </textarea>
</div>
</div>
@@ -182,7 +182,7 @@ export default {
<div class="row my-4">
<div class="col ">
<div class="card">
<div class="card-header">update</div>
<div class="card-header">{{$p.t('profilUpdate','update')}}</div>
<div class="card-body">
<template v-if="getComponentView==='text_input'">
<div class="form-underline mb-2">
@@ -208,12 +208,12 @@ export default {
<template v-if="data.status === 'pending'" v-slot:footer>
<div class="form-underline flex-fill">
<div class="form-underline-titel">Message</div>
<div class="form-underline-titel">{{$p.t('global','nachricht')}}</div>
<div class="d-flex flex-row gap-2">
<input class="form-control " v-model="data.status_message" >
<button @click="acceptRequest" class="text-nowrap btn btn-success">Accept <i class="fa fa-check"></i></button>
<button @click="denyRequest" class="text-nowrap btn btn-danger">Deny <i class="fa fa-xmark"></i></button>
<button @click="acceptRequest" class="text-nowrap btn btn-success">{{$p.t('profilUpdate','accept')}} <i class="fa fa-check"></i></button>
<button @click="denyRequest" class="text-nowrap btn btn-danger">{{$p.t('profilUpdate','deny')}} <i class="fa fa-xmark"></i></button>
</div>
</div>
@@ -319,17 +319,17 @@ export default{
}
},
template: `
template: /*html*/`
<div>
<accept-deny-update v-if="showModal" ref="AcceptDenyModal" @hideBsModal="hideAcceptDenyModal" :value="JSON.parse(JSON.stringify(modalData))" :setLoading="setLoading" ></accept-deny-update>
<div class="form-underline flex-fill ">
<div class="form-underline-titel">Show </div>
<div class="form-underline-titel">{{$p.t('ui','anzeigen')}} </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>
<option :value="true">All Requests</option>
<option :selected="true" :value="false">{{$p.t('profilUpdate','pendingRequests')}}</option>
<option :value="true">{{$p.t('profilUpdate','allRequests')}}</option>
</select>
</div>
+200
View File
@@ -24820,6 +24820,206 @@ array(
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'profilUpdateRequest',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Profil Update Anfrage',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Profil Update Request',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'statusDate',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Status Datum',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Date of Status',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'userID',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'UserID',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'UserID',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'anfrageThema',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Thema der Anfrage',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Topic of Request',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'anfrageDatum',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Datum der Anfrage',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Date of Request',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'update',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Aktualisierung',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'update',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'accept',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Annehmen',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'accept',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'deny',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ablehnen',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'deny',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'pendingRequests',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Ausstehende Anfragen',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'Pending Requests',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profilUpdate',
'phrase' => 'allRequests',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Alle Anfragen',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'All Requests',
'description' => '',
'insertvon' => 'system'
)
)
),