Skip to content

Commit

Permalink
Update Content.cshtml
Browse files Browse the repository at this point in the history
  • Loading branch information
EdiWang committed Sep 20, 2023
1 parent e1f5e80 commit 5f36c90
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions src/Moonglade.Web/Pages/Settings/Content.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,25 @@
<form id="form-settings" asp-controller="Settings" asp-action="Content">
<div class="row">
<div class="col-md-6">
<div class="p-3 rounded-3 shadow-sm border bg-white">
<h6 class="card-subtitle mb-4 text-muted">@SharedLocalizer["Comments"]</h6>
<div>
<h4 class="admin-subtitle fw-bold mb-2">@SharedLocalizer["Comments"]</h4>

<div class="row g-3 align-items-center settings-entry mb-4">
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi-chat-left-dots settings-entry-icon"></i>
</div>
<div class="col">
<label asp-for="@settings.EnableComments" class="form-check-label"></label>
</div>
<div class="col-md-5 text-end">
<div class="form-check form-switch">
<div class="form-check form-switch form-control-lg">
<input type="hidden" name="EnableComments" value="false">
<input type="checkbox" name="EnableComments" value="true" class="form-check-input" @(settings.EnableComments ? "checked" : null)>
</div>
</div>
</div>

<div class="row g-3 align-items-center settings-entry mb-4">
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi-diagram-2 settings-entry-icon"></i>
</div>
Expand Down Expand Up @@ -78,7 +78,7 @@
</div>
</div>

<div class="row g-3 align-items-center settings-entry mb-4">
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="settings-entry-icon bi-hourglass-split"></i>
</div>
Expand All @@ -93,7 +93,7 @@

<div class="comment-settings-built-in">

<div class="row g-3 align-items-center settings-entry mb-4">
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi-sort-numeric-down settings-entry-icon"></i>
</div>
Expand All @@ -112,52 +112,52 @@
</div>
</div>

<div class="row g-3 align-items-center settings-entry mb-4">
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi-person-check settings-entry-icon"></i>
</div>
<div class="col">
<label asp-for="@settings.RequireCommentReview" class="form-check-label"></label>
</div>
<div class="col-md-5 text-end">
<div class="form-check form-switch">
<div class="form-check form-switch form-control-lg">
<input type="hidden" name="RequireCommentReview" value="false">
<input type="checkbox" name="RequireCommentReview" value="true" class="form-check-input" @(settings.RequireCommentReview ? "checked" : null)>
</div>
</div>
</div>

<div class="row g-3 align-items-center settings-entry mb-4">
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi-person-square settings-entry-icon"></i>
</div>
<div class="col">
<label asp-for="@settings.EnableGravatar" class="form-check-label"></label>
</div>
<div class="col-md-5 text-end">
<div class="form-check form-switch">
<div class="form-check form-switch form-control-lg">
<input type="hidden" name="EnableGravatar" value="false">
<input type="checkbox" name="EnableGravatar" value="true" class="form-check-input" @(settings.EnableGravatar ? "checked" : null)>
</div>
</div>
</div>

<div class="row g-3 align-items-center settings-entry mb-4">
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi-translate settings-entry-icon"></i>
</div>
<div class="col">
<label asp-for="@settings.EnableWordFilter" class="form-check-label"></label>
</div>
<div class="col-md-5 text-end">
<div class="form-check form-switch">
<div class="form-check form-switch form-control-lg">
<input type="hidden" name="EnableWordFilter" value="false">
<input type="checkbox" name="EnableWordFilter" value="true" class="form-check-input" @(settings.EnableWordFilter ? "checked" : null)>
</div>
</div>
</div>

<div class="row g-3 align-items-center settings-entry mb-2">
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi-check2-circle settings-entry-icon"></i>
</div>
Expand Down Expand Up @@ -203,10 +203,10 @@
</div>
</div>
<div class="col-md-6">
<div class="mb-3 p-3 rounded-3 shadow-sm border bg-white">
<h6 class="card-subtitle mb-4 text-muted">@SharedLocalizer["Blog posts"]</h6>
<div class="mb-3">
<h4 class="admin-subtitle fw-bold mb-2">@SharedLocalizer["Blog posts"]</h4>

<div class="row g-3 align-items-center settings-entry mb-4">
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi-check2-circle settings-entry-icon"></i>
</div>
Expand All @@ -225,7 +225,7 @@
</div>
</div>

<div class="row g-3 align-items-center settings-entry mb-4">
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi-sort-numeric-down settings-entry-icon"></i>
</div>
Expand All @@ -237,7 +237,7 @@
</div>
</div>

<div class="row g-3 align-items-center settings-entry mb-4">
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="settings-entry-icon bi-file-word"></i>
</div>
Expand All @@ -250,7 +250,7 @@
</div>
</div>

<div class="row g-3 align-items-center settings-entry mb-4">
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi-tags settings-entry-icon"></i>
</div>
Expand All @@ -262,22 +262,22 @@
</div>
</div>

<div class="row g-3 align-items-center settings-entry mb-4">
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi-list-nested settings-entry-icon"></i>
</div>
<div class="col">
<label asp-for="@settings.DocumentOutline" class="form-check-label"></label>
</div>
<div class="col-md-5 text-end">
<div class="form-check form-switch">
<div class="form-check form-switch form-control-lg">
<input type="hidden" name="DocumentOutline" value="false">
<input type="checkbox" name="DocumentOutline" value="true" class="form-check-input" @(settings.DocumentOutline ? "checked" : null)>
</div>
</div>
</div>

<div class="row g-3 align-items-center settings-entry mb-2">
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi-card-text settings-entry-icon"></i>
</div>
Expand All @@ -286,7 +286,7 @@
<div class="form-text">@SharedLocalizer["e.g. Your blog post license information."]</div>
</div>
<div class="col-md-5 text-end">
<div class="form-check form-switch">
<div class="form-check form-switch form-control-lg">
<input type="hidden" name="ShowPostFooter" value="false">
<input type="checkbox" name="ShowPostFooter" value="true" class="form-check-input" @(settings.ShowPostFooter ? "checked" : null)>
</div>
Expand All @@ -303,10 +303,10 @@
</div>
</div>
</div>
<div class="p-3 rounded-3 shadow-sm border bg-white">
<h6 class="card-subtitle mb-4 text-muted">@SharedLocalizer["Call-out"]</h6>
<div>
<h4 class="admin-subtitle fw-bold mb-2">@SharedLocalizer["Call-out"]</h4>

<div class="row g-3 align-items-center settings-entry mb-2">
<div class="settings-entry2 row align-items-center py-3 px-2 rounded-3 shadow-sm border bg-white mb-2">
<div class="col-auto">
<i class="bi-menu-button-wide-fill settings-entry-icon"></i>
</div>
Expand All @@ -315,7 +315,7 @@
<div class="form-text">@SharedLocalizer["The call-out section will display on top of every page in the website."]</div>
</div>
<div class="col-md-5 text-end">
<div class="form-check form-switch">
<div class="form-check form-switch form-control-lg">
<input type="hidden" name="ShowCalloutSection" value="false">
<input type="checkbox" name="ShowCalloutSection" value="true" class="form-check-input" @(settings.ShowCalloutSection ? "checked" : null)>
</div>
Expand Down

0 comments on commit 5f36c90

Please sign in to comment.