82 lines
1.9 KiB
Plaintext
82 lines
1.9 KiB
Plaintext
@*
|
|
For more information on enabling MVC for empty projects, visit https://go.microsoft.com/fwlink/?LinkID=397860
|
|
*@
|
|
@{
|
|
}
|
|
|
|
@model List<Province>
|
|
|
|
<h1>Provinces</h1>
|
|
<table class="table table-bordered table-striped">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
Id
|
|
</th>
|
|
<th>
|
|
Name
|
|
</th>
|
|
<th>
|
|
Faction
|
|
</th>
|
|
<th>
|
|
Multiplier
|
|
</th>
|
|
<th>
|
|
ATs
|
|
</th>
|
|
<th>
|
|
State
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var obj in Model) {
|
|
<tr>
|
|
<th>
|
|
@obj.ProvinceId
|
|
</th>
|
|
<th>
|
|
@obj.Name
|
|
</th>
|
|
@switch (obj.Faction)
|
|
{
|
|
case 0:
|
|
<th>
|
|
Neutral
|
|
</th>
|
|
break;
|
|
case 1:
|
|
<th>
|
|
Allies
|
|
</th>
|
|
break;
|
|
case 2:
|
|
<th>
|
|
Axis
|
|
</th>
|
|
break;
|
|
}
|
|
<th>
|
|
@obj.Multiplier
|
|
</th>
|
|
<th>
|
|
@obj.ATs
|
|
</th>
|
|
@switch (obj.State)
|
|
{
|
|
case 0:
|
|
<th>
|
|
At Peace
|
|
</th>
|
|
break;
|
|
case 1:
|
|
<th>
|
|
At War
|
|
</th>
|
|
break;
|
|
}
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table> |