diff options
author | Ian C <ianc@noddybox.co.uk> | 2024-03-21 14:54:11 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2024-03-21 14:54:11 +0000 |
commit | 9764af998a4c91196687b8d27693b935a243ab84 (patch) | |
tree | d5f4bf49be0db32f8cfc78a4d76df82be14a2060 /Pages/Index.cshtml |
Initial checkin following project regeneration to make post work
Diffstat (limited to 'Pages/Index.cshtml')
-rw-r--r-- | Pages/Index.cshtml | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/Pages/Index.cshtml b/Pages/Index.cshtml new file mode 100644 index 0000000..9c1f3c2 --- /dev/null +++ b/Pages/Index.cshtml @@ -0,0 +1,48 @@ +@page +@model download_admin.Pages.IndexModel +@using download_admin.Pages +<!DOCTYPE html> +<html> + <head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>Download Repsoitory Editor</title> + </head> + <body> + <a href="report">Download Report</a><br> + @if (Model.HasError) + { + <p style="color:red"><b>@Model.ErrorText</b></p> + } + <table> + <tr> + <td style="width:25%;"><b>Key</b></td> + <td style="width:20%;"><b>Mime type</b></td> + <td style="width:20%;"><b>File name</b></td> + <td style="width:15%;"><b>File data</b></td> + <td style="width:20%;"><b>Commands</b></td> + </tr> + @foreach(FileObject obj in Model.Rows) + { + <tr> + <form enctype="multipart/form-data" method="post"> + <td><input type=text name="Key" maxlength=64 value="@obj.Key"></td> + <td><input type=text name="MimeType" maxlength=64 value="@obj.MimeType"></td> + <td><input type=text name="Filename" maxlength=64 value="@obj.FileName"></td> + <td><input type=file name="Data"></td> + <td><input type="submit" name="update" value="Update"><input type="submit" name="delete" value="Delete"></td> + </form> + </tr> + } + <tr> + <form enctype="multipart/form-data" method="post"> + <td><input type=text name="Key" maxlength=64 value=""></td> + <td><input type=text name="MimeType" maxlength=64 value=""></td> + <td><input type=text name="Filename" maxlength=64 value=""></td> + <td><input type=file name="Data"></td> + <td><input type="submit" name="add" value="Add"></td> + </form> + </tr> + </table> + </body> +</html> |