valide
This commit is contained in:
parent
03da64c6a9
commit
16fedc1fc6
|
|
@ -88533,25 +88533,19 @@ function filtreproduitexclusion(){
|
|||
|
||||
}
|
||||
|
||||
function modifier_lien_parente(idLien)
|
||||
{
|
||||
donnees = 'idLien='+idLien;
|
||||
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val()+"Ajaxparamlienparente/",
|
||||
type : 'post',
|
||||
data: donnees,
|
||||
error: function(errorData) {
|
||||
},
|
||||
success: function(data)
|
||||
{
|
||||
donnees_retour = data;
|
||||
},
|
||||
complete: function()
|
||||
{
|
||||
$('#div_maj_lien').html(donnees_retour);
|
||||
}
|
||||
});
|
||||
function modifier_lien_parente(idLien) {
|
||||
let donnees = 'idLien=' + idLien;
|
||||
$.ajax({
|
||||
url: $("#racineWeb").val() + "Ajaxparamlienparente/",
|
||||
type: 'post',
|
||||
data: donnees,
|
||||
success: function(data) {
|
||||
$('#div_maj_lien').html(data);
|
||||
// Déclenchement de la modale
|
||||
var myModal = new bootstrap.Modal(document.getElementById('div_maj_lien'));
|
||||
myModal.show();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function enregistrer_modif_lien_parente()
|
||||
|
|
|
|||
|
|
@ -1,48 +1,69 @@
|
|||
<?php
|
||||
|
||||
$libelle = $this->nettoyer($lienparente['libelle']);
|
||||
$enVigueur = $this->nettoyer($lienparente['enVigueur']);
|
||||
|
||||
$actif = ($enVigueur == "1") ? "Oui" : "Non";
|
||||
|
||||
if (est_anglophone()){
|
||||
$libelle = $this->nettoyer($lienparente['libelleEng']);
|
||||
$actif = ($enVigueur == "1") ? "Yes" : "No";
|
||||
}
|
||||
|
||||
$libelle = $this->nettoyer($lienparente['libelle']);
|
||||
$enVigueur = $this->nettoyer($lienparente['enVigueur']);
|
||||
if (est_anglophone()){
|
||||
$libelle = $this->nettoyer($lienparente['libelleEng']);
|
||||
}
|
||||
$isActif = ($enVigueur == "1");
|
||||
?>
|
||||
|
||||
<?php if($enVigueur == "1"):?>
|
||||
<legend> <?= _("DESACTIVATION DU LIEN DE PARENTE") ?> </legend>
|
||||
<?php else: ?>
|
||||
<legend> <?= _("ACTIVATION DU LIEN DE PARENTE") ?> </legend>
|
||||
<?php endif; ?>
|
||||
<div class="modal-dialog modal-dialog-centered shadow-lg">
|
||||
<div class="modal-content border-0" style="border-radius: var(--radius-md); overflow: hidden;">
|
||||
|
||||
<div class="modal-header border-0 pb-3 pt-4 px-4 border-start border-5 <?= $isActif ? 'border-danger' : 'border-success' ?>"
|
||||
style="background-color: #212e53; display: flex; align-items: center; justify-content: space-between;">
|
||||
|
||||
<div class="d-flex align-items-center">
|
||||
<div class="icon-shape <?= $isActif ? 'bg-danger' : 'bg-success' ?> text-white rounded-circle me-3" style="width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.3);">
|
||||
<i class="fas <?= $isActif ? 'fa-power-off' : 'fa-check-circle' ?>"></i>
|
||||
</div>
|
||||
<div>
|
||||
<h5 class="modal-title fw-bold text-uppercase mb-0" style="color: #ffffff !important; letter-spacing: -0.5px; font-size: 1.1rem;">
|
||||
<?= $isActif ? _("Désactivation du lien") : _("Activation du lien") ?>
|
||||
</h5>
|
||||
<small style="color: rgba(255,255,255,0.7);"><?= $libelle ?></small>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="btn p-2 border-0 shadow-none d-flex align-items-center justify-content-center"
|
||||
data-bs-dismiss="modal" aria-label="Close" style="background: transparent;">
|
||||
<i class="fas fa-times text-white fs-4"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<input class="sr-only" type="text" id="idLien" name="idLien" value="<?= $this->nettoyer($lienparente['id']) ?>">
|
||||
<div class="modal-body p-4">
|
||||
<input class="sr-only" type="text" id="idLien" name="idLien" value="<?= $this->nettoyer($lienparente['id']) ?>">
|
||||
|
||||
<table class="table table-responsive table-condensed" style="font-size:10pt;">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td "5%" align="center" > <?= _("Code") ?> </td>
|
||||
<td width="5%"> <INPUT style="font-size:10pt; text-align:center;" class="form-control" TYPE="text" value="<?= $this->nettoyer($lienparente['codeLienParente']) ?>" disabled ></td>
|
||||
<div class="row g-3 mb-4">
|
||||
<div class="col-4">
|
||||
<label class="form-label small fw-bold text-muted text-uppercase" style="font-size: 0.65rem;"><?= _("Code") ?></label>
|
||||
<div class="p-2 bg-light border rounded text-center fw-bold text-dark"><?= $this->nettoyer($lienparente['codeLienParente']) ?></div>
|
||||
</div>
|
||||
<div class="col-8">
|
||||
<label class="form-label small fw-bold text-muted text-uppercase" style="font-size: 0.65rem;"><?= _("Désignation") ?></label>
|
||||
<div class="p-2 bg-light border rounded fw-medium text-dark"><?= $libelle ?></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<td width="8%" align="center" > <?= _("Désignation") ?> </td>
|
||||
<td> <INPUT style="font-size:10pt; text-align:center" class="form-control" TYPE="text" value="<?= $libelle ?>" disabled></td>
|
||||
|
||||
<td align="center" > <?= _("Actif") ?> </td>
|
||||
<td>
|
||||
<SELECT style="font-size:10pt; text-align:center;" class="form-select" id="enVigueur" NAME="enVigueur" autofocus>
|
||||
<?php liste_options($enVigueurOuiNon, $lienparente['enVigueur'],true); ?>
|
||||
</SELECT>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td colspan="6">
|
||||
<input style="font-size:10pt;" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>"
|
||||
onClick="javascript:enregistrer_modif_lien_parente();">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="form-group">
|
||||
<label class="form-label small fw-bold text-dark required"><?= _("Définir le nouveau statut") ?></label>
|
||||
<div class="input-group input-group-lg">
|
||||
<span class="input-group-text bg-white border-end-0 text-muted"><i class="fas fa-toggle-on"></i></span>
|
||||
<select class="form-select fw-bold border-start-0 shadow-none border-primary" id="enVigueur" name="enVigueur" autofocus>
|
||||
<?php liste_options($enVigueurOuiNon, $lienparente['enVigueur'], true); ?>
|
||||
</select>
|
||||
</div>
|
||||
<p class="text-muted small mt-2 mb-0">
|
||||
<i class="fas fa-info-circle me-1"></i>
|
||||
<?= _("Cette action prendra effet immédiatement sur tous les futurs dossiers.") ?>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer border-0 bg-light p-3">
|
||||
<button type="button" class="btn btn-outline-secondary btn-sm px-3 fw-bold border-2" data-bs-dismiss="modal"><?= _("Annuler") ?></button>
|
||||
<button type="button" class="btn btn-primary btn-sm px-4 fw-bold shadow-sm" onclick="javascript:enregistrer_modif_lien_parente();">
|
||||
<i class="fas fa-save me-1"></i> <?= _("Enregistrer les changements") ?>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -1,4 +1,3 @@
|
|||
<?php $this->titre = "INTER SANTE - " . _("Liens de Parenté"); ?>
|
||||
|
||||
<div class="page-content">
|
||||
<div class="header-section mb-4">
|
||||
|
|
@ -21,17 +20,17 @@
|
|||
</div>
|
||||
|
||||
<div class="card border-0 shadow-sm overflow-hidden" style="border-radius: var(--radius-md);">
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="bg-light text-muted small text-uppercase">
|
||||
<tr>
|
||||
<th width="15%" class="ps-4 border-0 text-center"><?= _("Code") ?></th>
|
||||
<th class="border-0"><?= _("Désignation") ?></th>
|
||||
<th width="20%" class="border-0 text-center"><?= _("Statut Actif") ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="bg-light text-muted small text-uppercase">
|
||||
<tr>
|
||||
<th width="15%" class="ps-4 border-0 text-center"><?= _("Code") ?></th>
|
||||
<th class="border-0"><?= _("Désignation") ?></th>
|
||||
<th width="20%" class="border-0 text-center"><?= _("Statut Actif") ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($liensparente as $v):
|
||||
$idLien = $this->nettoyer($v['id']);
|
||||
$codeLienParente = $this->nettoyer($v['codeLienParente']);
|
||||
|
|
@ -74,12 +73,17 @@
|
|||
</div>
|
||||
</div>
|
||||
<!-- Pied de carte -->
|
||||
<div class="card-footer bg-white border-top-0 px-4 py-2 d-flex justify-content-between align-items-center">
|
||||
<span class="text-muted small">
|
||||
<i class="fa fa-info-circle me-1 text-info"></i>
|
||||
<?= _("Les liens marqués en vert sont des liens système non modifiables.") ?>
|
||||
</span>
|
||||
<span class="text-muted small" id="footer-count"></span>
|
||||
<div class="card-footer bg-light border-top border-2 px-4 py-3 d-flex align-items-center justify-content-between" style="border-color: #f1f4f6 !important;">
|
||||
<div class="d-flex align-items-center text-muted small">
|
||||
<div class="icon-shape bg-info-ghost text-info rounded-circle me-3" style="width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;">
|
||||
<i class="fas fa-shield-alt"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="fw-bold text-dark d-block"><?= _("Sécurité du système") ?></span>
|
||||
<?= _("Les codes (A, C, E) sont protégés pour garantir l'intégrité des calculs de cotisations. Les autres liens sont paramétrables selon vos besoins.") ?>
|
||||
</div>
|
||||
</div>
|
||||
<div id="footer-count" class="badge bg-white text-primary border px-3 py-2 rounded-pill shadow-xs"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user