-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ability to move claims to groups because this feature is phase…
…d out (#2313)
- Loading branch information
Showing
9 changed files
with
65 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 4 additions & 30 deletions
34
src/JoinRpg.Portal/Views/Shared/AvailClaimTargetsPartial.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,13 @@ | ||
@using JoinRpg.Web.Models.Characters | ||
@model IList<CharacterTreeItem> | ||
|
||
|
||
@functions { | ||
private static string GetName(CharacterTreeItem gr) | ||
{ | ||
return gr.Name; //* + (gr.AvaiableDirectSlots > 0 ? (" " + Html.DisplayCount_OfX(gr.AvaiableDirectSlots, "вакансия", "вакансии", "вакансий")) : "");*@ | ||
} | ||
|
||
} | ||
@using JoinRpg.Web.Models.CommonTypes; | ||
@model IList<JoinSelectListItem> | ||
|
||
<div class="form-horizontal"> | ||
<div class="form-group"> | ||
@Html.Label("", "Переместить заявку", htmlAttributes: new { @class = "control-label col-md-2" }) | ||
<div class="col-md-10"> | ||
<select name="claimTarget" id="claimTarget" class="form-control col-md-10"> | ||
@foreach (var element in Model.Where(g => g.FirstCopy && !g.IsSpecial)) | ||
{ | ||
if (/*element.AvaiableDirectSlots != 0 &&*/ ViewBag.ShowGroupsInAvailClaim == true) | ||
{ | ||
var value = "group^" + element.CharacterGroupId; | ||
<option value="@value">@("Группа " + GetName(element))</option> | ||
|
||
} | ||
|
||
foreach (var character in element.Characters.Where(ch => ch.IsAvailable)) | ||
{ | ||
var label = string.Join("→", element.Path.Skip(1).Union(new[] { element }).Select(p => p.Name)) + "→" + character.CharacterName; | ||
|
||
var value = "character^" + character.CharacterId; | ||
<option value="@value">@label</option> | ||
} | ||
} | ||
</select> | ||
@Html.SearchableDropdown("CharacterId", Model) | ||
</div> | ||
</div> | ||
|
||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters