Skip to content

Commit 81e9c6e

Browse files
authored
Исправить удаление группы (#3052)
1 parent 871107a commit 81e9c6e

File tree

1 file changed

+10
-18
lines changed

1 file changed

+10
-18
lines changed

src/JoinRpg.Portal/Views/GameGroups/Delete.cshtml

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,14 @@
66

77

88
@{
9-
ViewBag.Title = "Удаление группы персонажей «" + Model.CharacterGroupName + "»";
9+
ViewBag.Title = "Удаление группы персонажей «" + Model.CharacterGroupName + "»";
1010
}
1111

1212
<h2>@ViewBag.Title</h2>
1313

1414

1515
<h3>Вы действительно хотите удалить группу персонажей?</h3>
1616
<div>
17-
<h4>@Model.CharacterGroupName</h4>
18-
<hr/>
1917
<dl class="dl-horizontal">
2018

2119
@if (Model.Characters.Any() || Model.ChildGroups.Any())
@@ -39,25 +37,19 @@
3937
привязаны к группам выше.
4038
</dd>
4139
}
40+
@if (!string.IsNullOrWhiteSpace(Model.Description.Contents))
41+
{
42+
<dt>
43+
Описание группы
44+
</dt>
4245

43-
<dt>
44-
@Html.DisplayNameFor(model => model.IsPublic)
45-
</dt>
46-
47-
<dd>
48-
@Html.DisplayFor(model => model.IsPublic)
49-
</dd>
50-
51-
<dt>
52-
@Html.DisplayNameFor(model => model.Description)
53-
</dt>
54-
55-
<dd>
56-
@Model.Description.ToHtmlString()
46+
<dd>
47+
@Model.Description.ToHtmlString()
5748
</dd>
49+
}
5850
</dl>
5951

60-
using (Html.BeginForm())
52+
@using (Html.BeginForm())
6153
{
6254
@Html.AntiForgeryToken()
6355
@Html.HiddenFor(model => model.CharacterGroupId)

0 commit comments

Comments
 (0)