From d1bbfd18abf58bdff2d31372b23c658635248e60 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 21 Jan 2022 08:38:50 -0800 Subject: [PATCH] GUACAMOLE-1509: Add contextual CSS classes to containers/elements that are otherwise ambiguous. --- .../src/app/client/templates/connection.html | 2 +- .../app/client/templates/connectionGroup.html | 2 +- .../src/app/client/templates/file.html | 2 +- .../src/app/client/templates/guacClient.html | 4 ++-- .../src/app/form/services/formService.js | 2 +- .../src/app/form/templates/checkboxField.html | 18 ++++++++++-------- .../src/app/form/templates/languageField.html | 12 +++++++----- .../src/app/form/templates/numberField.html | 18 ++++++++++-------- .../src/app/form/templates/selectField.html | 14 ++++++++------ .../src/app/form/templates/textAreaField.html | 16 +++++++++------- .../src/app/form/templates/usernameField.html | 10 ++++++++++ .../home/templates/guacRecentConnections.html | 2 +- .../frontend/src/app/home/templates/home.html | 9 +++------ .../templates/connectionGroupPermission.html | 2 +- .../manage/templates/connectionPermission.html | 2 +- .../locationChooserConnectionGroup.html | 4 ++-- .../app/manage/templates/manageConnection.html | 2 +- .../templates/manageConnectionGroup.html | 2 +- .../manage/templates/manageSharingProfile.html | 2 +- .../manage/templates/managementButtons.html | 8 ++++---- .../templates/sharingProfilePermission.html | 2 +- .../src/app/settings/templates/connection.html | 3 ++- .../settings/templates/connectionGroup.html | 3 ++- .../app/settings/templates/newConnection.html | 3 ++- .../settings/templates/newConnectionGroup.html | 3 ++- .../settings/templates/newSharingProfile.html | 3 ++- .../src/app/settings/templates/settings.html | 3 +-- .../app/settings/templates/sharingProfile.html | 3 ++- 28 files changed, 89 insertions(+), 67 deletions(-) create mode 100644 guacamole/src/main/frontend/src/app/form/templates/usernameField.html diff --git a/guacamole/src/main/frontend/src/app/client/templates/connection.html b/guacamole/src/main/frontend/src/app/client/templates/connection.html index 305a5889a..ae5ef91f1 100644 --- a/guacamole/src/main/frontend/src/app/client/templates/connection.html +++ b/guacamole/src/main/frontend/src/app/client/templates/connection.html @@ -1,4 +1,4 @@ -
+
diff --git a/guacamole/src/main/frontend/src/app/client/templates/connectionGroup.html b/guacamole/src/main/frontend/src/app/client/templates/connectionGroup.html index 48c707f45..2e7d794cd 100644 --- a/guacamole/src/main/frontend/src/app/client/templates/connectionGroup.html +++ b/guacamole/src/main/frontend/src/app/client/templates/connectionGroup.html @@ -1,4 +1,4 @@ -
+
+
diff --git a/guacamole/src/main/frontend/src/app/client/templates/guacClient.html b/guacamole/src/main/frontend/src/app/client/templates/guacClient.html index 57b859c55..46a78d661 100644 --- a/guacamole/src/main/frontend/src/app/client/templates/guacClient.html +++ b/guacamole/src/main/frontend/src/app/client/templates/guacClient.html @@ -1,4 +1,4 @@ -
-
\ No newline at end of file +
diff --git a/guacamole/src/main/frontend/src/app/form/services/formService.js b/guacamole/src/main/frontend/src/app/form/services/formService.js index 0bed36b84..d2ac6be73 100644 --- a/guacamole/src/main/frontend/src/app/form/services/formService.js +++ b/guacamole/src/main/frontend/src/app/form/services/formService.js @@ -91,7 +91,7 @@ angular.module('form').provider('formService', function formServiceProvider() { * @type FieldType */ 'USERNAME' : { - templateUrl : 'app/form/templates/textField.html' + templateUrl : 'app/form/templates/usernameField.html' }, /** diff --git a/guacamole/src/main/frontend/src/app/form/templates/checkboxField.html b/guacamole/src/main/frontend/src/app/form/templates/checkboxField.html index f0881bd11..39d1f6b7d 100644 --- a/guacamole/src/main/frontend/src/app/form/templates/checkboxField.html +++ b/guacamole/src/main/frontend/src/app/form/templates/checkboxField.html @@ -1,8 +1,10 @@ - +
+ +
diff --git a/guacamole/src/main/frontend/src/app/form/templates/languageField.html b/guacamole/src/main/frontend/src/app/form/templates/languageField.html index 8b74b5866..a19d21cd0 100644 --- a/guacamole/src/main/frontend/src/app/form/templates/languageField.html +++ b/guacamole/src/main/frontend/src/app/form/templates/languageField.html @@ -1,5 +1,7 @@ - +
+ +
diff --git a/guacamole/src/main/frontend/src/app/form/templates/numberField.html b/guacamole/src/main/frontend/src/app/form/templates/numberField.html index 2d270d689..1bf58a175 100644 --- a/guacamole/src/main/frontend/src/app/form/templates/numberField.html +++ b/guacamole/src/main/frontend/src/app/form/templates/numberField.html @@ -1,8 +1,10 @@ - +
+ +
diff --git a/guacamole/src/main/frontend/src/app/form/templates/selectField.html b/guacamole/src/main/frontend/src/app/form/templates/selectField.html index 939956bb4..635527557 100644 --- a/guacamole/src/main/frontend/src/app/form/templates/selectField.html +++ b/guacamole/src/main/frontend/src/app/form/templates/selectField.html @@ -1,6 +1,8 @@ - +
+ +
diff --git a/guacamole/src/main/frontend/src/app/form/templates/textAreaField.html b/guacamole/src/main/frontend/src/app/form/templates/textAreaField.html index 74284c73c..4e63eb53e 100644 --- a/guacamole/src/main/frontend/src/app/form/templates/textAreaField.html +++ b/guacamole/src/main/frontend/src/app/form/templates/textAreaField.html @@ -1,7 +1,9 @@ - +
+ +
diff --git a/guacamole/src/main/frontend/src/app/form/templates/usernameField.html b/guacamole/src/main/frontend/src/app/form/templates/usernameField.html new file mode 100644 index 000000000..6a5c664d4 --- /dev/null +++ b/guacamole/src/main/frontend/src/app/form/templates/usernameField.html @@ -0,0 +1,10 @@ +
+ +
diff --git a/guacamole/src/main/frontend/src/app/home/templates/guacRecentConnections.html b/guacamole/src/main/frontend/src/app/home/templates/guacRecentConnections.html index 4654bd4d4..08362f66f 100644 --- a/guacamole/src/main/frontend/src/app/home/templates/guacRecentConnections.html +++ b/guacamole/src/main/frontend/src/app/home/templates/guacRecentConnections.html @@ -1,4 +1,4 @@ -
+

{{'HOME.INFO_NO_RECENT_CONNECTIONS' | translate}}

diff --git a/guacamole/src/main/frontend/src/app/home/templates/home.html b/guacamole/src/main/frontend/src/app/home/templates/home.html index 4597dffe1..b2b3db5bd 100644 --- a/guacamole/src/main/frontend/src/app/home/templates/home.html +++ b/guacamole/src/main/frontend/src/app/home/templates/home.html @@ -1,5 +1,4 @@ - -
+
@@ -8,9 +7,7 @@

{{'HOME.SECTION_HEADER_RECENT_CONNECTIONS' | translate}}

-
- -
+
@@ -33,4 +30,4 @@
-
\ No newline at end of file +
diff --git a/guacamole/src/main/frontend/src/app/manage/templates/connectionGroupPermission.html b/guacamole/src/main/frontend/src/app/manage/templates/connectionGroupPermission.html index 8ac52641e..2bc90cce9 100644 --- a/guacamole/src/main/frontend/src/app/manage/templates/connectionGroupPermission.html +++ b/guacamole/src/main/frontend/src/app/manage/templates/connectionGroupPermission.html @@ -1,4 +1,4 @@ -
+
diff --git a/guacamole/src/main/frontend/src/app/manage/templates/connectionPermission.html b/guacamole/src/main/frontend/src/app/manage/templates/connectionPermission.html index 3a0dddaea..e94f9114e 100644 --- a/guacamole/src/main/frontend/src/app/manage/templates/connectionPermission.html +++ b/guacamole/src/main/frontend/src/app/manage/templates/connectionPermission.html @@ -1,4 +1,4 @@ -
+
diff --git a/guacamole/src/main/frontend/src/app/manage/templates/locationChooserConnectionGroup.html b/guacamole/src/main/frontend/src/app/manage/templates/locationChooserConnectionGroup.html index b4371506e..e49b4c0b9 100644 --- a/guacamole/src/main/frontend/src/app/manage/templates/locationChooserConnectionGroup.html +++ b/guacamole/src/main/frontend/src/app/manage/templates/locationChooserConnectionGroup.html @@ -1,4 +1,4 @@ - - + {{item.name}} diff --git a/guacamole/src/main/frontend/src/app/manage/templates/manageConnection.html b/guacamole/src/main/frontend/src/app/manage/templates/manageConnection.html index 8f37b98d4..7be5d75de 100644 --- a/guacamole/src/main/frontend/src/app/manage/templates/manageConnection.html +++ b/guacamole/src/main/frontend/src/app/manage/templates/manageConnection.html @@ -1,5 +1,5 @@ -
+
diff --git a/guacamole/src/main/frontend/src/app/manage/templates/manageConnectionGroup.html b/guacamole/src/main/frontend/src/app/manage/templates/manageConnectionGroup.html index 1ed7e9c16..712183dc6 100644 --- a/guacamole/src/main/frontend/src/app/manage/templates/manageConnectionGroup.html +++ b/guacamole/src/main/frontend/src/app/manage/templates/manageConnectionGroup.html @@ -1,5 +1,5 @@ -
+
diff --git a/guacamole/src/main/frontend/src/app/manage/templates/manageSharingProfile.html b/guacamole/src/main/frontend/src/app/manage/templates/manageSharingProfile.html index f7e9d114e..6458075c0 100644 --- a/guacamole/src/main/frontend/src/app/manage/templates/manageSharingProfile.html +++ b/guacamole/src/main/frontend/src/app/manage/templates/manageSharingProfile.html @@ -1,4 +1,4 @@ -
+
diff --git a/guacamole/src/main/frontend/src/app/manage/templates/managementButtons.html b/guacamole/src/main/frontend/src/app/manage/templates/managementButtons.html index d43209a45..68e4108cc 100644 --- a/guacamole/src/main/frontend/src/app/manage/templates/managementButtons.html +++ b/guacamole/src/main/frontend/src/app/manage/templates/managementButtons.html @@ -1,6 +1,6 @@
- - - - + + + +
diff --git a/guacamole/src/main/frontend/src/app/manage/templates/sharingProfilePermission.html b/guacamole/src/main/frontend/src/app/manage/templates/sharingProfilePermission.html index 8d8311b76..0d1647255 100644 --- a/guacamole/src/main/frontend/src/app/manage/templates/sharingProfilePermission.html +++ b/guacamole/src/main/frontend/src/app/manage/templates/sharingProfilePermission.html @@ -1,4 +1,4 @@ -
+