From 6ccedcf49c3abe5e576c841e0a0e6fca60a657cb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Wed, 7 Jul 2021 17:18:34 +0200 Subject: [PATCH] Fix dispute template path --- Controller/DefaultController.php | 2 +- Resources/views/default/dispute.html.twig | 33 +++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 Resources/views/default/dispute.html.twig 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 %} -- 2.41.1