This commit is contained in:
KONE SOREL 2026-03-26 12:02:04 +00:00
parent 4c7dd823e8
commit 7bbd2e16e8
2 changed files with 38 additions and 3 deletions

View File

@ -33,6 +33,7 @@
{
$produit = $beneficiaire['produit'];
$naturepiece = $beneficiaire['naturepiece'];
$codeLienParente = $beneficiaire['codeLienParente'];
$lienparente = $beneficiaire['lienparente'];
$motifsortie = $beneficiaire['motifsortie'];
$etatbeneficiaire = $beneficiaire['etatbeneficiaire'];
@ -253,11 +254,45 @@
</div>
<div class="col-12 col-md-6">
<?php if($codeLienParente != "A"): ?>
<div class="mb-2">
<small class="text-muted"><?= _("Téléphone") ?></small>
<p class="fw-bold mb-0"><?= $beneficiaire['telephonePortable'] ?></p>
</div>
<?php else : ?>
<div class="mb-2">
<div class="d-flex justify-content-between align-items-center">
<label class="form-label fw-bold small text-uppercase">
<?= _("Téléphone Portable") ?>
</label>
<div class="form-check mb-1">
<input class="form-check-input" type="checkbox" id="ignorerFormat" name="ignorerFormat">
<label class="form-check-label small text-muted" for="ignorerFormat">
<?= est_anglophone() ? "Free format" : "Format libre"; ?>
</label>
</div>
</div>
<div class="input-group">
<span class="input-group-text bg-white text-muted"><i class="fas fa-mobile-alt"></i></span>
<input type="tel"
class="form-control"
id="telephonePortable"
name="telephonePortable"
placeholder="Ex:250700000001"
required
pattern="^250[0-9]{9,}$"
title="<?= est_anglophone() ? "The number must start with 250 and contain at least 12 digits." : "Le numéro doit commencer par 250 et comporter au moins 12 chiffres.";?>"
oninput="this.setCustomValidity('')"
oninvalid="validerMessageTelephone(this)"
value="<?= $beneficiaire['telephonePortable'] ?>">
</div>
<div id="aideTelephone" class="form-text text-muted small">
<i class="fas fa-info-circle"></i> <?= est_anglophone() ? 'Required format: 250XXXXXXXXX (min. 12 digits)' : 'Format requis : 250XXXXXXXXX (min. 12 chiffres)'; ?>
</div>
</div>
<?php endif; ?>
<div class="mb-2">
<small class="text-muted"><?= _("État") ?></small>
<?php if ($estcouvert) : ?>

View File

@ -360,13 +360,13 @@
<!-- Adhérent et bénéficiaire -->
<div class="mb-2">
<button class="btn btn-info btn-sm w-100 text-truncate" onclick="javascript:afficher_adherent_id();" id="numeroAdherent_C" NAME="numeroAdherent_C" title="<?= _("Voir les membres de famille")?>">
<button class="btn btn-info btn-sm w-100 text-truncate" onclick="javascript:afficher_adherent_id();" id="numeroAdherent_C" NAME="numeroAdherent_C">
<i class="fa-solid fa-users"></i> <?= _("Famille")." : ".$this->nettoyer($_SESSION['numeroAdherent_C']) ?>
</button>
</div>
<div class="mb-2">
<button class="btn btn-outline-secondary btn-sm w-100 text-truncate" onclick="javascript:afficher_adherent_id();" title="<?= _("Voir les membres de famille")?>">
<button class="btn btn-outline-secondary btn-sm w-100 text-truncate">
<?= substr($this->nettoyer($_SESSION['adherent_C']), 0, 25) ?>
</button>
</div>