feature: initial comments template

completes #150
This commit is contained in:
Gary Sharp
2025-01-24 17:28:27 +11:00
parent 408e1c4c14
commit 0853bcee50
39 changed files with 956 additions and 527 deletions
@@ -361,6 +361,12 @@ namespace Disco.Web.Areas.API.Controllers
}
[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public virtual System.Web.Mvc.ActionResult InitialComments()
{
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.InitialComments);
}
[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public virtual System.Web.Mvc.ActionResult Comments()
{
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.Comments);
@@ -527,6 +533,7 @@ namespace Disco.Web.Areas.API.Controllers
public readonly string Reopen = "Reopen";
public readonly string Delete = "Delete";
public readonly string ConvertHWarToHNWar = "ConvertHWarToHNWar";
public readonly string InitialComments = "InitialComments";
public readonly string Comments = "Comments";
public readonly string Comment = "Comment";
public readonly string CommentPost = "CommentPost";
@@ -601,6 +608,7 @@ namespace Disco.Web.Areas.API.Controllers
public const string Reopen = "Reopen";
public const string Delete = "Delete";
public const string ConvertHWarToHNWar = "ConvertHWarToHNWar";
public const string InitialComments = "InitialComments";
public const string Comments = "Comments";
public const string Comment = "Comment";
public const string CommentPost = "CommentPost";
@@ -1119,6 +1127,14 @@ namespace Disco.Web.Areas.API.Controllers
public readonly string id = "id";
public readonly string redirect = "redirect";
}
static readonly ActionParamsClass_InitialComments s_params_InitialComments = new ActionParamsClass_InitialComments();
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public ActionParamsClass_InitialComments InitialCommentsParams { get { return s_params_InitialComments; } }
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public class ActionParamsClass_InitialComments
{
public readonly string m = "m";
}
static readonly ActionParamsClass_Comments s_params_Comments = new ActionParamsClass_Comments();
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public ActionParamsClass_Comments CommentsParams { get { return s_params_Comments; } }
@@ -1978,6 +1994,18 @@ namespace Disco.Web.Areas.API.Controllers
return callInfo;
}
[NonAction]
partial void InitialCommentsOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, Disco.Web.Models.Job.CreateModel m);
[NonAction]
public override System.Web.Mvc.ActionResult InitialComments(Disco.Web.Models.Job.CreateModel m)
{
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.InitialComments);
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "m", m);
InitialCommentsOverride(callInfo, m);
return callInfo;
}
[NonAction]
partial void CommentsOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int id);
@@ -59,6 +59,12 @@ namespace Disco.Web.Areas.API.Controllers
return RedirectToActionPermanent(taskResult.Result);
}
[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public virtual System.Web.Mvc.ActionResult UpdateInitialCommentsTemplate()
{
return new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.UpdateInitialCommentsTemplate);
}
[NonAction]
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public virtual System.Web.Mvc.ActionResult UpdateLongRunningJobDaysThreshold()
@@ -135,6 +141,7 @@ namespace Disco.Web.Areas.API.Controllers
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public class ActionNamesClass
{
public readonly string UpdateInitialCommentsTemplate = "UpdateInitialCommentsTemplate";
public readonly string UpdateLongRunningJobDaysThreshold = "UpdateLongRunningJobDaysThreshold";
public readonly string UpdateStaleJobMinutesThreshold = "UpdateStaleJobMinutesThreshold";
public readonly string UpdateLodgmentIncludeAllAttachmentsByDefault = "UpdateLodgmentIncludeAllAttachmentsByDefault";
@@ -150,6 +157,7 @@ namespace Disco.Web.Areas.API.Controllers
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public class ActionNameConstants
{
public const string UpdateInitialCommentsTemplate = "UpdateInitialCommentsTemplate";
public const string UpdateLongRunningJobDaysThreshold = "UpdateLongRunningJobDaysThreshold";
public const string UpdateStaleJobMinutesThreshold = "UpdateStaleJobMinutesThreshold";
public const string UpdateLodgmentIncludeAllAttachmentsByDefault = "UpdateLodgmentIncludeAllAttachmentsByDefault";
@@ -163,6 +171,15 @@ namespace Disco.Web.Areas.API.Controllers
}
static readonly ActionParamsClass_UpdateInitialCommentsTemplate s_params_UpdateInitialCommentsTemplate = new ActionParamsClass_UpdateInitialCommentsTemplate();
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public ActionParamsClass_UpdateInitialCommentsTemplate UpdateInitialCommentsTemplateParams { get { return s_params_UpdateInitialCommentsTemplate; } }
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public class ActionParamsClass_UpdateInitialCommentsTemplate
{
public readonly string initialCommentsTemplate = "initialCommentsTemplate";
public readonly string redirect = "redirect";
}
static readonly ActionParamsClass_UpdateLongRunningJobDaysThreshold s_params_UpdateLongRunningJobDaysThreshold = new ActionParamsClass_UpdateLongRunningJobDaysThreshold();
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public ActionParamsClass_UpdateLongRunningJobDaysThreshold UpdateLongRunningJobDaysThresholdParams { get { return s_params_UpdateLongRunningJobDaysThreshold; } }
@@ -274,6 +291,19 @@ namespace Disco.Web.Areas.API.Controllers
{
public T4MVC_JobPreferencesController() : base(Dummy.Instance) { }
[NonAction]
partial void UpdateInitialCommentsTemplateOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, string initialCommentsTemplate, bool redirect);
[NonAction]
public override System.Web.Mvc.ActionResult UpdateInitialCommentsTemplate(string initialCommentsTemplate, bool redirect)
{
var callInfo = new T4MVC_System_Web_Mvc_ActionResult(Area, Name, ActionNames.UpdateInitialCommentsTemplate);
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "initialCommentsTemplate", initialCommentsTemplate);
ModelUnbinderHelpers.AddRouteValues(callInfo.RouteValueDictionary, "redirect", redirect);
UpdateInitialCommentsTemplateOverride(callInfo, initialCommentsTemplate, redirect);
return callInfo;
}
[NonAction]
partial void UpdateLongRunningJobDaysThresholdOverride(T4MVC_System_Web_Mvc_ActionResult callInfo, int LongRunningJobDaysThreshold, bool redirect);
@@ -110,13 +110,11 @@ namespace Disco.Web.Areas.Config.Controllers
public readonly string Expressions = "Expressions";
public readonly string General = "General";
public readonly string Locations = "Locations";
public readonly string Lodgment = "Lodgment";
public readonly string Reports = "Reports";
}
public readonly string Expressions = "~/Areas/Config/Views/JobPreferences/Parts/Expressions.cshtml";
public readonly string General = "~/Areas/Config/Views/JobPreferences/Parts/General.cshtml";
public readonly string Locations = "~/Areas/Config/Views/JobPreferences/Parts/Locations.cshtml";
public readonly string Lodgment = "~/Areas/Config/Views/JobPreferences/Parts/Lodgment.cshtml";
public readonly string Reports = "~/Areas/Config/Views/JobPreferences/Parts/Reports.cshtml";
}
}