Merge branch '51-remove-shortening-in-tables' into 'master'
Resolve "Remove ... shortening in tables" Closes #51 See merge request jankstudio/resq!47
This commit is contained in:
commit
9e2cb60212
4 changed files with 21 additions and 20 deletions
|
|
@ -281,7 +281,8 @@ class VehicleManufacturerController extends BaseController
|
|||
'mfg_name' => $vehicle->getManufacturer()->getName(),
|
||||
'make' => $vehicle->getMake(),
|
||||
'model_year_from' => $vehicle->getModelYearFrom(),
|
||||
'model_year_to' => $vehicle->getModelYearTo()
|
||||
'model_year_to' => $vehicle->getModelYearTo(),
|
||||
'model_year' => $vehicle->getModelYearFormatted(),
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -377,8 +377,7 @@
|
|||
id: "{{ vehicle.getID }}",
|
||||
mfg_name: "{{ vehicle.getManufacturer.getName }}",
|
||||
make: "{{ vehicle.getMake }}",
|
||||
model_year_from: "{{ vehicle.getModelYearFrom }}",
|
||||
model_year_to: "{{ vehicle.getModelYearTo }}"
|
||||
model_year: "{{ vehicle.getModelYearFormatted }}",
|
||||
};
|
||||
|
||||
vehicleRows.push(vrow);
|
||||
|
|
@ -410,7 +409,10 @@
|
|||
var html = '';
|
||||
|
||||
$.each(response.data, function(index, vehicle) {
|
||||
html += '<option value="' + vehicle.id + '" data-index="' + index + '">' + vehicle.make + ' (' + vehicle.model_year_from + '-' + vehicle.model_year_to + ')</option>';
|
||||
var model_year = ''
|
||||
if (vehicle.model_year != "-")
|
||||
model_year = ' (' + vehicle.model_year + ')';
|
||||
html += '<option value="' + vehicle.id + '" data-index="' + index + '">' + vehicle.make + model_year + '</option>';
|
||||
});
|
||||
|
||||
field.html(html).prop('disabled', false);
|
||||
|
|
@ -485,7 +487,7 @@
|
|||
{
|
||||
field: 'id',
|
||||
title: 'ID',
|
||||
width: 30
|
||||
width: 60
|
||||
},
|
||||
{
|
||||
field: 'mfg_name',
|
||||
|
|
@ -496,11 +498,8 @@
|
|||
title: 'Make'
|
||||
},
|
||||
{
|
||||
field: 'model_year_from',
|
||||
field: 'model_year',
|
||||
title: 'Year',
|
||||
template: function (data) {
|
||||
return data.model_year_from + ' - ' + data.model_year_to;
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'Actions',
|
||||
|
|
|
|||
|
|
@ -101,15 +101,15 @@
|
|||
width: 150
|
||||
},
|
||||
*/
|
||||
{
|
||||
field: 'model_name',
|
||||
title: 'Brand',
|
||||
width: 150
|
||||
},
|
||||
{
|
||||
field: 'size_name',
|
||||
title: 'Size',
|
||||
width: 100
|
||||
width: 180
|
||||
},
|
||||
{
|
||||
field: 'model_name',
|
||||
title: 'Brand',
|
||||
width: 120
|
||||
},
|
||||
/*
|
||||
{
|
||||
|
|
@ -121,16 +121,17 @@
|
|||
{
|
||||
field: 'warr_private',
|
||||
title: 'Private Wty.',
|
||||
width: 170
|
||||
width: 50
|
||||
},
|
||||
{
|
||||
field: 'warr_commercial',
|
||||
title: 'Commercial Wty.',
|
||||
width: 170
|
||||
width: 50
|
||||
},
|
||||
{
|
||||
field: 'sell_price',
|
||||
title: 'Price'
|
||||
title: 'Price',
|
||||
width: 100
|
||||
},
|
||||
{
|
||||
field: 'Actions',
|
||||
|
|
@ -188,4 +189,4 @@
|
|||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@
|
|||
{
|
||||
field: 'id',
|
||||
title: 'ID',
|
||||
width: 30
|
||||
width: 60
|
||||
},
|
||||
{
|
||||
field: 'mfg_name',
|
||||
|
|
|
|||
Loading…
Reference in a new issue