Skip to content

Instantly share code, notes, and snippets.

@tusmester
Created February 8, 2018 12:46
Show Gist options
  • Save tusmester/09b447e8648d835548a3cf1c67a57515 to your computer and use it in GitHub Desktop.
Save tusmester/09b447e8648d835548a3cf1c67a57515 to your computer and use it in GitHub Desktop.
#sn #mvc #view #index
@{
ViewBag.Title = "Dashboard";
}
@model SnWebApplication.Models.DashboardViewModel
<h2>@ViewBag.Title</h2>
<h3>@ViewBag.Message</h3>
<div class="row">
<div class="col-md-4">
<h3>My tasks</h3>
<table>
<thead><tr><th>To do</th><th>Due date</th></tr></thead>
<tbody>
@foreach (var task in this.Model.MyTasks)
{
<tr>
<td>@task.DisplayName</td>
<td>@task.DueDate</td>
</tr>
}
</tbody>
</table>
</div>
<div class="col-md-4">
<h3>More tasks</h3>
<table>
<thead><tr><th>To do</th><th>Due date</th><th>Assigned to</th></tr></thead>
<tbody>
@foreach (var task in this.Model.OthersTasks)
{
<tr>
<td>@task.DisplayName</td>
<td>@task.DueDate</td>
<td>@task.AssignedToText</td>
</tr>
}
</tbody>
</table>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment