{% load i18n ui help %}{% comment %} A group of metadata fields validated together as they change: htmx posts the whole form with "group" and swaps in this group's re-rendered fields (stations:validate). Without JavaScript the form is checked when it is sent. Parameters: form (MetadataForm), group (a key of MetadataForm.UNITS), analysis. {% endcomment %}
{% if group == "station_name" %} {% include "components/field.html" with field=form.station_name help="station.name" %} {% elif group == "latitude" %} {% translate "°N" as north %} {% include "components/field.html" with field=form.latitude unit=north help="station.latitude" %} {% elif group == "longitude" %} {% translate "°E" as east %} {% include "components/field.html" with field=form.longitude unit=east help="station.longitude" %} {% else %}
{% translate "Base period" %}

{% if form.summary %}{% blocktranslate with first=form.summary.first_year last=form.summary.last_year trimmed %} The years the percentile thresholds are calculated from, within the years of the data ({{ first }} to {{ last }}). Climpact for R suggests 1971 to 2000. {% endblocktranslate %}{% else %}{% translate "The years the percentile thresholds are calculated from. Climpact for R suggests 1971 to 2000." %}{% endif %}

{% help_topic "station.base_period" %}
{% include "components/field.html" with field=form.base_start %} {% include "components/field.html" with field=form.base_end %}
{% endif %} {% for key, notes in form.warnings.items %}{% if key == group %}{% for note in notes %}

{% icon "warning" %}{{ note }}

{% endfor %}{% endif %}{% endfor %}