@model Disco.Web.Areas.Config.Models.JobPreferences.IndexModel @{ Authorization.Require(Claims.Config.JobPreferences.Show); var canConfig = Authorization.Has(Claims.Config.JobPreferences.Configure); }
|
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:
|
|
| 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
@if (Authorization.Has(Claims.Job.Lists.LongRunningJobs))
{@Html.ActionLinkSmallButton("Show Long Running Jobs", MVC.Job.LongRunning())}
Long Running Jobs list.
|
|---|---|
| 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
@if (Authorization.Has(Claims.Job.Lists.LongRunningJobs))
{@Html.ActionLinkSmallButton("Show Stale Jobs", MVC.Job.Stale())}
Stale Jobs list.
|
| 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. |