2020-07-29 20:22:04 +02:00
|
|
|
{% extends 'global.html'%}
|
|
|
|
{% load static %}
|
2020-10-01 23:05:34 +02:00
|
|
|
{% load i18n %}
|
2020-07-29 20:22:04 +02:00
|
|
|
|
2021-04-02 22:06:52 +02:00
|
|
|
# {% block title %}{% translate 'Create place' %}{% endblock %}
|
2020-07-29 20:22:04 +02:00
|
|
|
|
|
|
|
{% block maincontent %}
|
2020-08-03 19:14:13 +02:00
|
|
|
<form class="LP-Form" method="POST" enctype="multipart/form-data">
|
2020-08-05 18:57:09 +02:00
|
|
|
<fieldset class="LP-Form__Fieldset">
|
2021-04-02 22:06:52 +02:00
|
|
|
<legend class="LP-Form__Legend">{% translate 'Create place' %}</legend>
|
2020-08-05 18:57:09 +02:00
|
|
|
{% csrf_token %}
|
|
|
|
<div class="LP-Form__Composition LP-Form__Composition--breakable">
|
|
|
|
<div class="LP-Form__Field">
|
|
|
|
{% include 'partials/form/inputField.html' with field=place_form.name %}
|
|
|
|
</div>
|
|
|
|
<div class="LP-Form__Field">
|
|
|
|
{% include 'partials/form/inputField.html' with field=place_form.location %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="LP-Form__Composition LP-Form__Composition--breakable">
|
|
|
|
<div class="LP-Form__Field">
|
|
|
|
{% include 'partials/form/inputField.html' with field=place_form.latitude %}
|
|
|
|
</div>
|
|
|
|
<div class="LP-Form__Field">
|
|
|
|
{% include 'partials/form/inputField.html' with field=place_form.longitude %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="LP-Form__Composition">
|
|
|
|
<div class="LP-Form__Field">
|
|
|
|
{% include 'partials/form/inputField.html' with field=place_form.description %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="LP-Form__Composition">
|
|
|
|
<div class="LP-Form__Field">
|
|
|
|
{% include 'partials/form/inputField.html' with field=place_image_form.filename %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2022-09-24 12:10:19 +02:00
|
|
|
|
2021-04-02 22:06:52 +02:00
|
|
|
{% translate 'Create' as action %}
|
2020-08-17 15:38:52 +02:00
|
|
|
<div class="LP-Form__Composition LP-Form__Composition--buttons">
|
2022-09-24 12:10:19 +02:00
|
|
|
{% include 'partials/form/inputField.html' with field=place_form.draft %}
|
2020-10-11 00:26:10 +02:00
|
|
|
{% include 'partials/form/submit.html' with referrer=request.META.HTTP_REFERER action=action %}
|
2020-08-17 15:38:52 +02:00
|
|
|
</div>
|
2020-08-05 18:57:09 +02:00
|
|
|
</fieldset>
|
2020-07-29 20:22:04 +02:00
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{% endblock maincontent %}
|