Fix indents

pull/208/head
Halil İbrahim Kalkan 7 years ago
parent 7b6726fd44
commit 6c6a6d7a21

@ -20,30 +20,30 @@
<div class="col-sm-3">
<div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical">
@for (var i = 0; i < Model.Groups.Count; i++)
{
var normalizedGroupName = Model.Groups[i].Name.Replace(".", "_");
<a class="nav-link @(i == 0 ? "active" : "")" id="v-pills-tab-@normalizedGroupName" data-toggle="pill" href="#v-pills-@normalizedGroupName" role="tab" aria-controls="v-pills-@normalizedGroupName" aria-selected="false">@Model.Groups[i].DisplayName</a>
}
{
var normalizedGroupName = Model.Groups[i].Name.Replace(".", "_");
<a class="nav-link @(i == 0 ? "active" : "")" id="v-pills-tab-@normalizedGroupName" data-toggle="pill" href="#v-pills-@normalizedGroupName" role="tab" aria-controls="v-pills-@normalizedGroupName" aria-selected="false">@Model.Groups[i].DisplayName</a>
}
</div>
</div>
<div class="col-sm-9">
<div class="tab-content" id="v-pills-tabContent">
@for (var i = 0; i < Model.Groups.Count; i++)
{
var normalizedGroupName = Model.Groups[i].Name.Replace(".", "_");
<div class="tab-pane fade @(i == 0 ? "show active" : "")" id="v-pills-@normalizedGroupName" role="tabpanel" aria-labelledby="v-pills-tab-@normalizedGroupName">
@for (var j = 0; j < Model.Groups[i].Permissions.Count; j++)
{
<div class="form-check">
<label asp-for="@Model.Groups[i].Permissions[j].IsGranted" class="form-check-label">
<input asp-for="@Model.Groups[i].Permissions[j].IsGranted" class="form-check-input" />
@Model.Groups[i].Permissions[j].DisplayName
</label>
</div>
<input asp-for="@Model.Groups[i].Permissions[j].Name" />
}
</div>
}
{
var normalizedGroupName = Model.Groups[i].Name.Replace(".", "_");
<div class="tab-pane fade @(i == 0 ? "show active" : "")" id="v-pills-@normalizedGroupName" role="tabpanel" aria-labelledby="v-pills-tab-@normalizedGroupName">
@for (var j = 0; j < Model.Groups[i].Permissions.Count; j++)
{
<div class="form-check">
<label asp-for="@Model.Groups[i].Permissions[j].IsGranted" class="form-check-label">
<input asp-for="@Model.Groups[i].Permissions[j].IsGranted" class="form-check-input" />
@Model.Groups[i].Permissions[j].DisplayName
</label>
</div>
<input asp-for="@Model.Groups[i].Permissions[j].Name" />
}
</div>
}
</div>
</div>
</div>

Loading…
Cancel
Save