Job Expressions

Expressions can be triggered when jobs are created and closed
This commit is contained in:
Gary Sharp
2016-11-09 22:26:43 +11:00
parent 065b14b158
commit b52cbcb94a
22 changed files with 902 additions and 41 deletions
@@ -17,6 +17,11 @@ namespace Disco.Web.Areas.Config.Models.JobPreferences
public LocationModes LocationMode { get; set; }
public List<string> LocationList { get; set; }
[DataType(DataType.MultilineText)]
public string OnCreateExpression { get; set; }
[DataType(DataType.MultilineText)]
public string OnCloseExpression { get; set; }
public List<KeyValuePair<string, string>> DefaultNoticeboardThemeOptions()
{
return UIHelpers.NoticeboardThemes.ToList();