Resolve "Add warranty to admin panel" #1088

Merged
korina.cordero merged 7 commits from 236-add-warranty-to-admin-panel into master 2019-07-30 06:35:59 +00:00
2 changed files with 1 additions and 5 deletions
Showing only changes of commit 9c2fd4ed3a - Show all commits

View file

@ -371,8 +371,4 @@ class WarrantyController extends Controller
->setParameter('filter', '%' . $datatable['query']['data-rows-search'] . '%');
}
}
}

View file

@ -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>