the raid roles now have a fixed order
This commit is contained in:
parent
9246e1ab78
commit
2e92bdee5f
4 changed files with 4 additions and 4 deletions
|
@ -3,7 +3,7 @@
|
||||||
<div>
|
<div>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach (var role in _raid.Roles)
|
@foreach (var role in _raid.Roles.OrderBy(r => r.PlannedRaidRoleId))
|
||||||
{
|
{
|
||||||
Models.GuildWars2.Raid.RaidSignUp[] signUps = _raid.SignUps.Where(s => s.PlannedRaidRoleId == role.PlannedRaidRoleId).ToArray();
|
Models.GuildWars2.Raid.RaidSignUp[] signUps = _raid.SignUps.Where(s => s.PlannedRaidRoleId == role.PlannedRaidRoleId).ToArray();
|
||||||
int usedSpots = signUps.Where(s => s.SignUpType == SignUpType.SignedUp).Count();
|
int usedSpots = signUps.Where(s => s.SignUpType == SignUpType.SignedUp).Count();
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
RaidSignUp userRole = _raid.SignUps.Where(s => s.LiebUserId == _user.LiebUserId).FirstOrDefault();
|
RaidSignUp userRole = _raid.SignUps.Where(s => s.LiebUserId == _user.LiebUserId).FirstOrDefault();
|
||||||
bool isSignedUp = userRole != null;
|
bool isSignedUp = userRole != null;
|
||||||
}
|
}
|
||||||
@foreach (var role in _raid.Roles)
|
@foreach (var role in _raid.Roles.OrderBy(r => r.PlannedRaidRoleId))
|
||||||
{
|
{
|
||||||
RaidSignUp[] signUps = _raid.SignUps.Where(s => s.PlannedRaidRoleId == role.PlannedRaidRoleId).ToArray();
|
RaidSignUp[] signUps = _raid.SignUps.Where(s => s.PlannedRaidRoleId == role.PlannedRaidRoleId).ToArray();
|
||||||
int usedSpots = signUps.Where(s => s.SignUpType == SignUpType.SignedUp).Count();
|
int usedSpots = signUps.Where(s => s.SignUpType == SignUpType.SignedUp).Count();
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
RaidSignUp userRole = _raid.SignUps.Where(s => s.LiebUserId == _user.LiebUserId).FirstOrDefault();
|
RaidSignUp userRole = _raid.SignUps.Where(s => s.LiebUserId == _user.LiebUserId).FirstOrDefault();
|
||||||
bool isSignedUp = userRole != null;
|
bool isSignedUp = userRole != null;
|
||||||
}
|
}
|
||||||
@foreach (PlannedRaidRole role in _raid.Roles)
|
@foreach (PlannedRaidRole role in _raid.Roles.OrderBy(r => r.PlannedRaidRoleId))
|
||||||
{
|
{
|
||||||
RaidSignUp[] signUps = _raid.SignUps.Where(s => s.PlannedRaidRoleId == role.PlannedRaidRoleId).ToArray();
|
RaidSignUp[] signUps = _raid.SignUps.Where(s => s.PlannedRaidRoleId == role.PlannedRaidRoleId).ToArray();
|
||||||
int usedSpots = signUps.Where(s => s.SignUpType == SignUpType.SignedUp).Count();
|
int usedSpots = signUps.Where(s => s.SignUpType == SignUpType.SignedUp).Count();
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
<div>
|
<div>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach (var role in _template.Roles)
|
@foreach (var role in _template.Roles.OrderBy(r => r.PlannedRaidRoleId))
|
||||||
{
|
{
|
||||||
<tr>
|
<tr>
|
||||||
<td><h5>@role.Name: @role.Description (@role.Spots)</h5></td>
|
<td><h5>@role.Name: @role.Description (@role.Spots)</h5></td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue