blob: 06a955f21e428afa5fc4416749ccf12124bfee5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
@page
@model download_admin.Pages.IndexModel
@using download_admin.Pages
@if (Model.HasError)
{
<p style="color:red"><b>@Model.ErrorText</b></p>
}
<table style="width:100%">
<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="mime_type" maxlength=64 value="@obj.MimeType"></td>
<td><input type=text name="file_name" maxlength=64 value="@obj.FileName"></td>
<td><input type=file name="file"></td>
<td><input type="submit" name="update" value="Update"><input type="submit" name="delete" value="Delete"><input readonly style="display: none" type=text name="original_key" maxlength=64 value="@obj.Key"></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="mime_type" maxlength=64 value=""></td>
<td><input type=text name="file_name" maxlength=64 value=""></td>
<td><input type=file name="file"></td>
<td><input type="submit" name="add" value="Add"></td>
</form>
</tr>
</table>
|