Changes between Version 11 and Version 12 of S3/ConsentTracking


Ignore:
Timestamp:
06/12/19 07:59:44 (6 years ago)
Author:
Dominic König
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • S3/ConsentTracking

    v11 v12  
    4848=== Embedding the Widget ===
    4949
    50 ''[tbd]''
     50The 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)
     54consent = s3db.auth_Consent()
     55
     56# Produce a Field instance with the consent widget
     57consent_field = Field("consent_question",
     58                      label = T("Consent"),
     59                      widget = consent.widget,
     60                      )
     61formfields.append(consent_field)
     62}}}
     63
    5164=== Mandatory Consent Options ===
    5265