forked from elsa-workflows/elsa-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Index.cshtml
41 lines (38 loc) · 1.2 KB
/
Index.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
@model Elsa.Samples.AspNet.Onboarding.Web.Views.Home.IndexViewModel
@{
ViewData["Title"] = "Home Page";
}
<div class="text-center">
<h1 class="display-4">Tasks</h1>
<p>Please complete the following tasks.</p>
</div>
<div class="container">
<table class="table table-bordered table-hover">
<thead class="table-light">
<tr>
<th scope="col">Task ID</th>
<th scope="col">Name</th>
<th scope="col">Description</th>
<th scope="col">Employee</th>
<th scope="col"></th>
</tr>
</thead>
<tbody>
@foreach (var task in Model.Tasks)
{
<tr>
<th scope="row">@task.Id</th>
<td>@task.Name</td>
<td>@task.Description</td>
<td>@($"{task.EmployeeName} <{task.EmployeeEmail}>")</td>
<td>
<form asp-action="CompleteTask">
<input type="hidden" name="TaskId" value="@task.Id"/>
<button type="submit" class="btn btn-primary">Complete</button>
</form>
</td>
</tr>
}
</tbody>
</table>
</div>