-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathProcessedFiles.cshtml
More file actions
77 lines (67 loc) · 1.73 KB
/
ProcessedFiles.cshtml
File metadata and controls
77 lines (67 loc) · 1.73 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
@page "{handler?}"
@using System.Globalization
@model ProcessedFilesModel
@{
ViewData["Title"] = "Processed Files";
}
<h1>Most recent processed files</h1>
@if (!Model.ModelState.IsValid)
{
<div class="alert alert-danger">
@foreach (var error in ViewData.ModelState.Values.SelectMany(v => v.Errors))
{
<div>@error.ErrorMessage</div>
}
</div>
}
@if(Model.ProcessedFiles is { Length: > 0 })
{
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>
Offloc
</th>
</tr>
<tr>
<th>File name</th>
<th>Date</th>
<th>Status</th>
</tr>
</thead>
<tbody>
@foreach(var file in Model.OffLocFiles)
{
<tr>
<td>@file.FileName</td>
<td>@file.ValidFrom.ToString(new CultureInfo("en-GB"))</td>
<td>@file.Status</td>
</tr>
}
</tbody>
</table>
<table class="table table-striped table-bordered mt-2">
<thead>
<tr>
<th>
Delius
</th>
</tr>
<tr>
<th>File name</th>
<th>Date</th>
<th>Status</th>
</tr>
</thead>
<tbody>
@foreach(var file in Model.DeliusFiles)
{
<tr>
<td>@file.FileName</td>
<td>@file.ValidFrom.ToString(new CultureInfo("en-GB"))</td>
<td>@file.Status</td>
</tr>
}
</tbody>
</table>
}