Changes between Version 11 and Version 12 of S3/ConsentTracking
- Timestamp:
- 06/12/19 07:59:44 (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
S3/ConsentTracking
v11 v12 48 48 === Embedding the Widget === 49 49 50 ''[tbd]'' 50 The auth_Consent instance can generate a form widget with consent options. To embed it into a form, inject an additional string field like this: 51 52 {{{#!python 53 # Instantiate auth_Consent (limit to certain processing types if required) 54 consent = s3db.auth_Consent() 55 56 # Produce a Field instance with the consent widget 57 consent_field = Field("consent_question", 58 label = T("Consent"), 59 widget = consent.widget, 60 ) 61 formfields.append(consent_field) 62 }}} 63 51 64 === Mandatory Consent Options === 52 65