improve ux datepicker for persian dates

master v2.2.3
A1Gard 2 months ago
parent d1fb62ef30
commit 9dd5008ee2

@ -105,7 +105,7 @@
</label>
{{-- WIP for lang change def tab--}}
<vue-datetime-picker-input :xmin="{{strtotime('yesterday')}}"
xid="dp" xname="expire" xshow="date" xtitle="Expire date" def-tab="1"
xid="dp" xname="expire" xtitle="Expire date" @if(app()->getLocale() != 'fa') def-tab="1" xshow="date" @else xshow="pdate" @endif
@if(isset($item)) :xvalue="{{strtotime($item->expire)}}" @endif
></vue-datetime-picker-input>
</div>

@ -104,7 +104,7 @@
</label>
<vue-datetime-picker-input
:xmax="{{strtotime('yesterday')}}"
xid="dp" xname="dob" xshow="pdate" xtitle="{{__("Date of born")}}" def-tab="0"
xid="dp" xname="dob" xtitle="{{__("Date of born")}}" @if(app()->getLocale() != 'fa') def-tab="1" xshow="date" @else xshow="pdate" @endif
@if(isset($item)) :xvalue="{{strtotime($item->dob)}}" @endif
:timepicker="false"
></vue-datetime-picker-input>

@ -44,7 +44,7 @@
</label>
<vue-datetime-picker-input
:xmin="{{strtotime('yesterday')}}"
xid="dp" xname="expire" xshow="datetime" xtitle="Expire date" def-tab="1"
xid="dp" xname="expire" xtitle="Expire date" @if(app()->getLocale() != 'fa') def-tab="1" xshow="datetime" @else xshow="pdatetime" @endif
@if(isset($item)) :xvalue="{{strtotime($item->expire)}}" @endif
:timepicker="true"
></vue-datetime-picker-input>

@ -287,7 +287,8 @@
</label>
<vue-datetime-picker-input
:xmax="{{strtotime('yesterday')}}"
xid="dp" xname="dob" xshow="pdate" xtitle="{{__("Date of born")}}" def-tab="0"
xid="dp" xname="dob" xtitle="{{__("Date of born")}}"
@if(app()->getLocale() != 'fa') def-tab="1" xshow="date" @else xshow="pdate" @endif
:xvalue="{{strtotime(auth('customer')->user()->dob)}}"
:timepicker="false"
></vue-datetime-picker-input>

Loading…
Cancel
Save