Skip to content

Commit

Permalink
Fix UI issue on Security module (#11735)
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamco authored May 21, 2022
1 parent cdf83e9 commit 8465fbb
Showing 1 changed file with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,19 +172,19 @@
</p>
}

<div class="form-group">
<div class="mb-3">
<label asp-for="ContentSecurityPolicy">@T["Content Security Policy"]</label>
<div class="form-group" asp-validation-class-for="EnableSandbox">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" asp-for="EnableSandbox" />
<label class="custom-control-label" asp-for="EnableSandbox">@T["Enable Sandbox"]</label>
<span class="hint">@T["Enables a sandbox for the requested resource similar to the <iframe> sandbox attribute."]</span>
<div class="mb-3" asp-validation-class-for="EnableSandbox">
<div class="form-check">
<input type="checkbox" class="form-check-input" asp-for="EnableSandbox" />
<label class="form-check-label" asp-for="EnableSandbox">@T["Enable Sandbox"]</label>
<span class="hint dashed">@T["Enables a sandbox for the requested resource similar to the iframe sandbox attribute."]</span>
</div>
</div>
<div class="form-group" asp-validation-class-for="UpgradeInsecureRequests">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" asp-for="UpgradeInsecureRequests" />
<label class="custom-control-label" asp-for="UpgradeInsecureRequests">@T["Upgrade Insecure Requests"]</label>
<div class="mb-3" asp-validation-class-for="UpgradeInsecureRequests">
<div class="form-check">
<input type="checkbox" class="form-check-input" asp-for="UpgradeInsecureRequests" />
<label class="form-check-label" asp-for="UpgradeInsecureRequests">@T["Upgrade Insecure Requests"]</label>
</div>
</div>
<table class="table table-striped table-hover">
Expand All @@ -202,7 +202,7 @@
<tr>
<td>@GetContentSecurityPolicyName(key)</td>
<td>
<div class="form-group mb-0">
<div class="mb-0">
<input class="form-control" id="@Html.IdFor(m => m.ContentSecurityPolicy[key])" name="@Html.NameFor(m => m.ContentSecurityPolicy[key])" value="@value" />
</div>
</td>
Expand All @@ -212,7 +212,7 @@
</table>
<span class="hint">@T["Allows administrators to control resources the user agent is allowed to load for a given page."]</span>
</div>
<div class="form-group">
<div class="mb-3">
<label asp-for="PermissionsPolicy">@T["Permissions Policy"]</label>
<table class="table table-striped table-hover">
<thead>
Expand Down Expand Up @@ -270,9 +270,9 @@
</table>
<span class="hint">@T["Allows a site to control which features and APIs can be used in the browser."]</span>
</div>
<div class="form-group" asp-validation-class-for="ReferrerPolicy">
<div class="mb-3" asp-validation-class-for="ReferrerPolicy">
<label asp-for="ReferrerPolicy">@T["Referrer Policy"]</label>
<select asp-for="ReferrerPolicy" class="form-control">
<select asp-for="ReferrerPolicy" class="form-select">
<option value="@ReferrerPolicyValue.NoReferrer" selected="@(Model.ReferrerPolicy == ReferrerPolicyValue.NoReferrer)">
@T["No referrer"]
</option>
Expand Down

0 comments on commit 8465fbb

Please sign in to comment.