maintenant que l'on a ajouté l'autorisation générale pour voir le json, on les ajoutes pour l'edition / suppression

This commit is contained in:
Christophe 2022-05-10 11:35:23 +02:00
parent 79ff2d5dea
commit f2049c4740
2 changed files with 15 additions and 9 deletions

View file

@ -1,2 +1 @@
<INCLURE{fond=inclure/editer_gamuform,env}>

View file

@ -10,11 +10,14 @@
[{
"header":{
"id": "id",
"edit": "",
<BOUCLE_header(DATA){source table,#GET{header}}>
[(#CLE|json_encode)] : [(#VALEUR*|gamuform_lang|mb_ucfirst|json_encode)],
[(#AUTORISER{modifier, gamuform, #ENV{id_objet}, '', #ARRAY{objet, #ENV{objet}}}|oui)
"edit": "",]
<BOUCLE_header(DATA){source table,#GET{header}}{','}>
[(#CLE|json_encode)] : [(#VALEUR*|gamuform_lang|mb_ucfirst|json_encode)]
</BOUCLE_header>
"sup": ""
[(#AUTORISER{suppprimer, gamuform, #ENV{id_objet}, '', #ARRAY{objet, #ENV{objet}}}|oui)
,"sup": ""
]
},
"crayons":{
<BOUCLE_crayons(DATA){source table,#GET{crayons}}{','}>
@ -55,11 +58,15 @@
{
"html": {
"id": #GET{ligne/id},
"edit": [(#GET{edit}|json_encode)],
<BOUCLE_champsA(DATA){source table,#GET{champs}}>
[(#VALEUR|json_encode)] : [(#ENV{objet}|gamufiltre{#VALEUR,#GET{ligne}}|json_encode)],
[(#AUTORISER{modifier, gamuform, #ENV{id_objet}, '', #ARRAY{objet, #ENV{objet}}}|oui)
"edit": [(#GET{edit}|json_encode)],
]
<BOUCLE_champsA(DATA){source table,#GET{champs}}{','}>
[(#VALEUR|json_encode)] : [(#ENV{objet}|gamufiltre{#VALEUR,#GET{ligne}}|json_encode)]
</BOUCLE_champsA>
"sup": [(#GET{sup}|json_encode)]
[(#AUTORISER{suppprimer, gamuform, #ENV{id_objet}, '', #ARRAY{objet, #ENV{objet}}}|oui)
,"sup": [(#GET{sup}|json_encode)]
]
},
"search": {
"id": #GET{ligne/id},