#47 Settinge of Place Hero Image

This commit is contained in:
2021-04-10 08:23:36 +02:00
parent 2ac39f719f
commit 74d842a668
6 changed files with 73 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
{% extends 'global.html'%}
{% load static %}
{% load i18n %}
{% load widget_tweaks %}
# {% block title %}{% translate 'Edit place' %}{% endblock %}
@@ -38,6 +39,15 @@
{% include 'partials/form/inputField.html' with field=form.filename %}
</div>
</div>
{% if object.placeimages.all|length > 0 %}
<legend class="LP-Form__Legend">{% translate 'Set Hero Image' %}</legend>
<div class="LP-Form__Composition">
<div class="LP-Form__Field">
{% render_field form.hero container_class='LP-ImageGrid__Container' item_class='LP-ImageGrid__Item LP-Select' current_selected_value=object.hero.id%}
</div>
</div>
{% endif %}
{% translate 'Update' as action %}
<div class="LP-Form__Composition LP-Form__Composition--buttons">