Skip to content

Commit

Permalink
Add a notice (system page) to the submission edit form
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiRulz committed Oct 1, 2024
1 parent 1c8faf3 commit 47cd251
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions TASVideos/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
3 changes: 3 additions & 0 deletions TASVideos/Pages/Submissions/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
var canEditPublicationClass = User.Has(PermissionTo.JudgeSubmissions)
&& Model.AvailableStatuses.Any(s => s == SubmissionStatus.Accepted);
}
<info-alert dismissible="true">
@await Html.RenderWiki(SystemWiki.EditMovieHeader)
</info-alert>
<top-button-bar condition="Model.CanDelete">
<a asp-page="Delete" asp-route-id="@Model.Id" class="btn btn-danger btn-sm">
<i class="fa fa-remove"></i> Delete
Expand Down

0 comments on commit 47cd251

Please sign in to comment.