Skip to content

Commit

Permalink
Merge pull request #647 from maykinmedia/issue/1509-open-forms-integr…
Browse files Browse the repository at this point in the history
…ation

[#1509] fix template 'form.html'
  • Loading branch information
alextreme authored Jun 13, 2023
2 parents 49ff96c + 420d501 commit 7b803ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
11 changes: 0 additions & 11 deletions src/open_inwoner/pdc/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,17 +228,6 @@ def crumbs(self):
(_("Formulier"), self.request.path),
]

def get_context_data(self, **kwargs):
product = self.get_object()
context = super().get_context_data(**kwargs)

anchors = [
("#title", product.name),
]

context["anchors"] = anchors
return context


class ProductFinderView(CommonPageMixin, FormView):
template_name = "pages/product/finder.html"
Expand Down
6 changes: 4 additions & 2 deletions src/open_inwoner/templates/pages/product/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@

{% endblock %}

{% block sidebar_content %}
{% endblock %}

{% block content %}

<h1 class="h1" id="title">
Expand All @@ -17,10 +20,9 @@ <h1 class="h1" id="title">
{% endif %}
</h1>
{% tag tags=object.tags.all %}
<p class="p">{{ object.summary }}</p>

{% if object.form %}
{% openforms_form object.form csp_nonce=request.csp_nonce %}
{% endif %}

{% endblock %}
{% endblock %}

0 comments on commit 7b803ca

Please sign in to comment.