Added check for date existence

This commit is contained in:
Ivymaster
2026-08-27 11:00:43 +02:00
parent 6d641bbd06
commit 5fff45e302
6 changed files with 35 additions and 6 deletions
+6 -1
View File
@@ -394,7 +394,12 @@ if (!$ansicht && (!defined('CIS_PROFIL_FHAUSWEIS_ANZEIGEN') || CIS_PROFIL_FHAUSW
//wenn es mehr Zutrittskarten gab, wird das letzte Ausgabedatum erhalten
$ausgegeben_am = $bm->result;
$ausgegeben_am = $datum_obj->formatDatum($ausgegeben_am, 'd.m.Y');
echo '<br>'.$p->t('profil/fhausweisWurdeBereitsAusgegeben', array($ausgegeben_am));
if ($ausgegeben_am) {
echo '<br>'.$p->t('profil/fhausweisWurdeBereitsAusgegeben', array($ausgegeben_am));
} else {
echo '<br>'.$p->t('profil/fhAusweisStatusKeine');
}
}
else
{
+1
View File
@@ -70,6 +70,7 @@ $this->phrasen['profil/profilfotoGesperrt']='Profilfoto gesperrt';
$this->phrasen['profil/profilfotoUploadGesperrt']='Der Upload des Profilfotos ist nicht mehr möglich';
$this->phrasen['profil/fhausweisStatus']='FH-Ausweis Status';
$this->phrasen['profil/fhausweisWurdeBereitsAusgegeben']='Der FH Ausweis ist am %s ausgegeben worden.';
$this->phrasen['profil/fhAusweisStatusKeine']='Der FH Ausweis wurde noch nicht ausgegeben.';
$this->phrasen['profil/ladenSieBitteEinGueltigesFotoHoch']='Laden Sie bitte ein gültiges Foto hoch';
$this->phrasen['profil/fotoWurdeNochNichtAkzeptiert']='Foto wurde noch nicht akzeptiert';
$this->phrasen['profil/fhausweisGedrucktAm']='FH-Ausweis gedruckt am';
+1
View File
@@ -68,6 +68,7 @@ $this->phrasen['profil/profilfotoGesperrt']='Profile photo locked';
$this->phrasen['profil/profilfotoUploadGesperrt']='It is no longer possible to upload a profile photo';
$this->phrasen['profil/fhausweisStatus']='UAS ID card status';
$this->phrasen['profil/fhausweisWurdeBereitsAusgegeben']='UAS ID card has already been issued on %s.';
$this->phrasen['profil/fhAusweisStatusKeine']='The FH ID card has not been issued yet.';
$this->phrasen['profil/ladenSieBitteEinGueltigesFotoHoch']='Please upload a valid photo';
$this->phrasen['profil/fotoWurdeNochNichtAkzeptiert']='Photo has not yet been accepted';
$this->phrasen['profil/fhausweisGedrucktAm']='UAS ID card printed on';
+1
View File
@@ -21,6 +21,7 @@ $this->phrasen['profil/fhausweisAbholbereitAmEmpfangAb']='';
$this->phrasen['profil/fhausweisGedrucktAm']='';
$this->phrasen['profil/fhausweisStatus']='';
$this->phrasen['profil/fhausweisWurdeBereitsAusgegeben']='Tesserino consegnato il %s.';
$this->phrasen['profil/fhAusweisStatusKeine']='Der FH-Ausweis wurde noch nicht ausgestellt.';
$this->phrasen['profil/fhausweisWurdeNochNichtGedruckt']='';
$this->phrasen['profil/fotoAuswählen']='';
$this->phrasen['profil/fotofreigeben']='';
@@ -2,15 +2,16 @@ export default {
props: {
data: {
type: String,
}
},
},
data() {
return {}
return {};
},
template: /*html*/`
template: /*html*/ `
<div class="card">
<div class="card-body">
<span >{{$p.t('profil','fhAusweisStatus',[data])}}</span>
<span v-if="data">{{$p.t('profil','fhAusweisStatus',[data])}}</span>
<span v-else>{{$p.t('profil','fhAusweisStatusKeine')}}</span>
</div>
</div>`,
}
};
+20
View File
@@ -29363,6 +29363,26 @@ array(
)
)
),
array(
'app' => 'core',
'category' => 'profil',
'phrase' => 'fhAusweisStatusKeine',
'insertvon' => 'system',
'phrases' => array(
array(
'sprache' => 'German',
'text' => 'Der FH Ausweis wurde noch nicht ausgegeben.',
'description' => '',
'insertvon' => 'system'
),
array(
'sprache' => 'English',
'text' => 'The FH ID card has not been issued yet.',
'description' => '',
'insertvon' => 'system'
)
)
),
array(
'app' => 'core',
'category' => 'profil',