-
Notifications
You must be signed in to change notification settings - Fork 1
/
PendingRequests.cshtml
65 lines (52 loc) · 2.31 KB
/
PendingRequests.cshtml
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
@model IEnumerable<Mi_Share.ViewModels.RequestViewModel>
@{
ViewBag.Title = "Pending Requests";
}
<div class="row">
<div class="col-md-6">
<div class="box">
<!-- /.box-header -->
<div class="box-header">
<h3 class="box-title"> </h3>
</div>
<div class="box-body">
<table class="table table-bordered datatable table-striped">
<thead>
<tr>
<th>Media Type</th>
<th>Item Name</th>
<th>Item Description</th>
<th>Item Status</th>
</tr>
</thead>
<tbody>
@{Random ran = new Random(); }
@foreach (var item in Model)
{
<tr>
<td>@item.Item_ID</td>
<td>@item.Item</td>
@if (item.Status.ToString().ToLower() == "pending")
{
<td><button type="button" class="btn btn-block btn-primary btn-sm">Granted -- View</button></td>
}
else if (item.Status.ToString().ToLower() == "granted")
{
<td><button type="button" class="btn btn-block btn-primary btn-sm">Request</button></td>
}
else if (item.Status.ToString().ToLower() == "denied")
{
<td><button type="button" class="btn btn-block btn-danger disabled btn-sm">Denied</button></td>
}
else
{
<td><button type="button" class="btn btn-block btn-primary btn-sm disabled">@item.Status.ToString()</button></td>
}
</tr>
}
</table>
</div>
<!-- /.box-body -->
</div>
</div>
</div>