Skip to content

Commit

Permalink
add submission title to submission edit screen
Browse files Browse the repository at this point in the history
  • Loading branch information
adelikat committed Jan 1, 2025
1 parent ace9af6 commit 129db21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion TASVideos/Pages/Submissions/Edit.cshtml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@page "{id}"
@model EditModel
@{
ViewData.SetTitle($"Edit Submission #{Model.Id}");
ViewData.SetTitle($"Edit Submission {Model.Submission.Title}");
var canEditPublicationClass = User.Has(PermissionTo.JudgeSubmissions)
&& Model.AvailableStatuses.Any(s => s == SubmissionStatus.Accepted);
}
Expand Down
4 changes: 3 additions & 1 deletion TASVideos/Pages/Submissions/Edit.cshtml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ public async Task<IActionResult> OnGet()
Publisher = s.Publisher != null ? s.Publisher.UserName : "",
IntendedPublicationClass = s.IntendedClassId,
RejectionReason = s.RejectionReasonId,
ExternalAuthors = s.AdditionalAuthors
ExternalAuthors = s.AdditionalAuthors,
Title = s.Title
})
.SingleOrDefaultAsync();

Expand Down Expand Up @@ -498,5 +499,6 @@ public class SubmissionEdit
public string? Judge { get; init; }
public string? Publisher { get; init; }
public string? ExternalAuthors { get; init; }
public string Title { get; init; } = "";
}
}

0 comments on commit 129db21

Please sign in to comment.