Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve UX for users looking to replace the movie files in their submissions #1994

Merged
merged 5 commits into from
Oct 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading