154 lines
8.5 KiB
PHP
Executable File
154 lines
8.5 KiB
PHP
Executable File
<?php
|
|
$archiver = $this->nettoyer($bareme['archiver']);
|
|
$superUser = $_SESSION['superUser'];
|
|
$idBareme = $this->nettoyer($bareme['id']);
|
|
$isAnglais = est_anglophone();
|
|
?>
|
|
|
|
<div class="page-content animate__animated animate__fadeIn">
|
|
<div class="header-section mb-1">
|
|
<div class="d-flex align-items-center justify-content-between bg-white p-3 shadow-sm border-start border-warning border-4" style="border-radius: var(--radius-md);">
|
|
<div class="d-flex align-items-center">
|
|
<div class="icon-shape bg-warning-ghost text-warning rounded-circle me-3" style="width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;">
|
|
<i class="fas fa-edit fs-4"></i>
|
|
</div>
|
|
<div>
|
|
<h4 class="mb-0 fw-bold text-uppercase text-warning"><?= _("Modifier le barème modèle") ?></h4>
|
|
<p class="text-muted small mb-0"><?= _("ID système :") ?> <span class="fw-bold"><?= $idBareme ?></span></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex gap-2">
|
|
<button type="button" class="btn btn-light border rounded-pill px-3 fw-bold shadow-xs" onclick="retour_liste_bareme();">
|
|
<?= _("Fermer") ?>
|
|
</button>
|
|
|
|
<button type="button" class="btn btn-warning rounded-pill px-4 fw-bold shadow-sm" onclick="modifier_bareme();">
|
|
<i class="fas fa-save me-1"></i> <?= _("Mettre à jour le barème") ?>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<input type="hidden" id="idBaremePriseEnCharge" name="idBaremePriseEnCharge" value="<?= $idBareme ?>">
|
|
<input type="hidden" id="nomForm" name="nomForm" value="frmmodifierbareme">
|
|
<input type="hidden" id="codeGcAssureur" name="codeGcAssureur" value="<?= $this->nettoyer($bareme['codeGcAssureur']);?>">
|
|
<input type="hidden" id="codeProduit" name="codeProduit" value="<?= $this->nettoyer($bareme['codeProduit']);?>">
|
|
|
|
<div class="row g-4">
|
|
<div class="col-12">
|
|
<div class="card border-0 shadow-sm opacity-75">
|
|
<div class="card-header bg-light-subtle py-2">
|
|
<h6 class="mb-0 fw-bold text-muted small text-uppercase"><i class="fas fa-history me-2"></i><?= _("Valeurs actuelles de référence") ?></h6>
|
|
</div>
|
|
<div class="card-body bg-light-subtle">
|
|
<div class="row g-3">
|
|
<div class="col-md-4">
|
|
<label class="form-label small text-muted"><?= _("Garant") ?></label>
|
|
<input type="text" class="form-control form-control-sm border-0 bg-white fw-bold" value="<?= $this->nettoyer($bareme['garant']) ?>" disabled>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<label class="form-label small text-muted"><?= _("Produit") ?></label>
|
|
<input type="text" class="form-control form-control-sm border-0 bg-white fw-bold" value="<?= $this->nettoyer($bareme['produit']) ?>" disabled>
|
|
</div>
|
|
<div class="col-md-4">
|
|
<label class="form-label small text-muted"><?= _("Libellé actuel") ?></label>
|
|
<input type="text" class="form-control form-control-sm border-0 bg-white" value="<?= $this->nettoyer($bareme['libelle']) ?>" disabled>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-12">
|
|
<div class="card border-0 shadow-sm border-top border-warning border-4">
|
|
<div class="card-body p-4">
|
|
<div class="row g-4 mb-4 bg-primary-ghost rounded-3 p-3">
|
|
<div class="col-md-3">
|
|
<label class="form-label small fw-bold text-muted text-uppercase required"><?= _("Taux Couverture") ?></label>
|
|
<select name="idTauxCouverture" id="idTauxCouverture" class="selectpicker form-control border-2" required
|
|
onchange="libelleTauxBareme(this); majTicketModerateur();">
|
|
<?= liste_options($taux, $this->nettoyer($bareme['idTauxCouverture']), true) ?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
<label class="form-label small fw-bold text-muted text-uppercase required"><?= _("Territoire") ?></label>
|
|
<select name="codeTerritoire" id="codeTerritoire" class="selectpicker form-control border-2" data-live-search="true"
|
|
onchange="libelleTerritoireBareme(this.value);" required>
|
|
<?= liste_options($territoire, $this->nettoyer($bareme['codeTerritoire']), true) ?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="col-md-5">
|
|
<label class="form-label small fw-bold text-muted text-uppercase"><?= _("Souscripteur") ?></label>
|
|
<div id="div_souscripteur">
|
|
<select name="numeroClient" id="numeroClient" class="selectpicker form-control border-2" data-live-search="true"
|
|
onchange="libelleClientBareme(this);">
|
|
<?= liste_options($clients, $this->nettoyer($bareme['numeroClient']), false) ?>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row g-3">
|
|
<div class="col-md-12 mb-3">
|
|
<label class="form-label small fw-bold text-muted text-uppercase required"><?= _("Libellé du barème") ?></label>
|
|
<div class="input-group">
|
|
<span class="input-group-text bg-white border-2 border-end-0 text-primary"><i class="fas fa-tag"></i></span>
|
|
<input class="form-control border-2 border-start-0 shadow-none fw-bold majuscule" type="text" id="libelle" name="libelle" value="<?= $this->nettoyer($bareme['libelle']) ?>">
|
|
</div>
|
|
</div>
|
|
<div class="col-md-12">
|
|
<label class="form-label small fw-bold text-muted text-uppercase"><?= _("Observations / Notes") ?></label>
|
|
<div class="input-group">
|
|
<span class="input-group-text bg-white border-2 border-end-0 text-muted"><i class="fas fa-comment-dots"></i></span>
|
|
<textarea class="form-control border-2 border-start-0 shadow-none majuscule" id="observationBareme" name="observationBareme" rows="2"><?= $this->nettoyer($bareme['observationBareme']) ?></textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
/* Spécificités Neutral Pro Édition */
|
|
.bg-warning-ghost { background-color: rgba(255, 193, 7, 0.1); }
|
|
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.05); }
|
|
.btn-warning-light { background-color: rgba(255, 193, 7, 0.1); border: 1px solid rgba(255, 193, 7, 0.2); color: #856404; }
|
|
|
|
.sticky-top { top: 10px; z-index: 1020; }
|
|
|
|
/* Harmonisation SelectPicker */
|
|
.bootstrap-select .btn.dropdown-toggle {
|
|
height: 42px !important;
|
|
border-width: 2px !important;
|
|
background-color: #fff !important;
|
|
font-weight: 600 !important;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", function() {
|
|
// Initialisation des composants dynamiques
|
|
actualiserSelectPicker('.selectpicker');
|
|
|
|
// Initialisation de l'état du libellé pour les modifications futures
|
|
if (typeof tab !== 'undefined') {
|
|
tab["libelle"] = "BAREME";
|
|
tab["taux"] = $("#idTauxCouverture option:selected").text();
|
|
tab["territoire"] = $("#codeTerritoire").val();
|
|
tab["client"] = $("#numeroClient option:selected").text();
|
|
tab["produit"] = "<?= $this->nettoyer($bareme['produit']) ?>";
|
|
}
|
|
});
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|