diff --git a/content/voir_gamuform.html b/content/voir_gamuform.html index 481a23c..be17a79 100644 --- a/content/voir_gamuform.html +++ b/content/voir_gamuform.html @@ -1,10 +1,12 @@ #CACHE{0} +[(#AUTORISER{voir,#ENV{objet}}|sinon_interdire_acces)]
-

Configuration des #ENV{objet}

+

Configuration des [ (#ENV{objet}|gamuform_nom_objet)]

- [(#SET{lien, Nouveau})] - + [(#AUTORISER{creer,#ENV{objet}}|oui) + [(#SET{lien, Nouveau})] + ] #SET{url,spip.php?page=json_gamuform.json&objet=} #SET{url,#GET{url}|concat{#ENV{objet}}} 'Auteurs']; $GLOBALS['gamuform_auteur'] = [ [ 'saisie' => 'input', 'options' => array( - 'nom' => 'nom', - 'label' => 'Votre Nom', + 'nom' => 'nom', + 'libelle' => 'Nom', + 'label' => 'Votre Nom', 'obligatoire' => 'oui', //'fonction' => 'ma_super_fonction' //'modifier' => 'ma_super_fonction_pour_modifier' @@ -32,6 +33,7 @@ $GLOBALS['gamuform_auteur'] = [ 'saisie' => 'input', 'options' => array( 'nom' => 'bio', + 'libelle' => 'Biographie', 'label' => 'Votre BIO', 'obligatoire' => 'oui', //'fonction' => 'ma_super_fonction' @@ -40,8 +42,9 @@ $GLOBALS['gamuform_auteur'] = [ [ 'saisie' => 'input', 'options' => array( - 'nom' => 'nom_site', - 'label' => 'Votre site perso', + 'nom' => 'nom_site', + 'libelle' => 'Site Internet', + 'label' => 'Votre site perso', ) ] ]; diff --git a/json_gamuform.json.html b/json_gamuform.json.html index 4f9581f..c72bdbb 100644 --- a/json_gamuform.json.html +++ b/json_gamuform.json.html @@ -6,7 +6,7 @@ "id": "id", "edit": "", -"#VALEUR" : "#VALEUR" +[(#CLE|json_encode)] : [(#VALEUR|json_encode)] }, "crayons":{ @@ -34,14 +34,14 @@ "id": #GET{ligne/id}, "edit": [(#GET{edit}|json_encode)], - "#VALEUR" : [(#GET{ligne/#VALEUR}|json_encode)] + [(#CLE|json_encode)] : [(#GET{ligne/#CLE}|json_encode)] }, "search": { "id": #GET{ligne/id}, "edit": "", - "#VALEUR" : [(#GET{ligne/#VALEUR}|textebrut|json_encode)] + [(#CLE|json_encode)] : [(#GET{ligne/#CLE}|textebrut|json_encode)] } }