Skip to content

Commit

Permalink
use new multiselect for Games/Edit
Browse files Browse the repository at this point in the history
  • Loading branch information
adelikat committed Aug 26, 2023
1 parent 2809248 commit 748589d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions TASVideos/Pages/Games/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@
</form-group>
</div>
</row>
<two-column-select id-list="Game.Genres" available-list="@Model.AvailableGenres"/>
<two-column-select id-list="Game.Groups" available-list="@Model.AvailableGroups"/>
<select asp-for="Game.Genres" size="@(Math.Min(Model.Game.Genres.Count(), 7).ToString())" asp-items="Model.AvailableGenres" class="form-control"></select>
<select-improver select-id="@Html.IdFor(m => m.Game.Genres)"></select-improver>
<select asp-for="Game.Groups" size="@(Math.Min(Model.Game.Groups.Count(), 7).ToString())" asp-items="Model.AvailableGroups" class="form-control"></select>
<select-improver select-id="@Html.IdFor(m => m.Game.Groups)"></select-improver>
<hr />
<div class="text-center">
<button id="submit-btn" type="submit" class="btn btn-primary"><i class="fa fa-save"></i> Save</button>
Expand Down

0 comments on commit 748589d

Please sign in to comment.