From: Raphaƫl Gertz Date: Wed, 7 Jul 2021 15:18:34 +0000 (+0200) Subject: Fix dispute template path X-Git-Tag: 0.2.4~39 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/6ccedcf49c3abe5e576c841e0a0e6fca60a657cb Fix dispute template path --- diff --git a/Controller/DefaultController.php b/Controller/DefaultController.php index c64a96c..034448a 100644 --- a/Controller/DefaultController.php +++ b/Controller/DefaultController.php @@ -351,7 +351,7 @@ class DefaultController { } //Render template - return $this->render('@RapsysAir/form/dispute.html.twig', ['title' => $title, 'section' => $section, 'form' => $form->createView(), 'sent' => $request->query->get('sent', 0)]+$this->context); + return $this->render('@RapsysAir/default/dispute.html.twig', ['title' => $title, 'section' => $section, 'form' => $form->createView(), 'sent' => $request->query->get('sent', 0)]+$this->context); } /** diff --git a/Resources/views/default/dispute.html.twig b/Resources/views/default/dispute.html.twig new file mode 100644 index 0000000..9fd930e --- /dev/null +++ b/Resources/views/default/dispute.html.twig @@ -0,0 +1,33 @@ +{% extends '@RapsysAir/body.html.twig' %} +{% block content %} +
+
+

{{ section }}

+

{{ description }}

+
+ {% if sent %} +

{% trans %}Your message has been sent{% endtrans %}

+ {% else %} + {{ form_start(form) }} +
+ {{ form_row(form.offense) }} + + {{ form_row(form.court) }} + + {{ form_row(form.notice) }} + + {{ form_row(form.agent) }} + + {{ form_row(form.service) }} + + {{ form_row(form.abstract) }} + + {{ form_row(form.submit) }} +
+ + {# Render CSRF token etc .#} + + {{ form_end(form) }} + {% endif %} +
+{% endblock %}