parent
7a84ef074c
commit
d9c7dcb0d9
|
@ -67,6 +67,7 @@ autorisations d'accès au backoffice (<code>user_backoffice_access</code>) ou
|
|||
"form_receipt_date": "28/03/2014",
|
||||
"form_receipt_time": "15:36",
|
||||
"form_status": "Nouveau",
|
||||
"form_status_is_endpoint": false,
|
||||
"form_uri": "demande-d-inscription/123/",
|
||||
"form_url": "http://www.example.net/demande-d-inscription/123/",
|
||||
"form_url_backoffice": "http://www.example.net/backoffice/demande-d-inscription/123/",
|
||||
|
@ -85,6 +86,7 @@ autorisations d'accès au backoffice (<code>user_backoffice_access</code>) ou
|
|||
"form_receipt_date": "17/03/2014",
|
||||
"form_receipt_time": "10:39",
|
||||
"form_status": "En cours",
|
||||
"form_status_is_endpoint": false,
|
||||
"form_uri": "rendez-vous-service-b/456/",
|
||||
"form_url": "http://www.example.net/rendez-vous-service-b/456/",
|
||||
"form_url_backoffice": "http://www.example.net/backoffice/rendez-vous-service-b/456/",
|
||||
|
@ -92,6 +94,25 @@ autorisations d'accès au backoffice (<code>user_backoffice_access</code>) ou
|
|||
"status": "Nouveau",
|
||||
"title": "Rendez-vous avec le service B #456 (En cours)",
|
||||
"url": "http://www.example.net/rendez-vous-service-b/456/",
|
||||
},
|
||||
{
|
||||
"category_id": "3",
|
||||
"category_name": "Modification de vos coordonn\u00e9es",
|
||||
"datetime": "2014-03-17 10:42:17",
|
||||
"form_name": "Changement d'adresse",
|
||||
"form_number": "424",
|
||||
"form_number_raw": "424",
|
||||
"form_receipt_date": "17/03/2014",
|
||||
"form_receipt_time": "10:42",
|
||||
"form_status": "Traitement de la demande termin\u00e9",
|
||||
"form_status_is_endpoint": true,
|
||||
"form_uri": "changement-d-adresse/424/",
|
||||
"form_url": "http://www.example.net/changement-d-adresse/424/",
|
||||
"form_url_backoffice": "http://www.example.net/backoffice/changement-d-adresse/424/",
|
||||
"name": "Changement d'adresse",
|
||||
"status": "Traitement de la demande termin\u00e9",
|
||||
"title": "Changement d'adresse #424 (Traitement de la demande termin\u00e9)",
|
||||
"url": "http://www.example.net/changement-d-adresse/424/",
|
||||
}
|
||||
]</output></screen>
|
||||
|
||||
|
|
|
@ -329,6 +329,11 @@ class FormData(StorableObject):
|
|||
|
||||
d['form_status'] = self.get_status_label()
|
||||
|
||||
if self.id and self.formdef.workflow and self.status:
|
||||
endpoint_status_ids = ['wf-%s' % x.id for x in self.formdef.workflow.get_endpoint_status()]
|
||||
is_endpoint_status = (self.status in endpoint_status_ids)
|
||||
d['form_status_is_endpoint'] = is_endpoint_status
|
||||
|
||||
# formdef and category variables
|
||||
d.update(self.formdef.get_substitution_variables(minimal=minimal))
|
||||
|
||||
|
|
Loading…
Reference in New Issue