From 3d0b36381ecfc1faacd6c6d9beba0618dc2dfddb Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Tue, 1 Oct 2024 11:25:57 +1000 Subject: [PATCH] Add a notice (system page) to the submission edit form --- TASVideos/Constants.cs | 1 + TASVideos/Pages/Submissions/Edit.cshtml | 3 +++ 2 files changed, 4 insertions(+) diff --git a/TASVideos/Constants.cs b/TASVideos/Constants.cs index 9e26e77a0..d3679db58 100644 --- a/TASVideos/Constants.cs +++ b/TASVideos/Constants.cs @@ -19,6 +19,7 @@ public static class SystemWiki public const string ActivitySummary = "System/ActivitySummary"; public const string AvatarRequirements = "System/AvatarRequirements"; public const string ClassEditingHelp = "System/ClassEditingHelp"; + public const string EditMovieHeader = "System/EditMovieHeader"; public const string EmailConfirmationSentMessage = "System/EmailConfirmationSentMessage"; public const string Error = "System/Error"; public const string FilesEditingHelp = "System/FilesEditingHelp"; diff --git a/TASVideos/Pages/Submissions/Edit.cshtml b/TASVideos/Pages/Submissions/Edit.cshtml index 0e17618d6..d974f0116 100644 --- a/TASVideos/Pages/Submissions/Edit.cshtml +++ b/TASVideos/Pages/Submissions/Edit.cshtml @@ -5,6 +5,9 @@ var canEditPublicationClass = User.Has(PermissionTo.JudgeSubmissions) && Model.AvailableStatuses.Any(s => s == SubmissionStatus.Accepted); } + + @await Html.RenderWiki(SystemWiki.EditMovieHeader) + Delete