Intervention revocation
* adds Revocation model to interventions/models.py * adds revocations to interventions detail view * fixes duplicated ids in html includes * refactors controls for detail view into included template files (controls.html) * reduces max length for payment transfer notes from 1000 to 200 * adds RevocationAdmin to intervention/admin.py * adds new form for adding a Revocation to an intervention's legal_data * only one revocation per intervention possible * removes add button in case of an existing revocation * adds revocation routes to intervention app * renames document field in Document model into file for more clarity * adds/updates translations
This commit is contained in:
@@ -47,7 +47,7 @@ class NewPaymentForm(BaseModalForm):
|
||||
)
|
||||
)
|
||||
transfer_note = forms.CharField(
|
||||
max_length=1000,
|
||||
max_length=200,
|
||||
required=False,
|
||||
label_suffix=_(""),
|
||||
label=_("Transfer note"),
|
||||
@@ -55,7 +55,6 @@ class NewPaymentForm(BaseModalForm):
|
||||
)
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.template = "modal/modal_form.html"
|
||||
super().__init__(*args, **kwargs)
|
||||
self.intervention = self.instance
|
||||
self.form_title = _("Payment")
|
||||
|
||||
Reference in New Issue
Block a user