/
Default.cshtml
29 lines (28 loc) · 1.19 KB
/
Default.cshtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
@using EasyAbp.Abp.SettingUi.Localization
@using Microsoft.AspNetCore.Mvc.Localization
@model IEnumerable<SettingHtmlInfo>
@inject IHtmlLocalizer<SettingUiResource> L
@foreach (var group in Model.GroupBy(sd => sd.Group2))
{
<form method="post" id="@(group.Key)SettingGroup" class="setting-ui">
<abp-card class="mb-3">
<abp-card-header>
<h4>@L[group.Key]</h4>
</abp-card-header>
<abp-card-body>
@foreach (var settingHtmlInfo in group)
{
<div class="mb-3">
<label class="form-label" for="@settingHtmlInfo.Name">@settingHtmlInfo.DisplayName</label>
@await Html.PartialAsync($"~/Pages/Components/SettingUi/Partials/_{settingHtmlInfo.Type.ToPascalCase()}.cshtml", settingHtmlInfo)
</div>
}
<hr class="my-3">
<div>
<abp-button type="submit" button-type="Primary" text="@L["Save"].Value" />
<abp-button button-type="Warning" text="@L["Reset"].Value" class="reset" />
</div>
</abp-card-body>
</abp-card>
</form>
}