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}>
|
<INCLURE{fond=inclure/editer_gamuform,env}>
|
||||||
|
|
|
@ -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},
|
||||||
|
|
Loading…
Add table
Reference in a new issue