Browse Source

Mise à jour du template pour la vue admin

Mise à jour de compatibilité avec la 5.0.2

ref #17017 @1h
Philippe Caseiro 2 years ago
parent
commit
e76275803a
1 changed files with 43 additions and 6 deletions
  1. 43
    6
      tmpl/admin.yaml

+ 43
- 6
tmpl/admin.yaml View File

@@ -45,6 +45,11 @@ features:
45 45
     # Allows to change the security groups for each network interface
46 46
     # on the VM creation dialog
47 47
     secgroups: true
48
+
49
+    # True to hide the CPU setting in the VM creation dialog. The CPU setting
50
+    # will be set to the same value as VCPU, that will still be visible for the
51
+    # end users
52
+    instantiate_hide_cpu: false
48 53
 tabs:
49 54
     dashboard-tab:
50 55
         # The following widgets can be used inside any of the '_per_row' settings
@@ -88,16 +93,19 @@ tabs:
88 93
             - 2         # Name
89 94
             - 3         # Group
90 95
             - 4         # Auth driver
91
-            - 5         # VMs
92
-            - 6         # Memory
93
-            - 7         # CPU
94
-            #- 8         # Group ID
95
-            #- 9         # Hidden User Data
96
-            #- 10        # Labels
96
+            #- 5         # Password
97
+            - 6         # VMs
98
+            - 7         # Memory
99
+            - 8         # CPU
100
+            #- 9         # Group ID
101
+            #- 10        # Hidden User Data
102
+            #- 11        # Labels
103
+            #- 12        # Search data
97 104
         actions:
98 105
             User.refresh: true
99 106
             User.create_dialog: true
100 107
             User.update_password: true
108
+            User.login_token: true
101 109
             User.quotas_dialog: true
102 110
             User.groups_dialog: true
103 111
             User.chgrp: true
@@ -183,6 +191,7 @@ tabs:
183 191
             - 4         # Name
184 192
             - 5         # Registration time
185 193
             #- 6         # Labels
194
+            #- 7         # Search data
186 195
         actions:
187 196
             Template.refresh: true
188 197
             Template.create_dialog: true
@@ -223,6 +232,7 @@ tabs:
223 232
             - 3         # Group
224 233
             - 4         # Name
225 234
             #- 5        # Labels
235
+            #- 6        # Search data
226 236
         actions:
227 237
             ServiceTemplate.refresh: true
228 238
             ServiceTemplate.create_dialog: true
@@ -249,10 +259,12 @@ tabs:
249 259
             - 4         # Name
250 260
             - 5         # Registration time
251 261
             #- 6         # Labels
262
+            #- 7         # Search data
252 263
         actions:
253 264
             VirtualRouterTemplate.refresh: true
254 265
             VirtualRouterTemplate.create_dialog: true
255 266
             VirtualRouterTemplate.update_dialog: true
267
+            VirtualRouterTemplate.instantiate_dialog: true
256 268
             VirtualRouterTemplate.rename: true
257 269
             VirtualRouterTemplate.chown: true
258 270
             VirtualRouterTemplate.chgrp: true
@@ -304,6 +316,7 @@ tabs:
304 316
             - 11      # VNC
305 317
             #- 12      # Hidden Template
306 318
             #- 13      # Labels
319
+            #- 14      # Search data
307 320
         actions:
308 321
             VM.refresh: true
309 322
             VM.create_dialog: true
@@ -392,8 +405,10 @@ tabs:
392 405
             - 4         # Name
393 406
             - 5         # State
394 407
             #- 6        # Labels
408
+            #- 7        # Search data
395 409
         actions:
396 410
             Service.refresh: true
411
+            Service.create_dialog: true
397 412
             Service.chown: true
398 413
             Service.chgrp: true
399 414
             Service.chmod: true
@@ -414,6 +429,8 @@ tabs:
414 429
             - 2         # Owner
415 430
             - 3         # Group
416 431
             - 4         # Name
432
+            #- 5        # Labels
433
+            #- 6        # Search data
417 434
         actions:
418 435
             VirtualRouter.refresh: true
419 436
             VirtualRouter.create_dialog: true
@@ -475,6 +492,7 @@ tabs:
475 492
             #- 11        # VM MAD
476 493
             #- 12        # Last monitored on
477 494
             #- 13        # Labels
495
+            #- 14        # Search data
478 496
         actions:
479 497
             Host.refresh: true
480 498
             Host.create_dialog: true
@@ -524,6 +542,7 @@ tabs:
524 542
             - 10        # Type
525 543
             - 11        # Status
526 544
             #- 12        # Labels
545
+            #- 13        # Search data
527 546
         actions:
528 547
             Datastore.refresh: true
529 548
             Datastore.create_dialog: true
@@ -558,6 +577,7 @@ tabs:
558 577
             - 11        # #VMs
559 578
             #- 12       # Target
560 579
             #- 13       # Labels
580
+            #- 14        # Search data
561 581
         actions:
562 582
             Image.refresh: true
563 583
             Image.create_dialog: true
@@ -596,6 +616,7 @@ tabs:
596 616
             #- 11        # #VMs
597 617
             #- 12       # Target
598 618
             #- 13       # Labels
619
+            #- 14        # Search data
599 620
         actions:
600 621
             File.refresh: true
601 622
             File.create_dialog: true
@@ -623,6 +644,7 @@ tabs:
623 644
             - 7         # Driver
624 645
             - 8         # Zone
625 646
             #- 9        # Labels
647
+            #- 10        # Search data
626 648
         actions:
627 649
             MarketPlace.refresh: true
628 650
             MarketPlace.create_dialog: true
@@ -652,6 +674,7 @@ tabs:
652 674
             - 10        # Marketplace
653 675
             - 11         # Zone
654 676
             #- 12        # Labels
677
+            #- 13        # Search data
655 678
         actions:
656 679
             MarketPlaceApp.refresh: true
657 680
             MarketPlaceApp.create_dialog: true
@@ -689,6 +712,7 @@ tabs:
689 712
             - 8         # Leases
690 713
             #- 9         # VLAN ID
691 714
             #- 10         # Labels
715
+            #- 11        # Search data
692 716
         actions:
693 717
             Network.refresh: true
694 718
             Network.create_dialog: true
@@ -726,6 +750,7 @@ tabs:
726 750
             - 3         # Group
727 751
             - 4         # Name
728 752
             #- 5         # Labels
753
+            #- 6        # Search data
729 754
         actions:
730 755
             SecurityGroup.refresh: true
731 756
             SecurityGroup.create_dialog: true
@@ -754,11 +779,23 @@ tabs:
754 779
     settings-tab:
755 780
         panel_tabs:
756 781
             user_info_tab: true
782
+            user_config_tab: false
757 783
             user_quotas_tab: true
758 784
             group_quotas_tab: true
759 785
             user_accounting_tab: true
760 786
             user_showback_tab: true
761 787
         actions:
788
+            # The buttons inside the settings-tab panel user_info_tab are
789
+            # configured with users-tab/actions; User.update_password and
790
+            # User.login_token
791
+            #
792
+            # Buttons for user_config_tab
793
+            Settings.change_language: true
794
+            Settings.change_password: true
795
+            Settings.change_view: true
796
+            Settings.ssh_key: true
797
+            Settings.login_token: true
798
+            # Edit button in user_quotas_tab
762 799
             User.quotas_dialog: false
763 800
     upgrade-top-tab:
764 801
         panel_tabs: