@model Disco.Web.Areas.Config.Models.JobPreferences.IndexModel @{ Authorization.Require(Claims.Config.JobPreferences.Show); var canConfig = Authorization.Has(Claims.Config.JobPreferences.Configure); }

Job Locations

Mode: @if (canConfig) { @Html.DropDownListFor(model => model.LocationMode, Model.LocationModeOptions().Select(o => new SelectListItem() { Value = o.Key.ToString(), Text = o.Value })) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader()

Technicians will be able to specify any value when entering a location. A selection of locations used historically will be offered.

Update List Import List
@using (Html.BeginForm(MVC.API.JobPreferences.UpdateLocationList(null, redirect: true))) { @Html.AntiForgeryToken()
The List is Empty
    @foreach (var loc in Model.LocationList) {
  • @loc
  • }
}
@using (Html.BeginForm(MVC.API.JobPreferences.ImportLocationList(null, redirect: true))) { @Html.AntiForgeryToken()

Enter multiple locations separated by <new line>, commas (,) or semicolons (;).

}

Technicians will be able to specify any value when entering a location. A defined list of location options is suggested.

Technicians are restricted to select a location from the defined list.

} else { @Model.LocationModeOptions().First(o => o.Key == Model.LocationMode.ToString()).Value }