Implement basic editing of offer

This commit is contained in:
Jannis Portmann 2021-05-09 17:23:02 +02:00
parent 47033e8677
commit 54486d008c
2 changed files with 55 additions and 1 deletions

View file

@ -0,0 +1,19 @@
{% extends 'base.html.twig' %}
{% block body %}
{% for message in app.flashes('error') %}
<div class="alert alert-error" role="alert">
{{ message }}
</div>
{% endfor %}
<h1 class="mb-3">Add new offer</h1>
{{ form_start(offer_form) }}
{{ form_row(offer_form.title) }}
{{ form_row(offer_form.zipCode) }}
{{ form_row(offer_form.description) }}
{{ form_row(offer_form.photo, {
label: 'Choose file'
}) }}
{{ form_end(offer_form) }}
{% endblock %}