df
This commit is contained in:
parent
df4157c4fa
commit
65f14dbb15
|
|
@ -1,63 +1,128 @@
|
|||
<form id="formData">
|
||||
<legend id="titre_formData"><?= _("Ajouter des données") ?></legend>
|
||||
<table class="table table-responsive table-condensed">
|
||||
<tbody>
|
||||
<tr>
|
||||
|
||||
<div class="card border-0 shadow-sm border-start border-4 border-primary">
|
||||
<div class="card-header bg-white py-3 border-bottom">
|
||||
<h6 class="mb-0 fw-bold text-uppercase text-success small" id="titre_formData">
|
||||
<i class="fas fa-plus-circle me-2"></i><?= _("Ajouter un point de vente") ?>
|
||||
</h6>
|
||||
</div>
|
||||
|
||||
<div class="card-body p-4">
|
||||
<form id="formData" class="container-fluid p-0">
|
||||
<div class="row g-3">
|
||||
|
||||
<div class="col-md-8">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase required"><?= _("Libellé") ?></label>
|
||||
<div class="input-group shadow-xs">
|
||||
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-store text-primary"></i></span>
|
||||
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold"
|
||||
id="libelle" name="libelle" required autocomplete="OFF">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
|
||||
<td colspan="2" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF"></td>
|
||||
|
||||
<td width="5%" align="center">Type</td>
|
||||
<td colspan="7%">
|
||||
<select name="codeTypePointVente" id="codeTypePointVente" class="form-select">
|
||||
<?= liste_options($typepointvente,'',false) ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td width="5%" align="center">Email</td>
|
||||
<td colspan="2" ><INPUT class="form-control" TYPE="tel" id="email" NAME="email"></td>
|
||||
|
||||
<td width="5%" align="center"><?= _("Téléphone") ?></td>
|
||||
<td colspan="7%"><INPUT class="form-control" TYPE="telephone" id="telephone" NAME="telephone"></td>
|
||||
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5%" align="center">Adr. Post.</td>
|
||||
<td colspan="2" ><INPUT class="form-control" TYPE="text" id="adressePost" NAME="adressePost" value=" "></td>
|
||||
|
||||
<td width="5%" align="center">Adr. Géo.</td>
|
||||
<td colspan="5" ><INPUT class="form-control" TYPE="text" id="adresseGeo" NAME="adresseGeo"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5%" align="center">Pays</td>
|
||||
<td colspan="2">
|
||||
<select name="codePays" id="codePays" class="form-select" onchange="JAVASCRIPT:filtreVilleParPays();">
|
||||
<?= liste_options($pays,'',false) ?>
|
||||
</select>
|
||||
</td>
|
||||
|
||||
<td width="5%" align="center">Ville</td>
|
||||
<td colspan="2">
|
||||
<div id="div_ville">
|
||||
<select name="codeVille" id="codeVille" class="form-select">
|
||||
<?= liste_options($ville,'',false) ?>
|
||||
<div class="col-md-4">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase">Type</label>
|
||||
<select name="codeTypePointVente" id="codeTypePointVente" class="selectpicker form-control border-2 shadow-xs" data-container="body">
|
||||
<?= liste_options($typepointvente, '', false) ?>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td width="5%" align="center">Localite</td>
|
||||
<td width="20%">
|
||||
<div id="div_localite">
|
||||
<select name="codeLocalite" id="codeLocalite" class="form-select">
|
||||
<?= liste_options($localite,'',false) ?>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase">Email</label>
|
||||
<div class="input-group shadow-xs">
|
||||
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-envelope text-muted"></i></span>
|
||||
<input type="email" class="form-control border-2 border-start-0" id="email" name="email">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase"><?= _("Téléphone") ?></label>
|
||||
<div class="input-group shadow-xs">
|
||||
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-phone text-muted"></i></span>
|
||||
<input type="tel" class="form-control border-2 border-start-0" id="telephone" name="telephone">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase"><?= _("Adresse Postale") ?></label>
|
||||
<div class="input-group shadow-xs">
|
||||
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-signs text-muted"></i></span>
|
||||
<input type="text" class="form-control border-2 border-start-0 majuscule" id="adressePost" name="adressePost">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-8">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase"><?= _("Adresse Géographique") ?></label>
|
||||
<div class="input-group shadow-xs">
|
||||
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-marker-alt text-muted"></i></span>
|
||||
<input type="text" class="form-control border-2 border-start-0 majuscule" id="adresseGeo" name="adresseGeo">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase"><?= _("Pays") ?></label>
|
||||
<select name="codePays" id="codePays" class="selectpicker form-control border-2 shadow-xs"
|
||||
data-live-search="true" data-container="body" onchange="filtreVilleParPays();">
|
||||
<?= liste_options($pays, '', false) ?>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase"><?= _("Région") ?></label>
|
||||
<div id="div_ville">
|
||||
<select name="codeVille" id="codeVille" class="selectpicker form-control border-2 shadow-xs"
|
||||
data-live-search="true" data-container="body">
|
||||
<?= liste_options($ville, '', false) ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase"><?= _("Ville") ?></label>
|
||||
<div id="div_localite">
|
||||
<select name="codeLocalite" id="codeLocalite" class="selectpicker form-control border-2 shadow-xs"
|
||||
data-live-search="true" data-container="body">
|
||||
<?= liste_options($localite, '', false) ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
// Initialisation Standard des SelectPickers
|
||||
$('.selectpicker').selectpicker();
|
||||
|
||||
// Focus UX Neutral Pro
|
||||
setTimeout(function() {
|
||||
$('#libelle').focus();
|
||||
}, 200);
|
||||
});
|
||||
|
||||
/**
|
||||
* Exemple de fonction de mise à jour dynamique respectant le protocole
|
||||
* (A adapter selon votre logique de chargement de div_ville/div_localite)
|
||||
*/
|
||||
function actualiserSelectsGeographiques() {
|
||||
// Après avoir injecté le nouveau HTML dans div_ville ou div_localite
|
||||
// Il faut détruire et ré-init le plugin
|
||||
$('.selectpicker').selectpicker('destroy').selectpicker();
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.border-primary { border-color: #212e53 !important; }
|
||||
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
|
||||
.form-control.border-2 { border-width: 2px !important; }
|
||||
.input-group-text.border-2 { border-width: 2px !important; }
|
||||
.majuscule { text-transform: uppercase; }
|
||||
.required:after { content: " *"; color: #dc3545; font-weight: bold; }
|
||||
|
||||
/* Harmonisation SelectPicker */
|
||||
.bootstrap-select > .dropdown-toggle {
|
||||
border-width: 2px !important;
|
||||
height: 38px !important;
|
||||
background-color: #fff !important;
|
||||
}
|
||||
</style>
|
||||
|
|
@ -1,88 +1,85 @@
|
|||
<?php
|
||||
$nbreTotal = count($pointvente);
|
||||
|
||||
if($nbreTotal < 10){
|
||||
$nbreTotal = '0'.$nbreTotal;
|
||||
}else{
|
||||
$nbreTotal = format_N($nbreTotal);
|
||||
}
|
||||
|
||||
if (est_anglophone()){
|
||||
if($existeselection){
|
||||
$libbouton = "Uncheck all";
|
||||
}else{
|
||||
$libbouton = "Check all";
|
||||
}
|
||||
}else{
|
||||
if($existeselection){
|
||||
$libbouton = "Décocher tous";
|
||||
}else{
|
||||
$libbouton = "Cocher tous";
|
||||
}
|
||||
}
|
||||
<?php
|
||||
// Préparation du compteur Standard
|
||||
$nbreTotal = count($pointvente);
|
||||
?>
|
||||
|
||||
<?php $superUser = $_SESSION['superUser']; ?>
|
||||
<div class="card border-0 shadow-sm overflow-hidden">
|
||||
<div class="card-header bg-white py-3 border-bottom d-flex justify-content-between align-items-center">
|
||||
<div class="d-flex align-items-center">
|
||||
<h6 class="mb-0 fw-bold text-uppercase text-primary small">
|
||||
<i class="fas fa-store me-2"></i><?= _("Liste des Points de Vente") ?>
|
||||
</h6>
|
||||
<span class="badge bg-primary-ghost text-primary ms-3 px-3 py-2 rounded-pill fw-bold" id="badge-total">
|
||||
<?= $nbreTotal ?> <?= _("Lignes") ?>
|
||||
</span>
|
||||
</div>
|
||||
<div id="table-buttons" class="d-flex gap-2"></div>
|
||||
</div>
|
||||
|
||||
<table style="margin: auto" class="table-responsive">
|
||||
<tbody>
|
||||
<td><input class="form-control" style="text-align: center; font-size:10pt;" type="text" id="nbreTotal" name="nbreTotal" value="<?= _("Lignes Total").": ". $nbreTotal; ?>" readonly> </td>
|
||||
</tbody>
|
||||
</table>
|
||||
<input type="hidden" id="total" value="<?= $nbreTotal; ?>">
|
||||
<table id="tableLister" class="table table-striped table-bordered table-hover table-condensed table-responsive">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center"><?= _("Centre gestion") ?></th>
|
||||
<th class="text-center">Code</th>
|
||||
<th class="text-center"><?= _("Libellé") ?></th>
|
||||
<th class="text-center"><?= _("Téléphone") ?></th>
|
||||
<th class="text-center">Email</th>
|
||||
<!--
|
||||
<th class="text-center">
|
||||
<button type="button" style="font-size:10pt; font-weight: bold; width:100%; background-color:#4caf50; color: white;" class="form-control btn" onclick="javascript:cocherDecocherTout($('#fichier_lister').val());" > <?= $libbouton; ?> </button>
|
||||
</th>
|
||||
-->
|
||||
<th class="text-center"><?= _("Modifier") ?></th>
|
||||
<!--
|
||||
<th class="text-center">Supprimer</th>
|
||||
-->
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($pointvente as $v):
|
||||
$idData = $this->nettoyer($v['id']);
|
||||
?>
|
||||
<tr valign="top">
|
||||
<td class="text-center" width="5%"><?= $this->nettoyer($v['codeSociete']);; ?>
|
||||
<td class="text-center" width="10%"><?= $this->nettoyer($v['codePointVente']) ?></td>
|
||||
<td class="text-left" width="30%"><?= $this->nettoyer($v['libelle'])?></td>
|
||||
<td class="text-left" width="20%"><?= $this->nettoyer($v['telephone']) ?></td>
|
||||
<td class="text-left" width="20%"><?= $this->nettoyer($v['email']) ?></td>
|
||||
<!--
|
||||
<td class="text-center" width="10%">
|
||||
<?php
|
||||
if($this->nettoyer($v['choix'] == '0')){
|
||||
$check ='';
|
||||
}
|
||||
else{
|
||||
$check = 'checked';
|
||||
}
|
||||
?>
|
||||
<INPUT TYPE="checkbox" class="custom-control-input" style="width: 2rem;height: 2rem;" id="choix" NAME="choix" value="<?=(($this->nettoyer($v['choix'])==0)? 0 : 1);?>" onclick="if (this.checked) this.value=1; else this.value=0;cocherDecocherUn($('#fichier_lister').val(),<?= $idData; ?>);" <?= $check;?>>
|
||||
</td>
|
||||
-->
|
||||
<td class="text-center" width="10%">
|
||||
<button style="width:100%" class ="form-control btn btn-primary" type="button" id="btn-editer" name="Modifier"
|
||||
onclick="JAVASCRIPT:formModifTableRef(<?= $idData; ?>);" ><?= _("Modifier") ?></button>
|
||||
</td>
|
||||
<!--
|
||||
<td class="text-center" width="10%">
|
||||
<button style="width:100%" class = "form-control btn btn-danger" type="button" id="btn-supprimer" name="Supprimer"
|
||||
onclick="JAVASCRIPT:supprimeLigneListe(<?= $idData; ?>,'<?= $superUser; ?>')">Supprimer</button>
|
||||
</td>
|
||||
-->
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table id="tableLister" class="table table-hover align-middle mb-0" style="width:100%">
|
||||
<thead class="bg-light text-muted small text-uppercase">
|
||||
<tr>
|
||||
<th class="ps-4 border-0"><?= _("Centre") ?></th>
|
||||
<th class="border-0">Code</th>
|
||||
<th class="border-0"><?= _("Libellé") ?></th>
|
||||
<th class="border-0"><?= _("Téléphone") ?></th>
|
||||
<th class="border-0">Email</th>
|
||||
<th class="border-0 text-center pe-4"><?= _("Actions") ?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach ($pointvente as $v):
|
||||
$idData = $this->nettoyer($v['id']);
|
||||
?>
|
||||
<tr>
|
||||
<td class="ps-4 fw-medium text-muted small">
|
||||
<?= $this->nettoyer($v['codeSociete']) ?>
|
||||
</td>
|
||||
<td>
|
||||
<span class="badge bg-light text-dark border fw-bold px-2 py-1">
|
||||
<?= $this->nettoyer($v['codePointVente']) ?>
|
||||
</span>
|
||||
</td>
|
||||
<td class="fw-bold text-dark">
|
||||
<?= $this->nettoyer($v['libelle']) ?>
|
||||
</td>
|
||||
<td class="small">
|
||||
<i class="fas fa-phone-alt me-1 opacity-50"></i> <?= $this->nettoyer($v['telephone']) ?>
|
||||
</td>
|
||||
<td class="small text-muted">
|
||||
<i class="fas fa-envelope me-1 opacity-50"></i> <?= $this->nettoyer($v['email']) ?>
|
||||
</td>
|
||||
<td class="text-center pe-4">
|
||||
<button type="button"
|
||||
class="btn btn-outline-primary btn-sm px-3 rounded-pill fw-bold shadow-xs"
|
||||
onclick="formModifTableRef(<?= $idData; ?>);">
|
||||
<i class="fas fa-edit me-1"></i> <?= _("Modifier") ?>
|
||||
</button>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
// Initialisation Standard avec moteur d'export
|
||||
initDataTableReference('#tableLister', 'Liste_Points_Vente');
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/* Rappel des règles d'or Neutral Pro */
|
||||
#tableLister tbody td {
|
||||
height: 60px;
|
||||
border-bottom: 1px solid #f1f4f6;
|
||||
}
|
||||
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
|
||||
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
|
||||
.text-primary { color: #212e53 !important; }
|
||||
</style>
|
||||
|
|
@ -1,65 +1,134 @@
|
|||
<form id="formData">
|
||||
<legend id="titre_formData"><?= _("Modification des données") ?></legend>
|
||||
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$pointvente['id']?>">
|
||||
<table class="table table-responsive table-condensed">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td width="5%" align="center" >Code</td>
|
||||
<td colspan="2" ><INPUT class="form-control majuscule" TYPE="text" id="codePointVente" NAME="codePointVente" value="<?= $this->nettoyer($pointvente['codePointVente']); ?>" disabled></td>
|
||||
|
||||
<td width="5%" align="center" class="required"><?= _("Libellé") ?></td>
|
||||
<td colspan="3" ><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" value="<?= $this->nettoyer($pointvente['libelle']); ?>"></td>
|
||||
|
||||
<td width="5%" align="center">Type</td>
|
||||
<td width="20%">
|
||||
<select name="codeTypePointVente" id="codeTypePointVente" class="form-select">
|
||||
<?= liste_options($typepointvente,$this->nettoyer($pointvente['codeTypePointVente']),true) ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5%" align="center">E-mail</td>
|
||||
<td colspan="2" ><INPUT class="form-control" TYPE="tel" id="email" NAME="email" value="<?= $this->nettoyer($pointvente['email']); ?>"></td>
|
||||
|
||||
<td width="5%" align="center"><?= _("Téléphone") ?></td>
|
||||
<td colspan="3" ><INPUT class="form-control" TYPE="telephone" id="telephone" NAME="telephone" value="<?= $this->nettoyer($pointvente['telephone']); ?>"></td>
|
||||
|
||||
<td width="5%" align="center">Fax</td>
|
||||
<td width="20%" ><INPUT class="form-control" TYPE="fax" id="fax" NAME="fax" value="<?= $this->nettoyer($pointvente['fax']); ?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5%" align="center"><?= _("Adresse Postale") ?></td>
|
||||
<td colspan="2" ><INPUT class="form-control" TYPE="text" id="adressePost" NAME="adressePost" value="<?= $this->nettoyer($pointvente['adressePost']); ?>"></td>
|
||||
|
||||
<td width="5%" align="center"><?= _("Adresse Géo.") ?></td>
|
||||
<td colspan="5" ><INPUT class="form-control" TYPE="text" id="adresseGeo" NAME="adresseGeo" value="<?= $this->nettoyer($pointvente['adresseGeo']); ?>"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td width="5%" align="center"><?= _("Pays") ?></td>
|
||||
<td colspan="2">
|
||||
<select name="codePays" id="codePays" class="form-select" onchange="JAVASCRIPT:filtreVilleParPays();">
|
||||
<?= liste_options($pays,$this->nettoyer($pointvente['codePays']),true) ?>
|
||||
</select>
|
||||
</td>
|
||||
<div class="card border-0 shadow-sm border-start border-4 border-primary">
|
||||
<div class="card-header bg-white py-3 border-bottom">
|
||||
<h6 class="mb-0 fw-bold text-uppercase text-warning small" id="titre_formData">
|
||||
<i class="fas fa-edit me-2"></i><?= _("Modification des données du point de vente") ?>
|
||||
</h6>
|
||||
</div>
|
||||
|
||||
<div class="card-body p-4">
|
||||
<form id="formData" class="container-fluid p-0">
|
||||
<input type="hidden" id="id" name="id" value="<?= $this->nettoyer($pointvente['id']) ?>">
|
||||
|
||||
<td width="5%" align="center"><?= _("Région") ?></td>
|
||||
<td colspan="3">
|
||||
<div id="div_ville">
|
||||
<select name="codeVille" id="codeVille" class="form-select">
|
||||
<?= liste_options($ville,$this->nettoyer($pointvente['codeVille']),true) ?>
|
||||
<div class="row g-3">
|
||||
|
||||
<div class="col-md-2">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase">Code</label>
|
||||
<div class="input-group shadow-xs">
|
||||
<span class="input-group-text bg-light border-2 border-end-0"><i class="fas fa-lock text-muted"></i></span>
|
||||
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold bg-light"
|
||||
id="codePointVente" name="codePointVente" value="<?= $this->nettoyer($pointvente['codePointVente']); ?>" disabled>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-7">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase required"><?= _("Libellé") ?></label>
|
||||
<div class="input-group shadow-xs">
|
||||
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-store text-primary"></i></span>
|
||||
<input type="text" class="form-control border-2 border-start-0 majuscule fw-bold"
|
||||
id="libelle" name="libelle" required autocomplete="OFF"
|
||||
value="<?= $this->nettoyer($pointvente['libelle']); ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-3">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase">Type</label>
|
||||
<select name="codeTypePointVente" id="codeTypePointVente" class="selectpicker form-control border-2 shadow-xs" data-container="body">
|
||||
<?= liste_options($typepointvente, $this->nettoyer($pointvente['codeTypePointVente']), true) ?>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
<td width="5%" align="center"><?= _("Ville") ?></td>
|
||||
<td width="20%">
|
||||
<div id="div_localite">
|
||||
<select name="codeLocalite" id="codeLocalite" class="form-select">
|
||||
<?= liste_options($localite,$this->nettoyer($pointvente['codeLocalite']),true) ?>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase">E-mail</label>
|
||||
<div class="input-group shadow-xs">
|
||||
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-envelope text-muted"></i></span>
|
||||
<input type="email" class="form-control border-2 border-start-0" id="email" name="email"
|
||||
value="<?= $this->nettoyer($pointvente['email']); ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase"><?= _("Téléphone") ?></label>
|
||||
<div class="input-group shadow-xs">
|
||||
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-phone text-muted"></i></span>
|
||||
<input type="tel" class="form-control border-2 border-start-0" id="telephone" name="telephone"
|
||||
value="<?= $this->nettoyer($pointvente['telephone']); ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase"><?= _("Adresse Postale") ?></label>
|
||||
<div class="input-group shadow-xs">
|
||||
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-signs text-muted"></i></span>
|
||||
<input type="text" class="form-control border-2 border-start-0 majuscule" id="adressePost" name="adressePost"
|
||||
value="<?= $this->nettoyer($pointvente['adressePost']); ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-8">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase"><?= _("Adresse Géographique") ?></label>
|
||||
<div class="input-group shadow-xs">
|
||||
<span class="input-group-text bg-white border-2 border-end-0"><i class="fas fa-map-marker-alt text-muted"></i></span>
|
||||
<input type="text" class="form-control border-2 border-start-0 majuscule" id="adresseGeo" name="adresseGeo"
|
||||
value="<?= $this->nettoyer($pointvente['adresseGeo']); ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase"><?= _("Pays") ?></label>
|
||||
<select name="codePays" id="codePays" class="selectpicker form-control border-2 shadow-xs"
|
||||
data-live-search="true" data-container="body" onchange="filtreVilleParPays();">
|
||||
<?= liste_options($pays, $this->nettoyer($pointvente['codePays']), true) ?>
|
||||
</select>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase"><?= _("Région") ?></label>
|
||||
<div id="div_ville">
|
||||
<select name="codeVille" id="codeVille" class="selectpicker form-control border-2 shadow-xs"
|
||||
data-live-search="true" data-container="body">
|
||||
<?= liste_options($ville, $this->nettoyer($pointvente['codeVille']), true) ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-4">
|
||||
<label class="form-label fw-bold text-muted small text-uppercase"><?= _("Ville") ?></label>
|
||||
<div id="div_localite">
|
||||
<select name="codeLocalite" id="codeLocalite" class="selectpicker form-control border-2 shadow-xs"
|
||||
data-live-search="true" data-container="body">
|
||||
<?= liste_options($localite, $this->nettoyer($pointvente['codeLocalite']), true) ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
// Initialisation SelectPicker
|
||||
$('.selectpicker').selectpicker();
|
||||
|
||||
// Règle d'Or Neutral Pro : Focus différé de 200ms
|
||||
setTimeout(function() {
|
||||
$('#libelle').focus();
|
||||
}, 200);
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/* Intégration identité Neutral Pro */
|
||||
.border-primary { border-color: #212e53 !important; }
|
||||
.shadow-xs { box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
|
||||
.form-control.border-2, .input-group-text.border-2 { border-width: 2px !important; }
|
||||
.majuscule { text-transform: uppercase; }
|
||||
.required:after { content: " *"; color: #dc3545; font-weight: bold; }
|
||||
|
||||
/* Style spécifique SelectPicker pour cohérence 2px */
|
||||
.bootstrap-select > .dropdown-toggle {
|
||||
border-width: 2px !important;
|
||||
height: 38px !important;
|
||||
background-color: #fff !important;
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in New Issue
Block a user