diff --git a/main/templates/base/fetc_base.html b/main/templates/base/fetc_base.html index 038b80133..5e3267769 100644 --- a/main/templates/base/fetc_base.html +++ b/main/templates/base/fetc_base.html @@ -37,3 +37,25 @@ {% endif %} {% include 'base/tool_language_box.html' %} {% endblock %} + +{% block site-footer %} + {% get_current_language as LANGUAGE_CODE %} +
+{% endblock %} diff --git a/proposals/forms.py b/proposals/forms.py index 7a2305b97..55e8ed728 100644 --- a/proposals/forms.py +++ b/proposals/forms.py @@ -579,27 +579,6 @@ def clean(self): ) -class WmoCheckForm(TemplatedModelForm): - class Meta: - model = Wmo - fields = [ - "metc", - "is_medical", - ] - widgets = { - "metc": BootstrapRadioSelect(), - "is_medical": BootstrapRadioSelect(), - } - - def __init__(self, *args, **kwargs): - """ - - Remove empty label from is_medical/is_behavioristic field and reset the choices - """ - super(WmoCheckForm, self).__init__(*args, **kwargs) - self.fields["is_medical"].empty_label = None - self.fields["is_medical"].choices = YesNoDoubt.choices - - class WmoApplicationForm(SoftValidationMixin, ConditionalModelForm): class Meta: model = Wmo diff --git a/proposals/urls.py b/proposals/urls.py index 60397e078..4572c2cb6 100644 --- a/proposals/urls.py +++ b/proposals/urls.py @@ -51,7 +51,6 @@ WmoCreate, WmoUpdate, WmoApplication, - WmoCheck, check_wmo, WmoCreatePreAssessment, WmoUpdatePreAssessment, @@ -264,7 +263,6 @@ ] ), ), - path("wmo/check/", WmoCheck.as_view(), name="wmo_check"), path("wmo/check_js/", check_wmo, name="check_wmo"), path( "compare/", diff --git a/proposals/utils/pdf_diff_logic.py b/proposals/utils/pdf_diff_logic.py index 113d3c428..289e20e9a 100644 --- a/proposals/utils/pdf_diff_logic.py +++ b/proposals/utils/pdf_diff_logic.py @@ -1034,8 +1034,7 @@ def create_context_pdf(context, model): for num, document in enumerate(extra_documents): sections.append(ExtraDocumentsSection(document, num)) - if model.dmp_file: - sections.append(DMPFileSection(model)) + sections.append(DMPFileSection(model)) sections.append(EmbargoSection(model)) sections.append(CommentsSection(model)) @@ -1209,14 +1208,11 @@ def create_context_diff(context, old_proposal, new_proposal): ) ) - if old_proposal.dmp_file or new_proposal.dmp_file: - sections.append( - DiffSection( - *multi_sections( - DMPFileSection, [old_proposal, new_proposal] - ) - ) + sections.append( + DiffSection( + *multi_sections(DMPFileSection, [old_proposal, new_proposal]) ) + ) sections.append( DiffSection(EmbargoSection(old_proposal), EmbargoSection(new_proposal)) diff --git a/proposals/views/wmo_views.py b/proposals/views/wmo_views.py index 098614745..1f58ac920 100644 --- a/proposals/views/wmo_views.py +++ b/proposals/views/wmo_views.py @@ -12,7 +12,7 @@ from proposals.mixins import StepperContextMixin from ..models import Proposal, Wmo -from ..forms import WmoForm, WmoApplicationForm, WmoCheckForm +from ..forms import WmoForm, WmoApplicationForm ##################### @@ -112,11 +112,6 @@ def get_back_url(self): return reverse("proposals:wmo_update", args=(self.object.pk,)) -class WmoCheck(generic.FormView): - form_class = WmoCheckForm - template_name = "proposals/wmo_check.html" - - ######################## # Preliminary assessment ########################