modifications mineures de style (avoir les selects des en-têtes qui font 100% de la colonne)

feat: pour les cellules où les crayons sont branchés sur une table annexe (= différente de la table principale qui fournit l'id de la ligne), utiliser la valeur du champ crayons pour transmettre l'id de la table annexe à éditer. Ce qui donne :
crayons : { nom_du_champ : id_table_annexe }

fix: avant de tester si l.crayons[name] existe tester si l.crayons est défini...
This commit is contained in:
cy_altern 2022-12-25 20:20:20 +01:00 committed by tofulm
parent 1bbbd7b18b
commit 4a0ffef53e
6 changed files with 48 additions and 158 deletions

View file

@ -39,6 +39,10 @@ div.vue-input > input {
color: inherit;
}
th .vue-select {
width: 100%;
}
.gamutable--surTable select,
.gamutable--surTable input {
margin-bottom: 0;
@ -146,14 +150,15 @@ td.icone > * {
text-align: center;
}
div.gamutable .url_action {
.gamutable .url_action {
padding: 0.2rem;
display: inline-block;
display: -ms-inline-flexbox;
display: inline-flex;
background-color: #f5f5f5;
border: 1px solid #cecece;
border-radius: 5px;
}
div.gamutable .url_action:hover {
.gamutable .url_action:hover {
background-color: #cecece;
}

File diff suppressed because one or more lines are too long

View file

@ -27,6 +27,9 @@ div.vue-input > input {
background-color: transparent;
color: inherit;
}
th .vue-select {
width: 100%;
}
// ----------------------------
// Fin de la surcharge de vue-next-select
// ----------------------------
@ -132,9 +135,9 @@ td.icone > * {
padding: 0.5rem;
text-align: center;
}
div.gamutable .url_action {
.gamutable .url_action {
padding: 0.2rem;
display: inline-block;
display: inline-flex;
background-color: #f5f5f5;
border: 1px solid #cecece;
border-radius: 5px;

View file

@ -969,7 +969,7 @@ let monTableau = {
</thead>
<tbody>
<tr v-for="l in tableau" :key="l.html.id" :class="selectTr.indexOf(l.html.id) !== -1 ? 'select' : ''" >
<td v-for="(td,name, i) in l.html" :key="'td_'+i" :class="[afficher_crayons(name,l.html.id), name, classes[name], l.classes !== undefined ? l.classes[name] : '']" @click="selectLigne(l.html.id,name)">
<td v-for="(td,name, i) in l.html" :key="'td_'+i" :class="[afficher_crayons(name, l.crayons !== undefined && l.crayons[name] !== undefined ? l.crayons[name] : l.html.id), name, classes[name], l.classes !== undefined ? l.classes[name] : '']" @click="selectLigne(l.html.id,name)">
<div v-if="checkbox[name] !== undefined">
<label v-if="td.split('-')[0] === 'dataid'">
<input type='checkbox' v-model='Tcheckbox[name]' :value="td.split('-')[1]">

File diff suppressed because one or more lines are too long

View file

@ -1,7 +1,7 @@
<paquet
prefix="gamutable"
categorie="outil"
version="3.7.4"
version="3.7.5"
etat="dev"
compatibilite="[3.2.0-dev;4.1.*]"
logo="prive/themes/spip/images/gamutable-xx.svg"