Skip to content
Snippets Groups Projects
Commit 4bca2fc3 authored by Johannes Kreiner's avatar Johannes Kreiner
Browse files

[TASK] Provide data-section to jump to filter form after submit

parent 6f469d23
No related branches found
No related tags found
No related merge requests found
......@@ -334,6 +334,7 @@ class JoblistController extends ActionController {
$this->view->assign('jobs', $jobs);
$this->view->assign('limit', $jobLimit);
$this->view->assign('numberOfPages', $numberOfPages);
$this->view->assign('data', $this->request->getAttribute('currentContentObject')->data);
return $this->htmlResponse();
}
......
<f:form id="sgjobs-filter" class="text-bg-light p-6 rounded shadow-small vstack gap-8 mb-2" action="index" controller="Joblist" method="get"
objectName="filters" object="{filters}" hiddenFieldClassName="d-none">
objectName="filters" object="{filters}" hiddenFieldClassName="d-none" additionalAttributes="{'data-section': 'c{data.uid}'}">
<f:form.hidden value="{limit}" name="filter-limit"/>
<f:form.hidden id="filter-recordPageId" name="recordPageIds" value="{recordPageIds}"/>
<div class="row default-content-element">
......
......@@ -11,7 +11,8 @@
functions: functions, selectedCountry: selectedCountry, selectedCompany: selectedCompany,
selectedLocation: selectedLocation, selectedDepartment: selectedDepartment,
selectedExperienceLevel: selectedExperienceLevel, selectedFunction: selectedFunction, selectedRemote: selectedRemote,
limit: limit }"
limit: limit,
data: data }"
/>
<div class="row default-content-element equal-height-columns stretch-first-child">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment