update
This commit is contained in:
@ -11,18 +11,18 @@
|
||||
@section('customcss')
|
||||
<style>
|
||||
/* .select2-container {
|
||||
z-index: 99999;
|
||||
} */
|
||||
z-index: 99999;
|
||||
} */
|
||||
|
||||
/* .landscape-photo {
|
||||
max-height: max(21vh, 210px);
|
||||
} */
|
||||
max-height: max(21vh, 210px);
|
||||
} */
|
||||
|
||||
/* .thumb-img-table {
|
||||
width: max(4vw, 75px);
|
||||
height: max(4vh, 55px);
|
||||
object-fit: cover;
|
||||
} */
|
||||
width: max(4vw, 75px);
|
||||
height: max(4vh, 55px);
|
||||
object-fit: cover;
|
||||
} */
|
||||
</style>
|
||||
@endsection
|
||||
|
||||
@ -146,10 +146,22 @@
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="mb-0">
|
||||
<label for="add-speedlimit" class="col-form-label">Speed Limit (kph):</label>
|
||||
<input type="number" id="add-speedlimit" class="form-control">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-0">
|
||||
<label for="add-speedlimit" class="col-form-label">Speed Limit (kph):</label>
|
||||
<input type="number" id="add-speedlimit" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-0">
|
||||
<label for="add-sum_milleage" class="col-form-label">Current Mileage (km):</label>
|
||||
<input type="number" id="add-sum_milleage" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -351,9 +363,19 @@
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
<div class="mb-0">
|
||||
<label for="edt-speedlimit" class="col-form-label">Speed Limit (kph):</label>
|
||||
<input type="number" id="edt-speedlimit" class="form-control">
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-0">
|
||||
<label for="edt-speedlimit" class="col-form-label">Speed Limit (kph):</label>
|
||||
<input type="number" id="edt-speedlimit" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="mb-0">
|
||||
<label for="edt-sum_milleage" class="col-form-label">Current Mileage (km):</label>
|
||||
<input type="number" id="edt-sum_milleage" class="form-control">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1002,6 +1024,7 @@
|
||||
data.append('type_id', safeVal('#add-type'));
|
||||
data.append('model_id', safeVal('#add-model') ?? 0);
|
||||
data.append('speed_limit', safeVal('#add-speedlimit'));
|
||||
data.append('sum_milleage', safeVal('#add-sum_milleage'));
|
||||
data.append('fuel_capacity', safeVal('#add-fuelcapacity') ?? 0);
|
||||
data.append('fuel_drop_treshold', safeVal('#add-fueldroptreshold') ?? 0);
|
||||
data.append('max_pressure', safeVal('#add-maxpressure') ?? 0);
|
||||
@ -1217,6 +1240,7 @@
|
||||
$('#edt-model').val(data?.model_id).trigger('change');
|
||||
|
||||
$('#edt-speedlimit').val(data?.speed_limit);
|
||||
$('#edt-sum_milleage').val(data?.sum_milleage);
|
||||
$('#edt-fuelcapacity').val(data?.fuel_capacity);
|
||||
$('#edt-fueldroptreshold').val(data?.fuel_drop_treshold);
|
||||
$('#edt-maxpressure').val(data?.max_pressure);
|
||||
@ -1272,6 +1296,7 @@
|
||||
data.model_id = $('#edt-model').val();
|
||||
|
||||
data.speed_limit = $('#edt-speedlimit').val();
|
||||
data.sum_milleage = $('#edt-sum_milleage').val();
|
||||
data.fuel_capacity = $('#edt-fuelcapacity').val();
|
||||
data.fuel_drop_treshold = $('#edt-fueldroptreshold').val();
|
||||
data.max_pressure = $('#edt-maxpressure').val();
|
||||
|
||||
Reference in New Issue
Block a user