- Added translation for "No Vehicles Available" in _VehicleSelector.cshtml - Added translations for the DB-Migration tool - Added the new translation records to the default language file en_US.json
26 lines
910 B
Plaintext
26 lines
910 B
Plaintext
@inject IConfigHelper config
|
|
@inject ITranslationHelper translator
|
|
@using CarCareTracker.Helper
|
|
@model List<Vehicle>
|
|
|
|
@{
|
|
var userLanguage = config.GetUserConfig(User).UserLanguage;
|
|
}
|
|
|
|
@if (Model.Any())
|
|
{
|
|
<div id="vehicleSelector">
|
|
<ul class="list-group">
|
|
@foreach (Vehicle vehicle in Model)
|
|
{
|
|
<li class="list-group-item text-start">
|
|
<input class="form-check-input" type="checkbox" value="@vehicle.Id" id="vehicleCheck_@vehicle.Id">
|
|
<label class="form-check-label stretched-link" for="vehicleCheck_@vehicle.Id">@($"{vehicle.Year} {vehicle.Make} {vehicle.Model} ({StaticHelper.GetVehicleIdentifier(vehicle)})")</label>
|
|
</li>
|
|
}
|
|
</ul>
|
|
</div>
|
|
} else
|
|
{
|
|
<div id="vehicleSelector"><span class="lead">@translator.Translate(userLanguage, "No Vehicles Available")</span></div>
|
|
} |