Home | Trees | Indices | Help |
|
---|
|
??-311 --+ | S3AddPersonWidget
Widget for person_id (future also: human_resource_id) fields that allows to either select an existing person (autocomplete), or to create a new person record inline Features: - embedded fields configurable in deployment settings - can use single name field (with on-submit name splitting), alternatively separate fields for first/middle/last names - can check for possible duplicates during data entry - fully encapsulated, works with regular validators (IS_ONE_OF) => Uses client-side script s3.ui.addperson.js (injected)
Instance Methods | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
Static Methods | |||
|
Method Details |
Constructor
|
Widget builder
|
Extract the data for a record ID
|
Extract the contact data for a pe_id; extracts only the first value per contact method
|
Construct the embedded form
|
Get a label for an embedded field
|
Get a widget for an embedded field; only when the field needs a specific widget => otherwise return None here, so the form builder will render a standard INPUT
|
Inject the necessary JavaScript for the widget
|
Inject translations for screen messages rendered by the client-side script
|
Validate main input value
|
Parse the main input JSON when the form gets submitted
|
Get first, middle and last names from the input data
|
Split a full name into first/middle/last
|
Validate the email address; checks whether the email address is valid and unique
|
Create a new record from form data @param data - the submitted data
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Mar 15 08:51:50 2019 | http://epydoc.sourceforge.net |