diff --git a/src/sunstone/etc/sunstone-views/admin.yaml b/src/sunstone/etc/sunstone-views/admin.yaml index 85f26c51b4..72b302c87f 100644 --- a/src/sunstone/etc/sunstone-views/admin.yaml +++ b/src/sunstone/etc/sunstone-views/admin.yaml @@ -770,11 +770,23 @@ tabs: settings-tab: panel_tabs: user_info_tab: true + user_config_tab: false user_quotas_tab: true group_quotas_tab: true user_accounting_tab: true user_showback_tab: true actions: + # The buttons inside the settings-tab panel user_info_tab are + # configured with users-tab/actions; User.update_password and + # User.login_token + # + # Buttons for user_config_tab + Settings.change_language: true + Settings.change_password: true + Settings.change_view: true + Settings.ssh_key: true + Settings.login_token: true + # Edit button in user_quotas_tab User.quotas_dialog: false upgrade-top-tab: panel_tabs: diff --git a/src/sunstone/etc/sunstone-views/admin_vcenter.yaml b/src/sunstone/etc/sunstone-views/admin_vcenter.yaml index 17411fdb4c..088c62b251 100644 --- a/src/sunstone/etc/sunstone-views/admin_vcenter.yaml +++ b/src/sunstone/etc/sunstone-views/admin_vcenter.yaml @@ -770,11 +770,23 @@ tabs: settings-tab: panel_tabs: user_info_tab: true + user_config_tab: false user_quotas_tab: true group_quotas_tab: true user_accounting_tab: true user_showback_tab: true actions: + # The buttons inside the settings-tab panel user_info_tab are + # configured with users-tab/actions; User.update_password and + # User.login_token + # + # Buttons for user_config_tab + Settings.change_language: true + Settings.change_password: true + Settings.change_view: true + Settings.ssh_key: true + Settings.login_token: true + # Edit button in user_quotas_tab User.quotas_dialog: false upgrade-top-tab: panel_tabs: diff --git a/src/sunstone/etc/sunstone-views/cloud.yaml b/src/sunstone/etc/sunstone-views/cloud.yaml index e61f737682..17e8f85911 100644 --- a/src/sunstone/etc/sunstone-views/cloud.yaml +++ b/src/sunstone/etc/sunstone-views/cloud.yaml @@ -85,8 +85,18 @@ tabs: user_accounting_tab: true user_showback_tab: true actions: + # The buttons inside the settings-tab panel user_info_tab are + # configured with users-tab/actions; User.update_password and + # User.login_token + # + # Buttons for user_config_tab + Settings.change_language: true + Settings.change_password: true + Settings.change_view: true + Settings.ssh_key: true + Settings.login_token: true + # Edit button in user_quotas_tab User.quotas_dialog: false - # Buttons inside the settings-tab panel user_info_tab users-tab: actions: User.update_password: true diff --git a/src/sunstone/etc/sunstone-views/cloud_vcenter.yaml b/src/sunstone/etc/sunstone-views/cloud_vcenter.yaml index 59dbcd4d6c..b7fcdf8251 100644 --- a/src/sunstone/etc/sunstone-views/cloud_vcenter.yaml +++ b/src/sunstone/etc/sunstone-views/cloud_vcenter.yaml @@ -85,8 +85,18 @@ tabs: user_accounting_tab: true user_showback_tab: true actions: + # The buttons inside the settings-tab panel user_info_tab are + # configured with users-tab/actions; User.update_password and + # User.login_token + # + # Buttons for user_config_tab + Settings.change_language: true + Settings.change_password: true + Settings.change_view: true + Settings.ssh_key: true + Settings.login_token: true + # Edit button in user_quotas_tab User.quotas_dialog: false - # Buttons inside the settings-tab panel user_info_tab users-tab: actions: User.update_password: true diff --git a/src/sunstone/etc/sunstone-views/groupadmin.yaml b/src/sunstone/etc/sunstone-views/groupadmin.yaml index 33488bddd0..cc5e8dd708 100644 --- a/src/sunstone/etc/sunstone-views/groupadmin.yaml +++ b/src/sunstone/etc/sunstone-views/groupadmin.yaml @@ -770,9 +770,21 @@ tabs: settings-tab: panel_tabs: user_info_tab: true + user_config_tab: false user_quotas_tab: true group_quotas_tab: true user_accounting_tab: true user_showback_tab: true actions: - User.quotas_dialog: false + # The buttons inside the settings-tab panel user_info_tab are + # configured with users-tab/actions; User.update_password and + # User.login_token + # + # Buttons for user_config_tab + Settings.change_language: true + Settings.change_password: true + Settings.change_view: true + Settings.ssh_key: true + Settings.login_token: true + # Edit button in user_quotas_tab + User.quotas_dialog: false \ No newline at end of file diff --git a/src/sunstone/etc/sunstone-views/groupadmin_vcenter.yaml b/src/sunstone/etc/sunstone-views/groupadmin_vcenter.yaml index 30c082ba90..ea6bc4704c 100644 --- a/src/sunstone/etc/sunstone-views/groupadmin_vcenter.yaml +++ b/src/sunstone/etc/sunstone-views/groupadmin_vcenter.yaml @@ -771,9 +771,21 @@ tabs: settings-tab: panel_tabs: user_info_tab: true + user_config_tab: false user_quotas_tab: true group_quotas_tab: true user_accounting_tab: true user_showback_tab: true actions: - User.quotas_dialog: false + # The buttons inside the settings-tab panel user_info_tab are + # configured with users-tab/actions; User.update_password and + # User.login_token + # + # Buttons for user_config_tab + Settings.change_language: true + Settings.change_password: true + Settings.change_view: true + Settings.ssh_key: true + Settings.login_token: true + # Edit button in user_quotas_tab + User.quotas_dialog: false \ No newline at end of file diff --git a/src/sunstone/etc/sunstone-views/user.yaml b/src/sunstone/etc/sunstone-views/user.yaml index e4b4426ba7..2c9f0b86f3 100644 --- a/src/sunstone/etc/sunstone-views/user.yaml +++ b/src/sunstone/etc/sunstone-views/user.yaml @@ -775,9 +775,20 @@ tabs: settings-tab: panel_tabs: user_info_tab: true + user_config_tab: false user_quotas_tab: true group_quotas_tab: true user_accounting_tab: true user_showback_tab: true + # The buttons inside the settings-tab panel user_info_tab are + # configured with users-tab/actions; User.update_password and + # User.login_token actions: - User.quotas_dialog: false + # Buttons for user_config_tab + Settings.change_language: true + Settings.change_password: true + Settings.change_view: true + Settings.ssh_key: true + Settings.login_token: true + # Edit button in user_quotas_tab + User.quotas_dialog: false \ No newline at end of file diff --git a/src/sunstone/public/app/tabs/settings-tab/panels/user-config/html.hbs b/src/sunstone/public/app/tabs/settings-tab/panels/user-config/html.hbs index 8c71e29df0..f2b0826e12 100644 --- a/src/sunstone/public/app/tabs/settings-tab/panels/user-config/html.hbs +++ b/src/sunstone/public/app/tabs/settings-tab/panels/user-config/html.hbs @@ -15,149 +15,126 @@ {{! -------------------------------------------------------------------------- }}
-
-
-
-
-
- -
-
-
- - -
-
+ {{#isTabActionEnabled "settings-tab" "Settings.change_language"}} +
+
+
+ +
+ + +
+
+ + {{tr "Change Language"}} +
+
+
+
+
+
+
-
- - {{tr "Change Language"}} - -
-
- -
-
- -
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
-
- - - - -
-
+
+
+
-
- - {{tr "Change Password"}} -
-
-
-
-
-
- -
-
-
-
- -
-
-
-
- -
-
-
-
-
-
-
+ +
+ +
+ {{/isTabActionEnabled}} + {{#isTabActionEnabled "settings-tab" "Settings.change_password"}} +
+
+
+ +
+ + + + +
+
+ + {{tr "Change Password"}} +
+
+
+
+
+
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+ {{/isTabActionEnabled}}
-
-
-