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=_('Invoice file'), required=True, help_text=_('The invoice must be a PDF.'))
supporting_documents
class-attribute
instance-attribute
¶
supporting_documents = MultiFileField(required=False, help_text=_('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=_('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
InvoiceTagsForm
¶
Bases: ModelForm
tags
class-attribute
instance-attribute
¶
tags = forms.ModelMultipleChoiceField(queryset=InvoiceTag.objects.all(), widget=MultiCheckboxesWidget, required=False, label=_('Tags'))
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
paf_status
class-attribute
instance-attribute
¶
paf_status = forms.ChoiceField(label=_('Project form status'), choices=PAF_STATUS_CHOICES, widget=forms.RadioSelect())
comment
class-attribute
instance-attribute
¶
ChangeProjectStatusForm
¶
Bases: ModelForm
Source code in hypha/apply/projects/forms/project.py
comment
class-attribute
instance-attribute
¶
ProjectCreateForm
¶
Bases: Form
Source code in hypha/apply/projects/forms/project.py
submission
class-attribute
instance-attribute
¶
submission = forms.ModelChoiceField(queryset=ApplicationSubmission.objects.all(), widget=forms.HiddenInput())
title
class-attribute
instance-attribute
¶
title = forms.CharField(label=_('Project title'), help_text=_('A submission can have several projects. Give this one a name so it can be told apart from the others.'))
project_lead
class-attribute
instance-attribute
¶
project_lead = forms.ModelChoiceField(label=_('Select project lead'), queryset=User.objects.all())
project_initial_status
class-attribute
instance-attribute
¶
project_initial_status = forms.ChoiceField(label=_('Initial project status'), choices=get_project_status_options(), initial=get_project_default_status())
project_end
class-attribute
instance-attribute
¶
clean_project_lead
¶
save
¶
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
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
UpdateProjectContractNumberForm
¶
UpdateProjectDatesForm
¶
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=_('Contract Document'), required=True)
Meta
¶
UploadContractForm
¶
Bases: FileFormMixin, ModelForm
file
class-attribute
instance-attribute
¶
file = SingleFileField(label=_('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=_('Document'), required=True)