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

General Preferences

Initial Comments Template:
@if (canConfig) { @Html.EditorFor(model => model.InitialCommentsTemplate) @AjaxHelpers.AjaxRemove() @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader() } else { if (string.IsNullOrWhiteSpace(Model.InitialCommentsTemplate)) { <None Specified> } else {
@Model.InitialCommentsTemplate
} }

This template is added to the Comments box shown when creating a job. Expressions can be included. Add expressions inside curly braces, for example:

Justification for {#JobType}:

The following additional variables are available:

  • #TechUser: The user creating the job
  • #User: The user linked to the job (or null if no user is associated)
  • #Device: The user linked to the job (or null if no user is associated)
  • #JobType: The selected job type (for example 'Hardware - Warranty')
  • #JobSubTypes: A list of selected job sub-types (for example ['Motherboard', 'Screen'])

Long Running Threshold: @if (canConfig) { @Html.DropDownListFor(model => model.LongRunningJobDaysThreshold, Model.LongRunningJobDaysThresholdOptions().Select(o => new SelectListItem() { Value = o.Key.ToString(), Text = o.Value })) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader() } else { @Model.LongRunningJobDaysThresholdOptions().First(o => o.Key == Model.LongRunningJobDaysThreshold).Value }
Jobs which have been open for longer than the threshold are considered 'long-running' and will appear in the Long Running Jobs list.
@if (Authorization.Has(Claims.Job.Lists.LongRunningJobs)) {@Html.ActionLinkSmallButton("Show Long Running Jobs", MVC.Job.LongRunning())}
Stale Threshold: @if (canConfig) { @Html.DropDownListFor(model => model.StaleJobMinutesThreshold, Model.StaleJobMinutesThresholdOptions().Select(o => new SelectListItem() { Value = o.Key.ToString(), Text = o.Value })) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader() } else { @Model.StaleJobMinutesThresholdOptions().First(o => o.Key == Model.StaleJobMinutesThreshold).Value }
Jobs which have no recoded action for longer than the threshold are considered 'stale' and will appear in the Stale Jobs list.
@if (Authorization.Has(Claims.Job.Lists.LongRunningJobs)) {@Html.ActionLinkSmallButton("Show Stale Jobs", MVC.Job.Stale())}
Lodgment: @if (canConfig) { @Html.CheckBoxFor(model => model.LodgmentIncludeAllAttachmentsByDefault) @AjaxHelpers.AjaxSave() @AjaxHelpers.AjaxLoader()

If enabled, all attachments will be selected by default when lodging a job.

} else { @(Model.LodgmentIncludeAllAttachmentsByDefault ? "Yes" : "No") }