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}> <INCLURE{fond=inclure/editer_gamuform,env}>

View file

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