Skip to content
Snippets Groups Projects
Commit 2a9ff722 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

filter applying max range of 1 year to input field aswell

parent cdf15908
No related branches found
No related tags found
3 merge requests!1937Development,!1926Development,!1925Resolve "Modify Date Filter"
<div id="bing-from-to">
<input type="date" form="searchForm" @if(Request::filled("ff")) value="{{ Request::input("ff", "") }}" @endif name="ff" onchange="if(document.querySelector('input[name=ff]').value != '' && document.querySelector('input[name=ft]').value != ''){this.form.submit();}">
<div>&nbsp;-&nbsp;</div>
<input type="date" form="searchForm" @if(Request::filled("ft")) value="{{ Request::input("ft", "") }}" @endif name="ft" onchange="if(document.querySelector('input[name=ff]').value != '' && document.querySelector('input[name=ft]').value != ''){this.form.submit();}">
<input type="date" min="{{ Carbon::now()->subYear()->format("Y-m-d") }}" max="{{ Carbon::now()->format("Y-m-d") }}" form="searchForm" @if(Request::filled("ff")) value="{{ Request::input("ff", "") }}" @endif name="ff" onchange="if(document.querySelector('input[name=ff]').value != '' && document.querySelector('input[name=ft]').value != ''){this.form.submit();}">
<div>&nbsp;-&nbsp;</div>
<input type="date" min="{{ Carbon::now()->subYear()->format("Y-m-d") }}" max="{{ Carbon::now()->format("Y-m-d") }}" form="searchForm" @if(Request::filled("ft")) value="{{ Request::input("ft", "") }}" @endif name="ft" onchange="if(document.querySelector('input[name=ff]').value != '' && document.querySelector('input[name=ft]').value != ''){this.form.submit();}">
</div>
\ No newline at end of file
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