Add default value for purchase date. Default for date expiry and date claim is empty. #236
This commit is contained in:
parent
ad27ec3cf2
commit
9c2fd4ed3a
2 changed files with 1 additions and 5 deletions
|
|
@ -371,8 +371,4 @@ class WarrantyController extends Controller
|
|||
->setParameter('filter', '%' . $datatable['query']['data-rows-search'] . '%');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@
|
|||
<div class="col-lg-6">
|
||||
<label data-field="date_expire">Expiry Date</label>
|
||||
<div class="input-group date dp">
|
||||
<input type="text" name="date_expire" class="form-control m-input" value="{{ obj.getDateExpire|default("now")|date('d M Y') }}" readonly placeholder="Select a date">
|
||||
<input type="text" name="date_expire" class="form-control m-input" value="{{ obj.getDateExpire is empty? "" : obj.getDateExpire|date('Y-m-d') }}" value="{{ obj.getDateExpire is empty? "" : obj.getDateExpire|date('Y-m-d') }}" readonly placeholder="Select a date">
|
||||
<span class="input-group-addon">
|
||||
<i class="la la-calendar glyphicon-th"></i>
|
||||
</span>
|
||||
|
|
|
|||
Loading…
Reference in a new issue