diff --git a/src/sdg/components/templates/components/fields/base.html b/src/sdg/components/templates/components/fields/base.html new file mode 100644 index 000000000..57c8ce8ae --- /dev/null +++ b/src/sdg/components/templates/components/fields/base.html @@ -0,0 +1,21 @@ +{% if as_row %} +
{{ value }}
++ {% if field.language == 'nl' %} + {% trans 'Nederlands' %} + {% else %} + {% trans 'Engels' %} + {% endif %} + + +
++ {% if field.language == 'nl' %} + {% trans 'Nederlands' %} + {% else %} + {% trans 'Engels' %} + {% endif %} + + +
++ {% if field.language == 'nl' %} + {% trans 'Nederlands' %} + {% else %} + {% trans 'Engels' %} + {% endif %} + + +
++ + {% block title %}{% endblock %} + | +
---|
@@ -108,278 +108,14 @@ {% csrf_token %} {{ form.management_form }} {{ product_form.non_field_errors }} -
- - 1. {% trans "Algemene Gegevens" %} - | -
---|
-
-
-
-
- {{ doelgroep.value }}
-
- |
-
-
-
-
-
- {% comment %} Didn't use template because error msg would render in the select element {% endcomment %}
-
- {{ field.errors }}
-
- |
-
- {% localized_form formset include_form=False fields="product_aanwezig_toelichting" %} - | -
-
-
-
-
- {% select field %}
- {{ field.errors }}
-
- |
-
- {% localized_form formset include_form=False fields="product_valt_onder_toelichting" %} - | -
-
-
-
-
- {{ field }}
- {{ field.errors }}
-
- |
-
-
-
-
-
- {% select field %}
- {{ field.errors }}
-
- |
-
-
-
-
-
- {{ publication_date.value|default:"Concept" }}
-
- |
-
-
-
-
-
- {% select field %}
- {{ field.errors }}
-
- |
-
-
-
-
-
- {{ areas|join:", " }}
-
- |
-
- {% nonlocalized_form version_form include_form=False fields="interne_opmerkingen" %} - | -
- - 2. {% trans 'Generieke gegevens' %} - | -- {% table_row products=generic_products languages=languages generic_fields=generic_fields %} - | - -
---|
- - 3. {% trans 'Specifieke gegevens' %} - | -
-
- {% for form in form.forms %}
- {{ form.non_field_errors }}
- {{ form.id.as_hidden }}
- {{ form.taal.as_hidden }}
- {% endfor %}
-
- {% localized_form formset include_form=False fields=localized_form_fields %}
+
+ {% update_form_general %}
+
+ {% if generic_products %}
+ {% update_form_generic %}
+ {% endif %}
- {% comment %} loop though from to get decentrale_procedure_label and decentrale_procedure_link form instances to combine them in the localized_url_label_field template {% endcomment %}
- {% for form in form.forms %}
- {% if form.decentrale_procedure_label and form.decentrale_procedure_link %}
- {% localized_url_label_field label=form.decentrale_procedure_label link=form.decentrale_procedure_link taal=form.taal.value languages=languages %}
- {% endif %}
- {% endfor %}
-
- |
-
-
---|