Index
hypha.apply.projects.forms
¶
BatchUpdateInvoiceStatusForm
¶
Bases: Form
Source code in hypha/apply/projects/forms/payment.py
ChangeInvoiceStatusForm
¶
Bases: ModelForm
Source code in hypha/apply/projects/forms/payment.py
CreateInvoiceForm
¶
Bases: FileFormMixin
, InvoiceBaseForm
Source code in hypha/apply/projects/forms/payment.py
document
class-attribute
instance-attribute
¶
document = SingleFileField(label=gettext_lazy('Invoice file'), required=True, help_text=gettext_lazy('The invoice must be a PDF.'))
supporting_documents
class-attribute
instance-attribute
¶
supporting_documents = MultiFileField(required=False, help_text=gettext_lazy('Files that are related to the invoice. They could be xls, microsoft office documents, open office documents, pdfs, txt files.'))
field_order
class-attribute
instance-attribute
¶
field_order = ['invoice_number', 'invoice_amount', 'invoice_date', 'document', 'supporting_documents', 'message_for_pm']
Meta
¶
save
¶
Source code in hypha/apply/projects/forms/payment.py
EditInvoiceForm
¶
Bases: FileFormMixin
, InvoiceBaseForm
Source code in hypha/apply/projects/forms/payment.py
document
class-attribute
instance-attribute
¶
document = SingleFileField(label=gettext_lazy('Invoice File'), required=True)
supporting_documents
class-attribute
instance-attribute
¶
supporting_documents = MultiFileField(required=False)
field_order
class-attribute
instance-attribute
¶
field_order = ['invoice_number', 'invoice_amount', 'invoice_date', 'document', 'supporting_documents', 'message_for_pm']
Meta
¶
save
¶
Source code in hypha/apply/projects/forms/payment.py
SelectDocumentForm
¶
ApproveContractForm
¶
ApproversForm
¶
Bases: ModelForm
Source code in hypha/apply/projects/forms/project.py
Meta
¶
save
¶
Source code in hypha/apply/projects/forms/project.py
AssignApproversForm
¶
Bases: ModelForm
Source code in hypha/apply/projects/forms/project.py
Meta
¶
save
¶
Source code in hypha/apply/projects/forms/project.py
ChangePAFStatusForm
¶
Bases: ModelForm
Source code in hypha/apply/projects/forms/project.py
paf_status
class-attribute
instance-attribute
¶
paf_status = ChoiceField(label=gettext_lazy('Project form status'), choices=PAF_STATUS_CHOICES, widget=RadioSelect())
ChangeProjectStatusForm
¶
Bases: ModelForm
Source code in hypha/apply/projects/forms/project.py
ProjectCreateForm
¶
Bases: Form
Source code in hypha/apply/projects/forms/project.py
ProjectForm
¶
Bases: StreamBaseForm
, ModelForm
Source code in hypha/apply/projects/forms/project.py
Meta
¶
swap_fields_for_display
¶
Source code in hypha/apply/stream_forms/forms.py
hidden_fields
¶
delete_temporary_files
¶
Overridden method of django_file_form's FileFormMixin, to handle multiple forms on the same page.
Source code in hypha/apply/stream_forms/forms.py
clean
¶
save
¶
Source code in hypha/apply/projects/forms/project.py
ProjectSOWForm
¶
Bases: StreamBaseForm
, ModelForm
Source code in hypha/apply/projects/forms/project.py
Meta
¶
swap_fields_for_display
¶
Source code in hypha/apply/stream_forms/forms.py
hidden_fields
¶
delete_temporary_files
¶
Overridden method of django_file_form's FileFormMixin, to handle multiple forms on the same page.
Source code in hypha/apply/stream_forms/forms.py
clean
¶
save
¶
Source code in hypha/apply/projects/forms/project.py
RemoveContractDocumentForm
¶
SetPendingForm
¶
Bases: ApproversForm
Source code in hypha/apply/projects/forms/project.py
Meta
¶
save
¶
Source code in hypha/apply/projects/forms/project.py
clean
¶
Source code in hypha/apply/projects/forms/project.py
SkipPAFApprovalProcessForm
¶
Bases: ModelForm
Source code in hypha/apply/projects/forms/project.py
StaffUploadContractForm
¶
SubmitContractDocumentsForm
¶
Bases: ModelForm
Source code in hypha/apply/projects/forms/project.py
UpdateProjectLeadForm
¶
Bases: ModelForm
Source code in hypha/apply/projects/forms/project.py
UpdateProjectTitleForm
¶
UploadContractDocumentForm
¶
Bases: FileFormMixin
, ModelForm
Source code in hypha/apply/projects/forms/project.py
document
class-attribute
instance-attribute
¶
document = SingleFileField(label=gettext_lazy('Contract Document'), required=True)
Meta
¶
UploadContractForm
¶
Bases: FileFormMixin
, ModelForm
file
class-attribute
instance-attribute
¶
file = SingleFileField(label=gettext_lazy('Contract'), required=True)
signed_and_approved
class-attribute
instance-attribute
¶
Meta
¶
UploadDocumentForm
¶
Bases: FileFormMixin
, ModelForm
Source code in hypha/apply/projects/forms/project.py
document
class-attribute
instance-attribute
¶
document = SingleFileField(label=gettext_lazy('Document'), required=True)
Meta
¶
ReportEditForm
¶
Bases: StreamBaseForm
, ModelForm
Source code in hypha/apply/projects/forms/report.py
Meta
¶
swap_fields_for_display
¶
Source code in hypha/apply/stream_forms/forms.py
hidden_fields
¶
delete_temporary_files
¶
Overridden method of django_file_form's FileFormMixin, to handle multiple forms on the same page.
Source code in hypha/apply/stream_forms/forms.py
clean
¶
save
¶
Source code in hypha/apply/projects/forms/report.py
ReportFrequencyForm
¶
CreateVendorFormStep1
¶
Bases: BaseVendorForm
, Form
Source code in hypha/apply/projects/forms/vendor.py
TYPE_CHOICES
class-attribute
instance-attribute
¶
TYPE_CHOICES = [('organization', gettext_lazy('Yes, the account belongs to the organisation above')), ('personal', gettext_lazy('No, it is a personal bank account'))]
type
class-attribute
instance-attribute
¶
type = ChoiceField(choices=TYPE_CHOICES, required=True, widget=RadioSelect)
apply_form_settings
¶
Source code in hypha/apply/projects/forms/vendor.py
CreateVendorFormStep2
¶
Bases: BaseVendorForm
, Form
Source code in hypha/apply/projects/forms/vendor.py
required_to_pay_taxes
class-attribute
instance-attribute
¶
required_to_pay_taxes = TypedChoiceField(choices=((False, gettext_lazy('No')), (True, gettext_lazy('Yes'))), coerce=lambda x: x == 'True', widget=RadioSelect, required=True)
apply_form_settings
¶
Source code in hypha/apply/projects/forms/vendor.py
CreateVendorFormStep3
¶
Bases: FileFormMixin
, BaseVendorForm
, Form
Source code in hypha/apply/projects/forms/vendor.py
due_diligence_documents
class-attribute
instance-attribute
¶
due_diligence_documents = MultiFileField(required=True)
apply_form_settings
¶
Source code in hypha/apply/projects/forms/vendor.py
CreateVendorFormStep4
¶
Bases: BaseVendorForm
, Form
Source code in hypha/apply/projects/forms/vendor.py
CURRENCY_CHOICES
class-attribute
instance-attribute
¶
CURRENCY_CHOICES = [(currency, f'{get_currency_name(currency, locale=CURRENCY_LOCALE)} - {currency}') for currency in get_active_currencies()]
account_holder_name
class-attribute
instance-attribute
¶
account_routing_number
class-attribute
instance-attribute
¶
account_currency
class-attribute
instance-attribute
¶
account_currency = ChoiceField(choices=sorted(CURRENCY_CHOICES, key=itemgetter(1)), required=True, initial='USD')
apply_form_settings
¶
Source code in hypha/apply/projects/forms/vendor.py
CreateVendorFormStep5
¶
Bases: BaseVendorForm
, Form
Source code in hypha/apply/projects/forms/vendor.py
CreateVendorFormStep6
¶
Bases: BaseVendorForm
, Form
Source code in hypha/apply/projects/forms/vendor.py
CURRENCY_CHOICES
class-attribute
instance-attribute
¶
CURRENCY_CHOICES = [(currency, f'{get_currency_name(currency, locale=CURRENCY_LOCALE)} - {currency}') for currency in get_active_currencies()]
ib_account_routing_number
class-attribute
instance-attribute
¶
ib_account_number
class-attribute
instance-attribute
¶
ib_account_currency
class-attribute
instance-attribute
¶
ib_account_currency = ChoiceField(choices=sorted(CURRENCY_CHOICES, key=itemgetter(1)), required=False, initial='USD')