{% extends 'global.html'%} {% load static %} {% load i18n %} {% load widget_tweaks %} # {% block title %}{% translate 'Edit place' %}{% endblock %} {% block maincontent %}
{% translate 'Edit place' %} {% csrf_token %}
{% include 'partials/form/inputField.html' with field=form.name %}
{% include 'partials/form/inputField.html' with field=form.location %}
{% include 'partials/form/inputField.html' with field=form.latitude %}
{% include 'partials/form/inputField.html' with field=form.longitude %}
{% include 'partials/form/inputField.html' with field=form.description %}
{% include 'partials/form/inputField.html' with field=form.filename %}
{% if object.placeimages.all|length > 0 %} {% translate 'Set Hero Image' %}
{% render_field form.hero container_class='LP-ImageGrid__Container' item_class='LP-ImageGrid__Item LP-Select' current_selected_value=object.hero.id%}
{% endif %} {% translate 'Update' as action %}
{% include 'partials/form/submit.html' with referer=request.META.HTTP_REFERER action=action %}
{% endblock maincontent %}