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:
parent
79ff2d5dea
commit
f2049c4740
2 changed files with 15 additions and 9 deletions
|
@ -1,2 +1 @@
|
|||
|
||||
<INCLURE{fond=inclure/editer_gamuform,env}>
|
||||
|
|
|
@ -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},
|
||||
|
|
Loading…
Add table
Reference in a new issue