WIP Freelancer Submission + alias deletion

This commit is contained in:
Tina_Azure
2023-09-29 13:42:26 +02:00
parent 11ffdac203
commit ed64e48ac7
5 changed files with 183 additions and 2 deletions

View File

@@ -0,0 +1,54 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
{{> templateIncludes/style.css.html}}
</head>
<body>
<h2>Submission Management</h2>
{{^COOKIE_LOGGED_IN}}
Please Log in.
{{/COOKIE_LOGGED_IN}}
{{#COOKIE_LOGGED_IN}}
{{#SUBMISSION_DELETE_FILENAME_ERROR}}
<p>
Invalid filename in request.
</p>
{{/SUBMISSION_DELETE_FILENAME_ERROR}}
{{^SUBMISSION_DELETE_FILENAME_ERROR}}
<p>
Submission to delete: {{filename}}
</p>
<p>
<form action="/freelancer/submissionManagement/view/delete/execution" method="post">
<button type="submit" name="filename" value="{{filename}}" class="button">Confirm deletion of submission and related alias.</button>
</form>
</p>
<p>
Alias related to Submission:
</p>
<table>
{{#submissionlinks}}
<tr>
<th>
<form action="/commissionSubmission/{{aliasname}}" method="get">
<button type="submit" class="button">{{aliasname}}</button>
</form>
</th>
<th>
<a href="https://{{domain}}/commissionSubmission/{{aliasname}}">https://{{domain}}/commissionSubmission/{{aliasname}}</a>
</th>
</tr>
{{/submissionlinks}}
</table>
{{/SUBMISSION_DELETE_FILENAME_ERROR}}
{{/COOKIE_LOGGED_IN}}
{{> templateIncludes/freelancerLoginSignupProfileLogoutInterface.html.html}}
<br>
{{> templateIncludes/returnToIndexButton.html.html}}
</body>
</html>

View File

@@ -0,0 +1,55 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
{{> templateIncludes/style.css.html}}
</head>
<body>
<h2>Submission Management</h2>
{{^COOKIE_LOGGED_IN}}
Please Log in.
{{/COOKIE_LOGGED_IN}}
{{#COOKIE_LOGGED_IN}}
<table>
<tr>
<th>Name</th>
<th>Size (MB)</th>
<th>Upload date</th>
</tr>
{{#submissions}}
<tr>
<th>
<form action="/freelancer/submissionManagement/view/{{filename}}" method="get">
<button type="submit" class="button">{{filename}}</button>
</form>
</th>
<th>{{filesizemb}} MB</th>
<th>{{uploaddate}}</th>
<th>
<form action="/freelancer/submissionManagement/view/delete" method="post">
<button type="submit" name="filename" value="{{filename}}" class="button">Delete</button>
</form>
</th>
<th>
<form action="/freelancer/submissionManagement/view/viewLink/{{filename}}" method="get">
<button type="submit" class="button">View Links</button>
</form>
</th>
<th>
<form action="/freelancer/submissionManagement/view/generateLink" method="post">
<button type="submit" name="filename" value="{{filename}}" class="button">Generate Link</button>
</form>
</th>
</tr>
{{/submissions}}
</table>
{{/COOKIE_LOGGED_IN}}
{{> templateIncludes/freelancerLoginSignupProfileLogoutInterface.html.html}}
<br>
{{> templateIncludes/returnToIndexButton.html.html}}
</body>
</html>