Skip to content
Extraits de code Groupes Projets
Valider 2a722edb rédigé par nicod's avatar nicod
Parcourir les fichiers

feat: Une colonne et un tri par rang

Et classer `{par rang, titre}` par défaut
parent 435c002d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -24,6 +24,7 @@ return [ ...@@ -24,6 +24,7 @@ return [
'texte_squelette' => 'Squelette', 'texte_squelette' => 'Squelette',
'texte_squelette_prive' => 'Squelette privé', 'texte_squelette_prive' => 'Squelette privé',
'texte_squelette_public' => 'Squelette public', 'texte_squelette_public' => 'Squelette public',
'texte_rang' => 'Rang',
'titre_blocktype' => 'Type de bloc', 'titre_blocktype' => 'Type de bloc',
'titre_blocktypes' => 'Types de blocs', 'titre_blocktypes' => 'Types de blocs',
'titre_page_blocktypes' => 'Les types de blocs', 'titre_page_blocktypes' => 'Les types de blocs',
......
...@@ -12,17 +12,19 @@ ...@@ -12,17 +12,19 @@
<th class="picto" scope="col"></th> <th class="picto" scope="col"></th>
<th class="titre" scope="col">[(#TRI{identifiant,<:blocktype:champ_identifiant_label:/>,ajax})]</th> <th class="titre" scope="col">[(#TRI{identifiant,<:blocktype:champ_identifiant_label:/>,ajax})]</th>
<th class="titre" scope="col">[(#TRI{titre,<:blocktype:champ_titre_label:/>,ajax})]</th> <th class="titre" scope="col">[(#TRI{titre,<:blocktype:champ_titre_label:/>,ajax})]</th>
<th class="" scope='col'><:block:titre_blocks:></th> <th class="" scope='col'><:block:titre_blocks:/></th>
<th class="" scope='col'>[(#TRI{rang,<:blocktype:texte_rang:/>,ajax})]</th>
<th class="" scope="col"><:blocktype:texte_squelette:/></th> <th class="" scope="col"><:blocktype:texte_squelette:/></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
<BOUCLE_liste_blocktypes(DATA){source tableau, #REM|blocktypes_lister_types} {tri #ENV{par,num titre},#GET{defaut_tri}} {par titre} {pagination #ENV{nb,20}}> <BOUCLE_liste_blocktypes(DATA){source tableau, #REM|blocktypes_lister_types} {tri #ENV{par, rang},#GET{defaut_tri}} {par rang, titre} {pagination #ENV{nb,20}}>
<tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]"> <tr class="[(#COMPTEUR_BOUCLE|alterner{row_odd,row_even})]">
<td class="picto principale">[(#CHEMIN_IMAGE{#VALEUR{icone}|sinon{blocktype-16.png}}|balise_img|image_reduire{16})]</td> <td class="picto principale">[(#CHEMIN_IMAGE{#VALEUR{icone}|sinon{blocktype-16.png}}|balise_img|image_reduire{16})]</td>
<td class="titre principale"><a href="[(#VAL{blocktype}|generer_url_ecrire{blocktype=#CLE})]"><strong>#CLE</strong></a></td> <td class="titre principale"><a href="[(#VAL{blocktype}|generer_url_ecrire{blocktype=#CLE})]"><strong>#CLE</strong></a></td>
<td class="titre"><a href="[(#VAL{blocktype}|generer_url_ecrire{blocktype=#CLE})]"><strong>#TITRE</strong></a></td> <td class="titre"><a href="[(#VAL{blocktype}|generer_url_ecrire{blocktype=#CLE})]"><strong>#TITRE</strong></a></td>
<td class="secondaire"><BOUCLE(BLOCKS){blocktype=#CLE}{tout}>#SET{total,#TOTAL_BOUCLE}</BOUCLE>[(#GET{total})]</td> <td class="secondaire"><BOUCLE(BLOCKS){blocktype=#CLE}{tout}>#SET{total,#TOTAL_BOUCLE}</BOUCLE>[(#GET{total})]</td>
<td class="secondaire">#RANG</td>
<td class="secondaire"> <td class="secondaire">
[(#CLE|blocktype_squelette{1,1,0})] [(#CLE|blocktype_squelette{1,1,0})]
</td> </td>
......
<INCLURE{fond=prive/objets/liste/blocktypes, par=identifiant}> <INCLURE{fond=prive/objets/liste/blocktypes}>
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter