un json de demo sur les articles
This commit is contained in:
parent
1f47ce0470
commit
a9731d9822
1 changed files with 20 additions and 51 deletions
|
@ -4,84 +4,53 @@
|
||||||
"header":{
|
"header":{
|
||||||
"id": "_",
|
"id": "_",
|
||||||
"titre": "titre",
|
"titre": "titre",
|
||||||
|
"texte": "texte",
|
||||||
"date": "date",
|
"date": "date",
|
||||||
"statut": "statut",
|
"statut": "statut"
|
||||||
"genre": "genre",
|
|
||||||
"nom_souscripteur": "nom du souscripteur",
|
|
||||||
"prenom": "prénom",
|
|
||||||
"date_naissance": "ddn",
|
|
||||||
"lieu_naissance": "Lieu",
|
|
||||||
"representant_legal": "R.Légal",
|
|
||||||
"type": "type",
|
|
||||||
"email": "email",
|
|
||||||
"telephone": "téléphone",
|
|
||||||
"adresse": "Adresse"
|
|
||||||
},
|
},
|
||||||
"crayons":{
|
"crayons":{
|
||||||
"titre" : "souscription",
|
"titre" : "souscription",
|
||||||
"prenom" : "souscription"
|
|
||||||
},
|
},
|
||||||
"filtreCol" : {
|
"filtreCol" : {
|
||||||
"statut" : "select",
|
"statut" : "select",
|
||||||
"nom": "input"
|
"titre": "input"
|
||||||
}
|
}
|
||||||
"classes":{
|
"classes":{
|
||||||
"titre": "toto",
|
"titre": "toto",
|
||||||
"email":"toto"
|
"email":"toto"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
<BOUCLE_souscriptions(SOUSCRIPTIONS){id_souscription?}{!par id_souscription}{tout}{','}>
|
<BOUCLE_articles(ARTICLES){id_article?}{tout}{','}>
|
||||||
[(#SET{statut,
|
[(#SET{statut,
|
||||||
#SET{args,#ID_SOUSCRIPTION|concat{-}|concat{#STATUT}}
|
#SET{args,#ID_ARTICLE|concat{-}|concat{#STATUT}}
|
||||||
<a class="url_action" data-id="#ID_SOUSCRIPTION" href="[(#URL_ACTION_AUTEUR{changer_statut_souscription,#GET{args}})]">
|
<a class="url_action" data-id="#ID_ARTICLE" href="[(#URL_ACTION_AUTEUR{changer_statut_article,#GET{args}})]">
|
||||||
[(#STATUT|!={publie}|oui)
|
[(#STATUT|!={publie}|oui)
|
||||||
<i title="Souscription en attente" class="fa fa-check fa-2x orange" aria-hidden="true"></i>
|
<i title="Article en attente" class="fa fa-check fa-2x orange" aria-hidden="true"></i>
|
||||||
]
|
]
|
||||||
[(#STATUT|=={publie}|oui)
|
[(#STATUT|=={publie}|oui)
|
||||||
<i title="Souscription validée" class="fa fa-check fa-2x verte" aria-hidden="true"></i>
|
<i title="Article validé" class="fa fa-check fa-2x verte" aria-hidden="true"></i>
|
||||||
]
|
]
|
||||||
</a>
|
</a>
|
||||||
})]
|
})]
|
||||||
|
|
||||||
{
|
{
|
||||||
"html": {
|
"html": {
|
||||||
"id": #ID_SOUSCRIPTION,
|
"id": #ID_ARTICLE,
|
||||||
"modif" : [(#VAL{<a class="modalbox" href="[(#URL_PAGE{souscrire}|parametre_url{id_souscription,#ID_SOUSCRIPTION}|parametre_url{redirect,gamutable})]"><i class="fa fa-pencil"></i></a>}|json_encode)],
|
"titre" : [(#TITRE|json_encode)],
|
||||||
"date" : [(#DATE|affdate{d/m/Y}|json_encode)],
|
"date" : [(#DATE|affdate{d/m/Y}|json_encode)],
|
||||||
"statut" : [(#GET{statut}|json_encode)],
|
"texte": [(#VAL{<a class="modalbox" title="Détail" href="[(#URL_PAGE{gamutable_texte}|parametre_url{id_article,#ID_ARTICLE})]">[(#TEXTE|couper{10})]</a>}|json_encode)],
|
||||||
"genre" : [(#GENRE|json_encode)],
|
"statut" : [(#GET{statut}|json_encode)]
|
||||||
"nom_souscripteur" : [(#NOM_SOUSCRIPTEUR|json_encode)],
|
|
||||||
"prenom" : [(#PRENOM|json_encode)],
|
|
||||||
"qui": [(#VAL{<a class="mediabox" title="Détail du souscripteur" href="[(#URL_PAGE{detail_souscription}|parametre_url{id_souscription,#ID_SOUSCRIPTION}|parametre_url{detail,qui})]"><i class="fa fa-address-book"></i></a>}|json_encode)],
|
|
||||||
"nbr" : [(#NOMBRE)],
|
|
||||||
"montant_part" : [(#MONTANT_PART)],
|
|
||||||
"montant" : [(#MONTANT)],
|
|
||||||
"prix": [(#VAL{<a class="mediabox" title="Détail de la souscription" href="[(#URL_PAGE{detail_souscription}|parametre_url{id_souscription,#ID_SOUSCRIPTION}|parametre_url{detail,prix})]"><i class="fa fa-shopping-cart"></i></a>}|json_encode)],
|
|
||||||
"type" : [(#TYPE|json_encode)],
|
|
||||||
"email" : [(#VAL{<a href="mailto:#EMAIL" target="_blank">#EMAIL</a>}|json_encode)],
|
|
||||||
"telephone" : [(#TELEPHONE|json_encode)],
|
|
||||||
"ou": [(#VAL{<a class="mediabox" title="Détail des coordonnées" href="[(#URL_PAGE{detail_souscription}|parametre_url{id_souscription,#ID_SOUSCRIPTION}|parametre_url{detail,adresse})]"><i class="fa fa-address-card"></i></a>}|json_encode)]
|
|
||||||
},
|
},
|
||||||
"classes": {
|
"classes": {
|
||||||
"modif": [(#STATUT|concat{-}|concat{#ID_SOUSCRIPTION}|json_encode)]
|
"texte": [(#STATUT|concat{-}|concat{#ID_ARTICLE}|json_encode)]
|
||||||
},
|
},
|
||||||
search: {
|
search: {
|
||||||
"id": #ID_SOUSCRIPTION,
|
"id": #ID_ARTICLE,
|
||||||
"modif" : "",
|
"titre" : [(#TITRE|json_encode)],
|
||||||
"date" : [(#DATE|affdate{d/m/Y}|json_encode)],
|
"date" : [(#DATE|affdate{U}|json_encode)],
|
||||||
"statut" : [(#GET{statut}|json_encode)],
|
"texte": [(#TEXTE|couper{10}|json_encode)],
|
||||||
"genre" : [(#GENRE|json_encode)],
|
"statut" : [(#STATUT|json_encode)]
|
||||||
"nom_souscripteur" : [(#NOM_SOUSCRIPTEUR|json_encode)],
|
|
||||||
"prenom" : [(#PRENOM|json_encode)],
|
|
||||||
"qui": "",
|
|
||||||
"nbr" : [(#NOMBRE)],
|
|
||||||
"montant_part" : [(#MONTANT_PART)],
|
|
||||||
"montant" : [(#MONTANT)],
|
|
||||||
"prix": "",
|
|
||||||
"type" : [(#TYPE|json_encode)],
|
|
||||||
"email" : [(#EMAIL|json_encode)],
|
|
||||||
"telephone" : [(#TELEPHONE|json_encode)],
|
|
||||||
"ou": ""
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</BOUCLE_souscriptions>
|
</BOUCLE_articles>
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Reference in a new issue