style(adminui): btn-groups + prose trim on top-level ops pages
Group related action buttons into btn-group/btn-group-sm on Alerts, Certificates, ApiKeys and ScriptEdit; promote the RoleGrants Delete from btn-link to btn-outline-danger. Replace the two inline style="border-color:var(--alert)" no-ops with the .notice-alert class, and the undefined --surface-2 token in Scripts with the theme's shipped --zebra-bg. Delete unconditional documentation prose now covered by docs/ (Redundancy, Telemetry, AlarmTracking, security, Reservations, AlarmHistorian, ScriptEditor), keeping state banners and live captions. Correct the LDAP config key on RoleGrants to Security:Ldap:GroupToRole (LdapOptions.SectionName) and drop the same wrong key from Account with its deleted block; reword the stale "Engine emit (F8/F9) is pending" script-log empty state.
This commit is contained in:
@@ -60,11 +60,13 @@ else
|
||||
</div>
|
||||
</section>
|
||||
|
||||
@if (!string.IsNullOrWhiteSpace(_error)) { <div class="panel notice mt-3" style="border-color:var(--alert)">@_error</div> }
|
||||
@if (!string.IsNullOrWhiteSpace(_error)) { <div class="panel notice notice-alert mt-3">@_error</div> }
|
||||
|
||||
<div class="mt-3 d-flex gap-2">
|
||||
<button type="submit" class="btn btn-primary" disabled="@_busy">@(IsNew ? "Create" : "Save changes")</button>
|
||||
<a href="/scripts" class="btn btn-outline-secondary">Cancel</a>
|
||||
<div class="btn-group" role="group">
|
||||
<button type="submit" class="btn btn-primary" disabled="@_busy">@(IsNew ? "Create" : "Save changes")</button>
|
||||
<a href="/scripts" class="btn btn-outline-secondary">Cancel</a>
|
||||
</div>
|
||||
@if (!IsNew) { <button type="button" class="btn btn-outline-danger ms-auto" @onclick="DeleteAsync" disabled="@_busy">Delete</button> }
|
||||
</div>
|
||||
</EditForm>
|
||||
|
||||
Reference in New Issue
Block a user