khufu.modals.modalForm module ∞
The modal form class
- Author
David Young
-
class
modalForm
(log, title, postToScriptUrl, reloadToUrl, formClassName=False)[source] ∞ Bases:
object
The worker class for the modalForm module
Key Arguments
log
– loggertitle
– titlepostToScriptUrl
– postToScriptUrlreloadToUrl
– reloadToUrlformClassName
– give a class name to form (if required by CSS or JS)
-
add_form_object
(formObject, label='', hidden=False)[source] ∞ add a form objec to the modal form
Key Arguments
formObject
– the object to add to the formlabel
– label to assign to the objecthidden
– is the form object hidden initially?
get form action buttons
Key Arguments
formId
– the HTML id of the form
Return
actionButtons
– the action buttos for the form (cancel, submit)
add hidden parameter value to the form (to be submitted with the form but does not need user input)
Key Arguments
key
– the key for the hidden value (will be appended to query string when form submitted)value
– the value of the hidden parameter
get hidden parameters