Skip to content

Commit

Permalink
Cleanup hidden page search field
Browse files Browse the repository at this point in the history
  • Loading branch information
okmiim committed May 17, 2022
1 parent 647f9e0 commit c316397
Showing 1 changed file with 7 additions and 13 deletions.
20 changes: 7 additions & 13 deletions Resources/Private/Templates/Calendar/Search.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
<f:form pageUid="{settings.listPid}" id="calendarizeSearchForm">
<div class="tx-calendarize-hidden-fields">
<f:form.hidden
id="calendarizePage"
name="currentPage"
value="1"
/>
</div>
<div class="form-group">
<label for="calendarizeStartDate"><f:translate key="search.start_date" extensionName="Calendarize" /></label>
<f:form.textfield type="date" name="startDate" id="calendarizeStartDate" class="form-control" value="{startDate -> f:format.date(format: 'Y-m-d')}" />
Expand All @@ -11,18 +18,5 @@
<f:for each="{configurations}" as="configuration">
<f:render partial="{configuration.partialIdentifier}/Search" arguments="{customSearch: customSearch, extended: extended}" />
</f:for>

<div class="form-group d-none">
<label for="calendarizePage"><f:translate key="pagination.page" extensionName="Calendarize" /></label>
<f:form.textfield
type="number"
id="calendarizePage"
name="currentPage"
class="form-control"
value="{f:if(condition: currentPage, then: currentPage, else: 1)}"
additionalAttributes="{min: '1'}"
/>
</div>

<button type="submit" class="btn btn-primary"><f:translate key="search.button_label" extensionName="Calendarize" /></button>
</f:form>

0 comments on commit c316397

Please sign in to comment.