{% extends "base.html" %} {% load crispy_forms_tags %} {% load i18n %} {% load juntagrico.common %} {% load juntagrico.config %} {% load static %} {% block page_title %}

{{ job.type.get_name }} {% if edit_url.strip %} {% endif %}

{% endblock %} {% block styles %} {% endblock %} {% block content %} {% vocabulary "assignment_pl" as v_assignment_pl %} {% block time %}
{% trans "Zeitpunkt" %}:
{{ job.time |date:"l, d.m.Y, H:i" }} - {{ job.end_time|date:"H:i" }}
{% if job_is_in_past %} (vor {{ job.end_time|timesince }}) {% elif job_is_running %} (seit {{ job.time|timesince }}) {% else %} (in {{ job.time|timeuntil }}) {% endif %}
{% endblock %} {% if not job.infinite_slots %} {% block status %}
{% trans "Status" %}:
{% with slots_taken=job.occupied_slots %}
{% spaceless %} {% for _ in ''|ljust:job.slots %} {% if forloop.counter <= slots_taken %} {% trans {% else %} {% trans {% endif %} {% endfor %} {% endspaceless %}
{% endwith %}
{% endblock %} {% endif %} {% block multiplier %} {% if job.multiplier == 0 %}
{% vocabulary "assignment_pl" %}:
{% blocktrans trimmed with jm=job.multiplier %} Du erhältst für diese Veranstaltung keine {{ v_assignment_pl }} gutgeschrieben. {% endblocktrans %}
{% elif job.multiplier != 1 %}
{% vocabulary "assignment_pl" %}:
{% blocktrans trimmed with jm=job.multiplier %} Du erhältst für diesen Einsatz das {{ jm }}-Fache an {{ v_assignment_pl }} gutgeschrieben. {% endblocktrans %}
{% endif %} {% endblock %} {% if job.extras.strip %} {% block extras %}
{% trans "Extras" %}:
{% for extra in job.empty_per_job_extras %} {{ extra.extra_type.display_empty|safe }} {% endfor %} {% for extra in job.full_per_job_extras %} {{ extra.extra_type.display_full|safe }} {% endfor %}
{% endblock %} {% endif %} {% block location %}
{% trans "Ort" %}:
{{ job.type.location.to_html|safe }} {% if job.type.location.google_maps_query %}
{% if job.type.location.has_coordinates %} {% trans "Karte" %} - {% endif %} {% trans "Wegbeschreibung" %} {% endif %}
{% endblock %} {% block description %}
{% trans "Beschreibung" %}:
{{ job.type.description|richtext|safe }}
{% if job.additional_description %}
{{ job.additional_description|richtext|safe }}
{% endif %}
{% endblock %} {% block contact %}
{% trans "Kontakt" %}:
{% for contact in job.contacts %} {{ contact.to_html }} {% endfor %}
{% endblock %} {% block participants %}
{% trans "Dabei sind" %}:
{% if job.occupied_slots == 0 and job.free_slots != 0 %} {% trans "Noch niemand" %} 🥺 {% else %} {% include "juntagrico/job/snippets/participant_list.html" %} {% endif %}
{% endblock %} {% block subscribe %} {% if form.can_interact %} {% crispy form %} {% endif %} {% endblock %} {% endblock %} {% block scripts %} {{ job.type.location.map_info|json_script:'location_data' }} {% include 'snippets/scripts/leaflet.html' %} {% endblock %}