From 97f04b90e37572592e58deb82256be011f67b512 Mon Sep 17 00:00:00 2001 From: Raphael Gauthier Date: Thu, 21 Dec 2023 16:21:09 +0100 Subject: [PATCH] Fixes #23928: Fix UI problems following the Bootstrap 5 upgrade --- .../main/elm/sources/ApiAuthorizations.elm | 8 +- .../toserve/apiauthorizations/media.css | 14 +- .../ApiAccountsExtension.scala | 61 ++- .../UserInformationExtension.scala | 8 +- .../src/main/elm/sources/AuthBackends.elm | 4 +- .../template/AuthBackendsManagement.html | 2 +- branding/src/main/elm/sources/View.elm | 9 +- .../main/resources/toserve/branding/media.css | 46 +-- .../resources/toserve/branding/toasty.css | 10 +- .../main/elm/sources/SupervisedTargets.elm | 2 +- .../src/main/elm/sources/View.elm | 10 +- .../template/ChangeValidationManagement.html | 10 +- .../resources/template/changeRequest.html | 11 +- .../ComponentChangeRequest.html | 28 +- .../comet/WorkflowInformation.scala | 19 +- .../snippet/ChangeRequestDetails.scala | 8 +- .../snippet/ChangeRequestManagement.scala | 4 +- .../snippet/ChangeValidationSettings.scala | 4 +- .../src/main/elm/sources/DataSourceForm.elm | 2 +- datasources/src/main/elm/sources/Port.elm | 3 +- datasources/src/main/elm/sources/Update.elm | 10 +- datasources/src/main/elm/sources/View.elm | 8 +- .../template/dataSourceManagement.html | 358 +----------------- .../datasources/rudder-datasources.css | 7 +- .../OpenScapNodeDetailsExtension.scala | 4 +- user-management/src/main/elm/sources/View.elm | 49 ++- .../usermanagement/user-management.css | 4 +- 27 files changed, 165 insertions(+), 538 deletions(-) diff --git a/api-authorizations/src/main/elm/sources/ApiAuthorizations.elm b/api-authorizations/src/main/elm/sources/ApiAuthorizations.elm index b2911d623..b92bef8a3 100644 --- a/api-authorizations/src/main/elm/sources/ApiAuthorizations.elm +++ b/api-authorizations/src/main/elm/sources/ApiAuthorizations.elm @@ -140,10 +140,10 @@ apiSelect listAcl api = displayApi : Api -> Html Msg displayApi api = div [ ] - [ h4 [] - [ b [ class api.verb ] [ text api.verb ] - , text (" " ++ api.path) - ] + [ h5 [] + [ b [ class api.verb ] [ text api.verb ] + , text (" " ++ api.path) + ] , div [] [ text (api.name ++ ": " ++ api.description) ] ] diff --git a/api-authorizations/src/main/resources/toserve/apiauthorizations/media.css b/api-authorizations/src/main/resources/toserve/apiauthorizations/media.css index 77da7ea5c..00231b786 100755 --- a/api-authorizations/src/main/resources/toserve/apiauthorizations/media.css +++ b/api-authorizations/src/main/resources/toserve/apiauthorizations/media.css @@ -41,7 +41,7 @@ } #user-token-app a.createToken:hover{ - background-color: #9bc832 !important; + background-color: #13BEB7 !important; color: #fff !important; border-bottom-color: #8fb92a; } @@ -116,7 +116,7 @@ margin: 0; } -.acl-category .label-acl > div > h4 { +.acl-category .label-acl > div > h5 { margin-top: 0; margin-bottom: 4px; } @@ -131,7 +131,7 @@ background-color: #f8f9fc; } -.acl-category .label-acl > div > h4 > b{ +.acl-category .label-acl > div > h5 > b{ font-weight:normal; text-transform:UPPERCASE; transition-duration:.2s; @@ -141,16 +141,16 @@ margin-right:2px; font-size: 0.9em } -.acl-category .label-acl:hover > div > h4 > b.delete{ +.acl-category .label-acl:hover > div > h5 > b.delete{ color:#e25f5d; } -.acl-category .label-acl:hover > div > h4 > b.get{ +.acl-category .label-acl:hover > div > h5 > b.get{ color:#6db95b; } -.acl-category .label-acl:hover > div > h4 > b.post{ +.acl-category .label-acl:hover > div > h5 > b.post{ color:#609ade; } -.acl-category .label-acl:hover > div > h4 > b.put{ +.acl-category .label-acl:hover > div > h5 > b.put{ color:#935cc1; } .acl-category .label-acl > div > div{ diff --git a/api-authorizations/src/main/scala/com/normation/plugins/apiauthorizations/ApiAccountsExtension.scala b/api-authorizations/src/main/scala/com/normation/plugins/apiauthorizations/ApiAccountsExtension.scala index b21c6900e..9d67893d0 100644 --- a/api-authorizations/src/main/scala/com/normation/plugins/apiauthorizations/ApiAccountsExtension.scala +++ b/api-authorizations/src/main/scala/com/normation/plugins/apiauthorizations/ApiAccountsExtension.scala @@ -106,48 +106,39 @@ class ApiAccountsExtension(val status: PluginStatus)(implicit val ttag: ClassTag } def body(xml: NodeSeq): NodeSeq = { - print("ok") ("#acl-app" #> -
+
-
- -
-
-
- -
+ //get the acl list of the selected account + app.ports.shareAcl.subscribe(function(acl){ + appAcl.ports.getToken.send(acl) + }); + }); + // ]]> +
).apply(xml) } diff --git a/api-authorizations/src/main/scala/com/normation/plugins/apiauthorizations/UserInformationExtension.scala b/api-authorizations/src/main/scala/com/normation/plugins/apiauthorizations/UserInformationExtension.scala index a1071433a..799d150bb 100644 --- a/api-authorizations/src/main/scala/com/normation/plugins/apiauthorizations/UserInformationExtension.scala +++ b/api-authorizations/src/main/scala/com/normation/plugins/apiauthorizations/UserInformationExtension.scala @@ -20,7 +20,7 @@ class UserInformationExtension(val status: PluginStatus)(implicit val ttag: Clas
  • - + admin @@ -30,9 +30,9 @@ class UserInformationExtension(val status: PluginStatus)(implicit val ttag: Clas * We want to do: