mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-21 12:22:38 +09:00
Merge branch 'feature-4363'
This commit is contained in:
commit
99e76f39fc
192 files changed
+5753
-7039
No files matched your search
@@ -2,30 +2,32 @@ small_logo: images/opennebula-sunstone-v4.14-small.png
|
||||
provision_logo: images/one_small_logo.png
|
||||
enabled_tabs:
|
||||
- dashboard-tab
|
||||
- system-tab
|
||||
- system-top-tab
|
||||
- users-tab
|
||||
- groups-tab
|
||||
- vdcs-tab
|
||||
- acls-tab
|
||||
- vresources-tab
|
||||
- vms-tab
|
||||
- templates-top-tab
|
||||
- templates-tab
|
||||
- images-tab
|
||||
- files-tab
|
||||
- infra-tab
|
||||
- oneflow-templates-tab
|
||||
- instances-top-tab
|
||||
- vms-tab
|
||||
- oneflow-services-tab
|
||||
- infrastructure-top-tab
|
||||
- clusters-tab
|
||||
- hosts-tab
|
||||
- datastores-tab
|
||||
- vnets-topology-tab
|
||||
- vnets-tab
|
||||
- secgroups-tab
|
||||
- vrouters-tab
|
||||
- zones-tab
|
||||
- oneflow-dashboard-tab
|
||||
- oneflow-services-tab
|
||||
- oneflow-templates-tab
|
||||
- storage-top-tab
|
||||
- datastores-tab
|
||||
- images-tab
|
||||
- files-tab
|
||||
- marketplaces-tab
|
||||
- marketplaceapps-tab
|
||||
- network-top-tab
|
||||
- vnets-tab
|
||||
- vrouters-tab
|
||||
- vnets-topology-tab
|
||||
- secgroups-tab
|
||||
- settings-tab
|
||||
- support-tab
|
||||
autorefresh: true
|
||||
@@ -46,7 +48,7 @@ tabs:
|
||||
- hosts
|
||||
- users
|
||||
widgets_one_footer:
|
||||
system-tab:
|
||||
system-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
users-tab:
|
||||
@@ -121,7 +123,6 @@ tabs:
|
||||
Vdc.update_dialog: true
|
||||
Vdc.rename: true
|
||||
Vdc.delete: true
|
||||
|
||||
acls-tab:
|
||||
panel_tabs:
|
||||
table_columns:
|
||||
@@ -137,7 +138,69 @@ tabs:
|
||||
Acl.refresh: true
|
||||
Acl.create_dialog: true
|
||||
Acl.delete: true
|
||||
vresources-tab:
|
||||
templates-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
templates-tab:
|
||||
panel_tabs:
|
||||
template_info_tab: true
|
||||
template_template_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Registration time
|
||||
#- 6 # Labels
|
||||
actions:
|
||||
Template.refresh: true
|
||||
Template.create_dialog: true
|
||||
Template.import_dialog: false
|
||||
Template.update_dialog: true
|
||||
Template.instantiate_vms: true
|
||||
Template.rename: true
|
||||
Template.chown: true
|
||||
Template.chgrp: true
|
||||
Template.chmod: true
|
||||
Template.clone_dialog: true
|
||||
Template.delete: true
|
||||
Template.delete_recursive: true
|
||||
Template.share: true
|
||||
Template.unshare: true
|
||||
template_creation_tabs:
|
||||
general: true
|
||||
storage: true
|
||||
network: true
|
||||
os_booting: true
|
||||
features: true
|
||||
input_output: true
|
||||
context: true
|
||||
scheduling: true
|
||||
hybrid: true
|
||||
other: true
|
||||
oneflow-templates-tab:
|
||||
panel_tabs:
|
||||
service_template_info_tab: true
|
||||
service_template_roles_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
ServiceTemplate.refresh: true
|
||||
ServiceTemplate.create_dialog: true
|
||||
ServiceTemplate.update_dialog: true
|
||||
ServiceTemplate.instantiate: true
|
||||
ServiceTemplate.chown: true
|
||||
ServiceTemplate.chgrp: true
|
||||
ServiceTemplate.chmod: true
|
||||
ServiceTemplate.rename: true
|
||||
ServiceTemplate.clone_dialog: true
|
||||
ServiceTemplate.delete: true
|
||||
instances-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
vms-tab:
|
||||
@@ -207,44 +270,163 @@ tabs:
|
||||
VM.resched: true
|
||||
VM.unresched: true
|
||||
VM.saveas_template: true
|
||||
templates-tab:
|
||||
oneflow-services-tab:
|
||||
panel_tabs:
|
||||
template_info_tab: true
|
||||
template_template_tab: true
|
||||
service_info_tab: true
|
||||
service_roles_tab: true
|
||||
service_log_tab: true
|
||||
panel_tabs_actions:
|
||||
service_roles_tab:
|
||||
Role.scale: true
|
||||
Role.hold: true
|
||||
Role.release: true
|
||||
Role.suspend: true
|
||||
Role.resume: true
|
||||
Role.stop: true
|
||||
Role.reboot: true
|
||||
Role.reboot_hard: true
|
||||
Role.poweroff: true
|
||||
Role.poweroff_hard: true
|
||||
Role.undeploy: true
|
||||
Role.undeploy_hard: true
|
||||
Role.shutdown: true
|
||||
Role.shutdown_hard: true
|
||||
Role.delete: true
|
||||
Role.delete_recreate: true
|
||||
RoleVM.hold: true
|
||||
RoleVM.release: true
|
||||
RoleVM.suspend: true
|
||||
RoleVM.resume: true
|
||||
RoleVM.stop: true
|
||||
RoleVM.reboot: true
|
||||
RoleVM.reboot_hard: true
|
||||
RoleVM.poweroff: true
|
||||
RoleVM.poweroff_hard: true
|
||||
RoleVM.undeploy: true
|
||||
RoleVM.undeploy_hard: true
|
||||
RoleVM.shutdown: true
|
||||
RoleVM.shutdown_hard: true
|
||||
RoleVM.delete: true
|
||||
RoleVM.delete_recreate: true
|
||||
RoleVM.resched: true
|
||||
RoleVM.unresched: true
|
||||
RoleVM.recover: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Registration time
|
||||
- 5 # State
|
||||
actions:
|
||||
Service.refresh: true
|
||||
Service.chown: true
|
||||
Service.chgrp: true
|
||||
Service.chmod: true
|
||||
Service.rename: true
|
||||
Service.shutdown: true
|
||||
Service.recover: true
|
||||
Service.delete: true
|
||||
infrastructure-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
clusters-tab:
|
||||
panel_tabs:
|
||||
cluster_info_tab: true
|
||||
cluster_host_tab: true
|
||||
cluster_vnet_tab: true
|
||||
cluster_datastore_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Hosts
|
||||
- 4 # VNets
|
||||
- 5 # Datastores
|
||||
#- 6 # Labels
|
||||
actions:
|
||||
Template.refresh: true
|
||||
Template.create_dialog: true
|
||||
Template.import_dialog: false
|
||||
Template.update_dialog: true
|
||||
Template.instantiate_vms: true
|
||||
Template.rename: true
|
||||
Template.chown: true
|
||||
Template.chgrp: true
|
||||
Template.chmod: true
|
||||
Template.clone_dialog: true
|
||||
Template.delete: true
|
||||
Template.delete_recursive: true
|
||||
Template.share: true
|
||||
Template.unshare: true
|
||||
template_creation_tabs:
|
||||
general: true
|
||||
storage: true
|
||||
network: true
|
||||
os_booting: true
|
||||
features: true
|
||||
input_output: true
|
||||
context: true
|
||||
scheduling: true
|
||||
hybrid: true
|
||||
other: true
|
||||
Cluster.refresh: true
|
||||
Cluster.create_dialog: true
|
||||
Cluster.update_dialog: true
|
||||
Cluster.delete: true
|
||||
Cluster.rename: true
|
||||
hosts-tab:
|
||||
panel_tabs:
|
||||
host_info_tab: true
|
||||
host_monitoring_tab: true
|
||||
host_vms_tab: true
|
||||
host_wilds_tab: true
|
||||
host_esx_tab: true
|
||||
host_pci_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Cluster
|
||||
- 4 # RVMs
|
||||
#- 5 # Real CPU
|
||||
- 6 # Allocated CPU
|
||||
#- 7 # Real MEM
|
||||
- 8 # Allocated MEM
|
||||
- 9 # Status
|
||||
#- 10 # IM MAD
|
||||
#- 11 # VM MAD
|
||||
#- 12 # Last monitored on
|
||||
#- 13 # Labels
|
||||
actions:
|
||||
Host.refresh: true
|
||||
Host.create_dialog: true
|
||||
Host.addtocluster: true
|
||||
Host.rename: true
|
||||
Host.enable: true
|
||||
Host.disable: true
|
||||
Host.delete: true
|
||||
zones-tab:
|
||||
panel_tabs:
|
||||
zone_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Endpoint
|
||||
#- 4 # Labels
|
||||
actions:
|
||||
Zone.refresh: true
|
||||
Zone.create_dialog: true
|
||||
Zone.rename: true
|
||||
Zone.delete: true
|
||||
storage-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
datastores-tab:
|
||||
panel_tabs:
|
||||
datastore_info_tab: true
|
||||
datastore_image_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Capacity
|
||||
- 6 # Cluster
|
||||
#- 7 # Basepath
|
||||
#- 8 # TM
|
||||
#- 9 # DS
|
||||
- 10 # Type
|
||||
- 11 # Status
|
||||
#- 12 # Labels
|
||||
actions:
|
||||
Datastore.refresh: true
|
||||
Datastore.create_dialog: true
|
||||
Datastore.addtocluster: true
|
||||
Datastore.rename: true
|
||||
Datastore.chown: true
|
||||
Datastore.chgrp: true
|
||||
Datastore.chmod: true
|
||||
Datastore.delete: true
|
||||
Datastore.enable: true
|
||||
Datastore.disable: true
|
||||
images-tab:
|
||||
panel_tabs:
|
||||
image_info_tab: true
|
||||
@@ -310,289 +492,6 @@ tabs:
|
||||
File.enable: true
|
||||
File.disable: true
|
||||
File.delete: true
|
||||
infra-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
clusters-tab:
|
||||
panel_tabs:
|
||||
cluster_info_tab: true
|
||||
cluster_host_tab: true
|
||||
cluster_vnet_tab: true
|
||||
cluster_datastore_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Hosts
|
||||
- 4 # VNets
|
||||
- 5 # Datastores
|
||||
#- 6 # Labels
|
||||
actions:
|
||||
Cluster.refresh: true
|
||||
Cluster.create_dialog: true
|
||||
Cluster.update_dialog: true
|
||||
Cluster.delete: true
|
||||
Cluster.rename: true
|
||||
hosts-tab:
|
||||
panel_tabs:
|
||||
host_info_tab: true
|
||||
host_monitoring_tab: true
|
||||
host_vms_tab: true
|
||||
host_wilds_tab: true
|
||||
host_esx_tab: true
|
||||
host_pci_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Cluster
|
||||
- 4 # RVMs
|
||||
#- 5 # Real CPU
|
||||
- 6 # Allocated CPU
|
||||
#- 7 # Real MEM
|
||||
- 8 # Allocated MEM
|
||||
- 9 # Status
|
||||
#- 10 # IM MAD
|
||||
#- 11 # VM MAD
|
||||
#- 12 # Last monitored on
|
||||
#- 13 # Labels
|
||||
actions:
|
||||
Host.refresh: true
|
||||
Host.create_dialog: true
|
||||
Host.addtocluster: true
|
||||
Host.rename: true
|
||||
Host.enable: true
|
||||
Host.disable: true
|
||||
Host.delete: true
|
||||
datastores-tab:
|
||||
panel_tabs:
|
||||
datastore_info_tab: true
|
||||
datastore_image_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Capacity
|
||||
- 6 # Cluster
|
||||
#- 7 # Basepath
|
||||
#- 8 # TM
|
||||
#- 9 # DS
|
||||
- 10 # Type
|
||||
- 11 # Status
|
||||
#- 12 # Labels
|
||||
actions:
|
||||
Datastore.refresh: true
|
||||
Datastore.create_dialog: true
|
||||
Datastore.addtocluster: true
|
||||
Datastore.rename: true
|
||||
Datastore.chown: true
|
||||
Datastore.chgrp: true
|
||||
Datastore.chmod: true
|
||||
Datastore.delete: true
|
||||
Datastore.enable: true
|
||||
Datastore.disable: true
|
||||
vnets-topology-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
NetworkTopology.refresh: true
|
||||
NetworkTopology.fit: true
|
||||
NetworkTopology.collapseVMs: true
|
||||
NetworkTopology.openVMs: true
|
||||
vnets-tab:
|
||||
panel_tabs:
|
||||
vnet_info_tab: true
|
||||
vnet_ar_list_tab: true
|
||||
vnet_leases_tab: true
|
||||
vnet_sg_list_tab: true
|
||||
vnet_vr_list_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Reservation
|
||||
- 6 # Cluster
|
||||
#- 7 # Bridge
|
||||
- 8 # Leases
|
||||
#- 9 # VLAN ID
|
||||
#- 10 # Labels
|
||||
actions:
|
||||
Network.refresh: true
|
||||
Network.create_dialog: true
|
||||
Network.import_dialog: false
|
||||
Network.update_dialog: true
|
||||
Network.reserve_dialog: true
|
||||
Network.addtocluster: true
|
||||
Network.rename: true
|
||||
Network.chown: true
|
||||
Network.chgrp: true
|
||||
Network.chmod: true
|
||||
Network.delete: true
|
||||
Network.hold_lease: true
|
||||
Network.release_lease: true
|
||||
Network.add_ar: true
|
||||
Network.remove_ar: true
|
||||
Network.update_ar: true
|
||||
secgroups-tab:
|
||||
panel_tabs:
|
||||
security_group_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
#- 5 # Labels
|
||||
actions:
|
||||
SecurityGroup.refresh: true
|
||||
SecurityGroup.create_dialog: true
|
||||
SecurityGroup.update_dialog: true
|
||||
SecurityGroup.rename: true
|
||||
SecurityGroup.chown: true
|
||||
SecurityGroup.chgrp: true
|
||||
SecurityGroup.chmod: true
|
||||
SecurityGroup.clone_dialog: true
|
||||
SecurityGroup.delete: true
|
||||
vrouters-tab:
|
||||
panel_tabs:
|
||||
virtual_router_info_tab: true
|
||||
virtual_router_vms_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
VirtualRouter.refresh: true
|
||||
VirtualRouter.create_dialog: true
|
||||
VirtualRouter.rename: true
|
||||
VirtualRouter.chown: true
|
||||
VirtualRouter.chgrp: true
|
||||
VirtualRouter.chmod: true
|
||||
VirtualRouter.delete: true
|
||||
VirtualRouter.attachnic: true
|
||||
VirtualRouter.detachnic: true
|
||||
oneflow-dashboard-tab:
|
||||
panel_tabs:
|
||||
table_columns:
|
||||
actions:
|
||||
oneflow-services-tab:
|
||||
panel_tabs:
|
||||
service_info_tab: true
|
||||
service_roles_tab: true
|
||||
service_log_tab: true
|
||||
panel_tabs_actions:
|
||||
service_roles_tab:
|
||||
Role.scale: true
|
||||
Role.hold: true
|
||||
Role.release: true
|
||||
Role.suspend: true
|
||||
Role.resume: true
|
||||
Role.stop: true
|
||||
Role.reboot: true
|
||||
Role.reboot_hard: true
|
||||
Role.poweroff: true
|
||||
Role.poweroff_hard: true
|
||||
Role.undeploy: true
|
||||
Role.undeploy_hard: true
|
||||
Role.shutdown: true
|
||||
Role.shutdown_hard: true
|
||||
Role.delete: true
|
||||
Role.delete_recreate: true
|
||||
RoleVM.hold: true
|
||||
RoleVM.release: true
|
||||
RoleVM.suspend: true
|
||||
RoleVM.resume: true
|
||||
RoleVM.stop: true
|
||||
RoleVM.reboot: true
|
||||
RoleVM.reboot_hard: true
|
||||
RoleVM.poweroff: true
|
||||
RoleVM.poweroff_hard: true
|
||||
RoleVM.undeploy: true
|
||||
RoleVM.undeploy_hard: true
|
||||
RoleVM.shutdown: true
|
||||
RoleVM.shutdown_hard: true
|
||||
RoleVM.delete: true
|
||||
RoleVM.delete_recreate: true
|
||||
RoleVM.resched: true
|
||||
RoleVM.unresched: true
|
||||
RoleVM.recover: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # State
|
||||
actions:
|
||||
Service.refresh: true
|
||||
Service.chown: true
|
||||
Service.chgrp: true
|
||||
Service.chmod: true
|
||||
Service.rename: true
|
||||
Service.shutdown: true
|
||||
Service.recover: true
|
||||
Service.delete: true
|
||||
oneflow-templates-tab:
|
||||
panel_tabs:
|
||||
service_template_info_tab: true
|
||||
service_template_roles_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
ServiceTemplate.refresh: true
|
||||
ServiceTemplate.create_dialog: true
|
||||
ServiceTemplate.update_dialog: true
|
||||
ServiceTemplate.instantiate: true
|
||||
ServiceTemplate.chown: true
|
||||
ServiceTemplate.chgrp: true
|
||||
ServiceTemplate.chmod: true
|
||||
ServiceTemplate.rename: true
|
||||
ServiceTemplate.clone_dialog: true
|
||||
ServiceTemplate.delete: true
|
||||
zones-tab:
|
||||
panel_tabs:
|
||||
zone_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Endpoint
|
||||
#- 4 # Labels
|
||||
actions:
|
||||
Zone.refresh: true
|
||||
Zone.create_dialog: true
|
||||
Zone.rename: true
|
||||
Zone.delete: true
|
||||
support-tab:
|
||||
panel_tabs:
|
||||
support_info_tab: true
|
||||
table_columns:
|
||||
#- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Subject
|
||||
- 3 # Created at
|
||||
- 4 # Status
|
||||
actions:
|
||||
Support.refresh: true
|
||||
Support.create_dialog: true
|
||||
settings-tab:
|
||||
panel_tabs:
|
||||
user_info_tab: true
|
||||
user_quotas_tab: true
|
||||
group_quotas_tab: true
|
||||
user_accounting_tab: true
|
||||
user_showback_tab: true
|
||||
actions:
|
||||
User.quotas_dialog: false
|
||||
marketplaces-tab:
|
||||
panel_tabs:
|
||||
marketplace_info_tab: true
|
||||
@@ -644,3 +543,110 @@ tabs:
|
||||
MarketPlaceApp.enable: true
|
||||
MarketPlaceApp.disable: true
|
||||
MarketPlaceApp.delete: true
|
||||
network-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
vnets-tab:
|
||||
panel_tabs:
|
||||
vnet_info_tab: true
|
||||
vnet_ar_list_tab: true
|
||||
vnet_leases_tab: true
|
||||
vnet_sg_list_tab: true
|
||||
vnet_vr_list_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Reservation
|
||||
- 6 # Cluster
|
||||
#- 7 # Bridge
|
||||
- 8 # Leases
|
||||
#- 9 # VLAN ID
|
||||
#- 10 # Labels
|
||||
actions:
|
||||
Network.refresh: true
|
||||
Network.create_dialog: true
|
||||
Network.import_dialog: false
|
||||
Network.update_dialog: true
|
||||
Network.reserve_dialog: true
|
||||
Network.addtocluster: true
|
||||
Network.rename: true
|
||||
Network.chown: true
|
||||
Network.chgrp: true
|
||||
Network.chmod: true
|
||||
Network.delete: true
|
||||
Network.hold_lease: true
|
||||
Network.release_lease: true
|
||||
Network.add_ar: true
|
||||
Network.remove_ar: true
|
||||
Network.update_ar: true
|
||||
vrouters-tab:
|
||||
panel_tabs:
|
||||
virtual_router_info_tab: true
|
||||
virtual_router_vms_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
VirtualRouter.refresh: true
|
||||
VirtualRouter.create_dialog: true
|
||||
VirtualRouter.rename: true
|
||||
VirtualRouter.chown: true
|
||||
VirtualRouter.chgrp: true
|
||||
VirtualRouter.chmod: true
|
||||
VirtualRouter.delete: true
|
||||
VirtualRouter.attachnic: true
|
||||
VirtualRouter.detachnic: true
|
||||
vnets-topology-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
NetworkTopology.refresh: true
|
||||
NetworkTopology.fit: true
|
||||
NetworkTopology.collapseVMs: true
|
||||
NetworkTopology.openVMs: true
|
||||
secgroups-tab:
|
||||
panel_tabs:
|
||||
security_group_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
#- 5 # Labels
|
||||
actions:
|
||||
SecurityGroup.refresh: true
|
||||
SecurityGroup.create_dialog: true
|
||||
SecurityGroup.update_dialog: true
|
||||
SecurityGroup.rename: true
|
||||
SecurityGroup.chown: true
|
||||
SecurityGroup.chgrp: true
|
||||
SecurityGroup.chmod: true
|
||||
SecurityGroup.clone_dialog: true
|
||||
SecurityGroup.delete: true
|
||||
support-tab:
|
||||
panel_tabs:
|
||||
support_info_tab: true
|
||||
table_columns:
|
||||
#- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Subject
|
||||
- 3 # Created at
|
||||
- 4 # Status
|
||||
actions:
|
||||
Support.refresh: true
|
||||
Support.create_dialog: true
|
||||
settings-tab:
|
||||
panel_tabs:
|
||||
user_info_tab: true
|
||||
user_quotas_tab: true
|
||||
group_quotas_tab: true
|
||||
user_accounting_tab: true
|
||||
user_showback_tab: true
|
||||
actions:
|
||||
User.quotas_dialog: false
|
||||
@@ -2,28 +2,32 @@ small_logo: images/opennebula-sunstone-v4.14-small.png
|
||||
provision_logo: images/one_small_logo.png
|
||||
enabled_tabs:
|
||||
- dashboard-tab
|
||||
- system-tab
|
||||
- system-top-tab
|
||||
- users-tab
|
||||
- groups-tab
|
||||
- vdcs-tab
|
||||
- acls-tab
|
||||
- vresources-tab
|
||||
- vms-tab
|
||||
- templates-top-tab
|
||||
- templates-tab
|
||||
- images-tab
|
||||
#- files-tab
|
||||
- infra-tab
|
||||
- oneflow-templates-tab
|
||||
- instances-top-tab
|
||||
- vms-tab
|
||||
- oneflow-services-tab
|
||||
- infrastructure-top-tab
|
||||
- clusters-tab
|
||||
- hosts-tab
|
||||
- datastores-tab
|
||||
- vnets-topology-tab
|
||||
- vnets-tab
|
||||
#- secgroups-tab
|
||||
- vrouters-tab
|
||||
- zones-tab
|
||||
- oneflow-dashboard-tab
|
||||
- oneflow-services-tab
|
||||
- oneflow-templates-tab
|
||||
- storage-top-tab
|
||||
- datastores-tab
|
||||
- images-tab
|
||||
#- files-tab
|
||||
- marketplaces-tab
|
||||
- marketplaceapps-tab
|
||||
- network-top-tab
|
||||
- vnets-tab
|
||||
- vrouters-tab
|
||||
- vnets-topology-tab
|
||||
#- secgroups-tab
|
||||
- settings-tab
|
||||
- support-tab
|
||||
autorefresh: true
|
||||
@@ -37,14 +41,14 @@ tabs:
|
||||
Sunstone.toggle_top: false
|
||||
widgets_three_per_row:
|
||||
widgets_two_per_row:
|
||||
# - storage
|
||||
# - network
|
||||
#- storage
|
||||
#- network
|
||||
widgets_one_per_row:
|
||||
- vms
|
||||
- hosts
|
||||
- users
|
||||
widgets_one_footer:
|
||||
system-tab:
|
||||
system-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
users-tab:
|
||||
@@ -119,7 +123,6 @@ tabs:
|
||||
Vdc.update_dialog: true
|
||||
Vdc.rename: true
|
||||
Vdc.delete: true
|
||||
|
||||
acls-tab:
|
||||
panel_tabs:
|
||||
table_columns:
|
||||
@@ -135,7 +138,69 @@ tabs:
|
||||
Acl.refresh: true
|
||||
Acl.create_dialog: true
|
||||
Acl.delete: true
|
||||
vresources-tab:
|
||||
templates-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
templates-tab:
|
||||
panel_tabs:
|
||||
template_info_tab: true
|
||||
template_template_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Registration time
|
||||
#- 6 # Labels
|
||||
actions:
|
||||
Template.refresh: true
|
||||
Template.create_dialog: true
|
||||
Template.import_dialog: true
|
||||
Template.update_dialog: true
|
||||
Template.instantiate_vms: true
|
||||
Template.rename: true
|
||||
Template.chown: true
|
||||
Template.chgrp: true
|
||||
Template.chmod: true
|
||||
Template.clone_dialog: true
|
||||
Template.delete: true
|
||||
Template.delete_recursive: false
|
||||
Template.share: false
|
||||
Template.unshare: false
|
||||
template_creation_tabs:
|
||||
general: true
|
||||
storage: true
|
||||
network: true
|
||||
os_booting: true
|
||||
features: true
|
||||
input_output: true
|
||||
context: true
|
||||
scheduling: true
|
||||
hybrid: true
|
||||
other: true
|
||||
oneflow-templates-tab:
|
||||
panel_tabs:
|
||||
service_template_info_tab: true
|
||||
service_template_roles_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
ServiceTemplate.refresh: true
|
||||
ServiceTemplate.create_dialog: true
|
||||
ServiceTemplate.update_dialog: true
|
||||
ServiceTemplate.instantiate: true
|
||||
ServiceTemplate.chown: true
|
||||
ServiceTemplate.chgrp: true
|
||||
ServiceTemplate.chmod: true
|
||||
ServiceTemplate.rename: true
|
||||
ServiceTemplate.clone_dialog: true
|
||||
ServiceTemplate.delete: true
|
||||
instances-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
vms-tab:
|
||||
@@ -205,6 +270,7 @@ tabs:
|
||||
VM.resched: true
|
||||
VM.unresched: true
|
||||
VM.saveas_template: false
|
||||
<<<<<<< HEAD
|
||||
templates-tab:
|
||||
panel_tabs:
|
||||
template_info_tab: true
|
||||
@@ -281,205 +347,9 @@ tabs:
|
||||
Image.snapshot_revert: false
|
||||
Image.snapshot_delete: false
|
||||
files-tab:
|
||||
panel_tabs:
|
||||
file_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Datastore
|
||||
#- 6 # Size
|
||||
- 7 # Type
|
||||
#- 8 # Registration time
|
||||
#- 9 # Persistent
|
||||
- 10 # Status
|
||||
#- 11 # #VMs
|
||||
#- 12 # Target
|
||||
#- 13 # Labels
|
||||
actions:
|
||||
File.refresh: true
|
||||
File.create_dialog: true
|
||||
File.rename: true
|
||||
File.chown: true
|
||||
File.chgrp: true
|
||||
File.chmod: true
|
||||
File.enable: true
|
||||
File.disable: true
|
||||
File.delete: true
|
||||
infra-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
clusters-tab:
|
||||
panel_tabs:
|
||||
cluster_info_tab: true
|
||||
cluster_host_tab: true
|
||||
cluster_vnet_tab: true
|
||||
cluster_datastore_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Hosts
|
||||
- 4 # VNets
|
||||
- 5 # Datastores
|
||||
#- 6 # Labels
|
||||
actions:
|
||||
Cluster.refresh: true
|
||||
Cluster.create_dialog: true
|
||||
Cluster.update_dialog: true
|
||||
Cluster.delete: true
|
||||
Cluster.rename: true
|
||||
hosts-tab:
|
||||
panel_tabs:
|
||||
host_info_tab: true
|
||||
host_monitoring_tab: true
|
||||
host_vms_tab: true
|
||||
host_wilds_tab: true
|
||||
host_esx_tab: true
|
||||
host_pci_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Cluster
|
||||
- 4 # RVMs
|
||||
#- 5 # Real CPU
|
||||
- 6 # Allocated CPU
|
||||
#- 7 # Real MEM
|
||||
- 8 # Allocated MEM
|
||||
- 9 # Status
|
||||
#- 10 # IM MAD
|
||||
#- 11 # VM MAD
|
||||
#- 12 # Last monitored on
|
||||
#- 13 # Labels
|
||||
actions:
|
||||
Host.refresh: true
|
||||
Host.create_dialog: true
|
||||
Host.addtocluster: true
|
||||
Host.rename: true
|
||||
Host.enable: true
|
||||
Host.disable: true
|
||||
Host.delete: true
|
||||
datastores-tab:
|
||||
panel_tabs:
|
||||
datastore_info_tab: true
|
||||
datastore_image_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Capacity
|
||||
- 6 # Cluster
|
||||
#- 7 # Basepath
|
||||
#- 8 # TM
|
||||
#- 9 # DS
|
||||
- 10 # Type
|
||||
- 11 # Status
|
||||
#- 12 # Labels
|
||||
actions:
|
||||
Datastore.refresh: true
|
||||
Datastore.create_dialog: true
|
||||
Datastore.update_dialog: true
|
||||
Datastore.addtocluster: true
|
||||
Datastore.rename: true
|
||||
Datastore.chown: true
|
||||
Datastore.chgrp: true
|
||||
Datastore.chmod: true
|
||||
Datastore.delete: true
|
||||
Datastore.enable: true
|
||||
Datastore.disable: true
|
||||
vnets-topology-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
NetworkTopology.refresh: true
|
||||
NetworkTopology.fit: true
|
||||
NetworkTopology.collapseVMs: true
|
||||
NetworkTopology.openVMs: true
|
||||
vnets-tab:
|
||||
panel_tabs:
|
||||
vnet_info_tab: true
|
||||
vnet_ar_list_tab: true
|
||||
vnet_leases_tab: true
|
||||
vnet_sg_list_tab: false
|
||||
vnet_vr_list_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Reservation
|
||||
- 6 # Cluster
|
||||
#- 7 # Bridge
|
||||
- 8 # Leases
|
||||
#- 9 # VLAN ID
|
||||
#- 10 # Labels
|
||||
actions:
|
||||
Network.refresh: true
|
||||
Network.create_dialog: true
|
||||
Network.import_dialog: true
|
||||
Network.update_dialog: true
|
||||
Network.reserve_dialog: true
|
||||
Network.addtocluster: true
|
||||
Network.rename: true
|
||||
Network.chown: true
|
||||
Network.chgrp: true
|
||||
Network.chmod: true
|
||||
Network.delete: true
|
||||
Network.hold_lease: true
|
||||
Network.release_lease: true
|
||||
Network.add_ar: true
|
||||
Network.remove_ar: true
|
||||
Network.update_ar: true
|
||||
secgroups-tab:
|
||||
panel_tabs:
|
||||
security_group_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
#- 5 # Labels
|
||||
actions:
|
||||
SecurityGroup.refresh: true
|
||||
SecurityGroup.create_dialog: true
|
||||
SecurityGroup.update_dialog: true
|
||||
SecurityGroup.rename: true
|
||||
SecurityGroup.chown: true
|
||||
SecurityGroup.chgrp: true
|
||||
SecurityGroup.chmod: true
|
||||
SecurityGroup.clone_dialog: true
|
||||
SecurityGroup.delete: true
|
||||
vrouters-tab:
|
||||
panel_tabs:
|
||||
virtual_router_info_tab: true
|
||||
virtual_router_vms_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
VirtualRouter.refresh: true
|
||||
VirtualRouter.create_dialog: true
|
||||
VirtualRouter.rename: true
|
||||
VirtualRouter.chown: true
|
||||
VirtualRouter.chgrp: true
|
||||
VirtualRouter.chmod: true
|
||||
VirtualRouter.delete: true
|
||||
VirtualRouter.attachnic: true
|
||||
VirtualRouter.detachnic: true
|
||||
oneflow-dashboard-tab:
|
||||
panel_tabs:
|
||||
table_columns:
|
||||
actions:
|
||||
=======
|
||||
oneflow-services-tab:
|
||||
>>>>>>> feature-4363
|
||||
panel_tabs:
|
||||
service_info_tab: true
|
||||
service_roles_tab: true
|
||||
@@ -536,27 +406,60 @@ tabs:
|
||||
Service.shutdown: true
|
||||
Service.recover: true
|
||||
Service.delete: true
|
||||
oneflow-templates-tab:
|
||||
infrastructure-top-tab:
|
||||
panel_tabs:
|
||||
service_template_info_tab: true
|
||||
service_template_roles_tab: true
|
||||
actions:
|
||||
clusters-tab:
|
||||
panel_tabs:
|
||||
cluster_info_tab: true
|
||||
cluster_host_tab: true
|
||||
cluster_vnet_tab: true
|
||||
cluster_datastore_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 2 # Name
|
||||
- 3 # Hosts
|
||||
- 4 # VNets
|
||||
- 5 # Datastores
|
||||
#- 6 # Labels
|
||||
actions:
|
||||
ServiceTemplate.refresh: true
|
||||
ServiceTemplate.create_dialog: true
|
||||
ServiceTemplate.update_dialog: true
|
||||
ServiceTemplate.instantiate: true
|
||||
ServiceTemplate.chown: true
|
||||
ServiceTemplate.chgrp: true
|
||||
ServiceTemplate.chmod: true
|
||||
ServiceTemplate.rename: true
|
||||
ServiceTemplate.clone_dialog: true
|
||||
ServiceTemplate.delete: true
|
||||
Cluster.refresh: true
|
||||
Cluster.create_dialog: true
|
||||
Cluster.update_dialog: true
|
||||
Cluster.delete: true
|
||||
Cluster.rename: true
|
||||
hosts-tab:
|
||||
panel_tabs:
|
||||
host_info_tab: true
|
||||
host_monitoring_tab: true
|
||||
host_vms_tab: true
|
||||
host_wilds_tab: true
|
||||
host_esx_tab: true
|
||||
host_pci_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Cluster
|
||||
- 4 # RVMs
|
||||
#- 5 # Real CPU
|
||||
- 6 # Allocated CPU
|
||||
#- 7 # Real MEM
|
||||
- 8 # Allocated MEM
|
||||
- 9 # Status
|
||||
#- 10 # IM MAD
|
||||
#- 11 # VM MAD
|
||||
#- 12 # Last monitored on
|
||||
#- 13 # Labels
|
||||
actions:
|
||||
Host.refresh: true
|
||||
Host.create_dialog: true
|
||||
Host.addtocluster: true
|
||||
Host.rename: true
|
||||
Host.enable: true
|
||||
Host.disable: true
|
||||
Host.delete: true
|
||||
zones-tab:
|
||||
panel_tabs:
|
||||
zone_info_tab: true
|
||||
@@ -571,6 +474,240 @@ tabs:
|
||||
Zone.create_dialog: true
|
||||
Zone.rename: true
|
||||
Zone.delete: true
|
||||
storage-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
datastores-tab:
|
||||
panel_tabs:
|
||||
datastore_info_tab: true
|
||||
datastore_image_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Capacity
|
||||
- 6 # Cluster
|
||||
#- 7 # Basepath
|
||||
#- 8 # TM
|
||||
#- 9 # DS
|
||||
- 10 # Type
|
||||
- 11 # Status
|
||||
#- 12 # Labels
|
||||
actions:
|
||||
Datastore.refresh: true
|
||||
Datastore.create_dialog: true
|
||||
Datastore.update_dialog: true
|
||||
Datastore.addtocluster: true
|
||||
Datastore.rename: true
|
||||
Datastore.chown: true
|
||||
Datastore.chgrp: true
|
||||
Datastore.chmod: true
|
||||
Datastore.delete: true
|
||||
Datastore.enable: true
|
||||
Datastore.disable: true
|
||||
images-tab:
|
||||
panel_tabs:
|
||||
image_info_tab: true
|
||||
image_vms_tab: true
|
||||
image_snapshots_tab: false
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Datastore
|
||||
#- 6 # Size
|
||||
- 7 # Type
|
||||
#- 8 # Registration time
|
||||
#- 9 # Persistent
|
||||
- 10 # Status
|
||||
- 11 # #VMs
|
||||
#- 12 # Target
|
||||
#- 13 # Labels
|
||||
actions:
|
||||
Image.refresh: true
|
||||
Image.create_dialog: true
|
||||
Image.rename: true
|
||||
Image.chown: true
|
||||
Image.chgrp: true
|
||||
Image.chmod: true
|
||||
Image.enable: true
|
||||
Image.disable: true
|
||||
Image.persistent: true
|
||||
Image.nonpersistent: true
|
||||
Image.clone_dialog: true
|
||||
Image.delete: true
|
||||
Image.snapshot_flatten: false
|
||||
Image.snapshot_revert: false
|
||||
Image.snapshot_delete: false
|
||||
files-tab:
|
||||
panel_tabs:
|
||||
file_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Datastore
|
||||
#- 6 # Size
|
||||
- 7 # Type
|
||||
#- 8 # Registration time
|
||||
#- 9 # Persistent
|
||||
- 10 # Status
|
||||
#- 11 # #VMs
|
||||
#- 12 # Target
|
||||
#- 13 # Labels
|
||||
actions:
|
||||
File.refresh: true
|
||||
File.create_dialog: true
|
||||
File.rename: true
|
||||
File.chown: true
|
||||
File.chgrp: true
|
||||
File.chmod: true
|
||||
File.enable: true
|
||||
File.disable: true
|
||||
File.delete: true
|
||||
marketplaces-tab:
|
||||
panel_tabs:
|
||||
marketplace_info_tab: true
|
||||
marketplace_apps_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Capacity
|
||||
- 6 # Apps
|
||||
- 7 # Driver
|
||||
#- 8 # Labels
|
||||
actions:
|
||||
MarketPlace.refresh: true
|
||||
MarketPlace.create_dialog: true
|
||||
MarketPlace.update_dialog: true
|
||||
MarketPlace.rename: true
|
||||
MarketPlace.chown: true
|
||||
MarketPlace.chgrp: true
|
||||
MarketPlace.chmod: true
|
||||
MarketPlace.delete: true
|
||||
marketplaceapps-tab:
|
||||
panel_tabs:
|
||||
marketplaceapp_info_tab: true
|
||||
marketplaceapp_templates_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
#- 5 # Version
|
||||
- 6 # Size
|
||||
- 7 # State
|
||||
#- 8 # Type
|
||||
- 9 # Registration
|
||||
- 10 # Marketplace
|
||||
#- 11 # Labels
|
||||
actions:
|
||||
MarketPlaceApp.refresh: true
|
||||
MarketPlaceApp.create_dialog: true
|
||||
MarketPlaceApp.export_dialog: true
|
||||
MarketPlaceApp.rename: true
|
||||
MarketPlaceApp.chown: true
|
||||
MarketPlaceApp.chgrp: true
|
||||
MarketPlaceApp.chmod: true
|
||||
MarketPlaceApp.enable: true
|
||||
MarketPlaceApp.disable: true
|
||||
MarketPlaceApp.delete: true
|
||||
network-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
vnets-tab:
|
||||
panel_tabs:
|
||||
vnet_info_tab: true
|
||||
vnet_ar_list_tab: true
|
||||
vnet_leases_tab: true
|
||||
vnet_sg_list_tab: false
|
||||
vnet_vr_list_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Reservation
|
||||
- 6 # Cluster
|
||||
#- 7 # Bridge
|
||||
- 8 # Leases
|
||||
#- 9 # VLAN ID
|
||||
#- 10 # Labels
|
||||
actions:
|
||||
Network.refresh: true
|
||||
Network.create_dialog: true
|
||||
Network.import_dialog: true
|
||||
Network.update_dialog: true
|
||||
Network.reserve_dialog: true
|
||||
Network.addtocluster: true
|
||||
Network.rename: true
|
||||
Network.chown: true
|
||||
Network.chgrp: true
|
||||
Network.chmod: true
|
||||
Network.delete: true
|
||||
Network.hold_lease: true
|
||||
Network.release_lease: true
|
||||
Network.add_ar: true
|
||||
Network.remove_ar: true
|
||||
Network.update_ar: true
|
||||
vrouters-tab:
|
||||
panel_tabs:
|
||||
virtual_router_info_tab: true
|
||||
virtual_router_vms_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
VirtualRouter.refresh: true
|
||||
VirtualRouter.create_dialog: true
|
||||
VirtualRouter.rename: true
|
||||
VirtualRouter.chown: true
|
||||
VirtualRouter.chgrp: true
|
||||
VirtualRouter.chmod: true
|
||||
VirtualRouter.delete: true
|
||||
VirtualRouter.attachnic: true
|
||||
VirtualRouter.detachnic: true
|
||||
vnets-topology-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
NetworkTopology.refresh: true
|
||||
NetworkTopology.fit: true
|
||||
NetworkTopology.collapseVMs: true
|
||||
NetworkTopology.openVMs: true
|
||||
secgroups-tab:
|
||||
panel_tabs:
|
||||
security_group_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
#- 5 # Labels
|
||||
actions:
|
||||
SecurityGroup.refresh: true
|
||||
SecurityGroup.create_dialog: true
|
||||
SecurityGroup.update_dialog: true
|
||||
SecurityGroup.rename: true
|
||||
SecurityGroup.chown: true
|
||||
SecurityGroup.chgrp: true
|
||||
SecurityGroup.chmod: true
|
||||
SecurityGroup.clone_dialog: true
|
||||
SecurityGroup.delete: true
|
||||
support-tab:
|
||||
panel_tabs:
|
||||
support_info_tab: true
|
||||
|
||||
@@ -2,30 +2,32 @@ small_logo: images/opennebula-sunstone-v4.14-small.png
|
||||
provision_logo: images/one_small_logo.png
|
||||
enabled_tabs:
|
||||
- dashboard-tab
|
||||
- system-tab
|
||||
- system-top-tab
|
||||
- users-tab
|
||||
- groups-tab
|
||||
#- vdcs-tab
|
||||
#- acls-tab
|
||||
- vresources-tab
|
||||
- vms-tab
|
||||
- templates-top-tab
|
||||
- templates-tab
|
||||
#- images-tab
|
||||
#- files-tab
|
||||
- infra-tab
|
||||
- oneflow-templates-tab
|
||||
- instances-top-tab
|
||||
- vms-tab
|
||||
- oneflow-services-tab
|
||||
#- infrastructure-top-tab
|
||||
#- clusters-tab
|
||||
#- hosts-tab
|
||||
#- datastores-tab
|
||||
- vnets-topology-tab
|
||||
- vnets-tab
|
||||
- secgroups-tab
|
||||
- vrouters-tab
|
||||
#- zones-tab
|
||||
- oneflow-dashboard-tab
|
||||
- oneflow-services-tab
|
||||
- oneflow-templates-tab
|
||||
#- storage-top-tab
|
||||
#- datastores-tab
|
||||
#- images-tab
|
||||
#- files-tab
|
||||
#- marketplaces-tab
|
||||
#- marketplaceapps-tab
|
||||
- network-top-tab
|
||||
- vnets-tab
|
||||
- vrouters-tab
|
||||
- vnets-topology-tab
|
||||
- secgroups-tab
|
||||
- settings-tab
|
||||
#- support-tab
|
||||
autorefresh: true
|
||||
@@ -45,7 +47,7 @@ tabs:
|
||||
- vms
|
||||
- users
|
||||
widgets_one_footer:
|
||||
system-tab:
|
||||
system-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
users-tab:
|
||||
@@ -120,7 +122,6 @@ tabs:
|
||||
Vdc.update_dialog: true
|
||||
Vdc.rename: true
|
||||
Vdc.delete: true
|
||||
|
||||
acls-tab:
|
||||
panel_tabs:
|
||||
table_columns:
|
||||
@@ -136,7 +137,69 @@ tabs:
|
||||
Acl.refresh: true
|
||||
Acl.create_dialog: true
|
||||
Acl.delete: true
|
||||
vresources-tab:
|
||||
templates-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
templates-tab:
|
||||
panel_tabs:
|
||||
template_info_tab: true
|
||||
template_template_tab: false
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Registration time
|
||||
#- 6 # Labels
|
||||
actions:
|
||||
Template.refresh: true
|
||||
Template.create_dialog: false
|
||||
Template.import_dialog: false
|
||||
Template.update_dialog: false
|
||||
Template.instantiate_vms: true
|
||||
Template.rename: true
|
||||
Template.chown: true
|
||||
Template.chgrp: false
|
||||
Template.chmod: false
|
||||
Template.clone_dialog: false
|
||||
Template.delete: false
|
||||
Template.delete_recursive: true
|
||||
Template.share: true
|
||||
Template.unshare: true
|
||||
template_creation_tabs:
|
||||
general: true
|
||||
storage: true
|
||||
network: true
|
||||
os_booting: true
|
||||
features: true
|
||||
input_output: true
|
||||
context: true
|
||||
scheduling: true
|
||||
hybrid: true
|
||||
other: true
|
||||
oneflow-templates-tab:
|
||||
panel_tabs:
|
||||
service_template_info_tab: true
|
||||
service_template_roles_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
ServiceTemplate.refresh: true
|
||||
ServiceTemplate.create_dialog: false
|
||||
ServiceTemplate.update_dialog: false
|
||||
ServiceTemplate.instantiate: true
|
||||
ServiceTemplate.chown: false
|
||||
ServiceTemplate.chgrp: false
|
||||
ServiceTemplate.chmod: false
|
||||
ServiceTemplate.rename: false
|
||||
ServiceTemplate.clone_dialog: false
|
||||
ServiceTemplate.delete: false
|
||||
instances-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
vms-tab:
|
||||
@@ -206,44 +269,163 @@ tabs:
|
||||
VM.resched: false
|
||||
VM.unresched: false
|
||||
VM.saveas_template: true
|
||||
templates-tab:
|
||||
oneflow-services-tab:
|
||||
panel_tabs:
|
||||
template_info_tab: true
|
||||
template_template_tab: false
|
||||
service_info_tab: true
|
||||
service_roles_tab: true
|
||||
service_log_tab: true
|
||||
panel_tabs_actions:
|
||||
service_roles_tab:
|
||||
Role.scale: true
|
||||
Role.hold: true
|
||||
Role.release: true
|
||||
Role.suspend: false
|
||||
Role.resume: true
|
||||
Role.stop: false
|
||||
Role.reboot: true
|
||||
Role.reboot_hard: true
|
||||
Role.poweroff: true
|
||||
Role.poweroff_hard: true
|
||||
Role.undeploy: true
|
||||
Role.undeploy_hard: true
|
||||
Role.shutdown: true
|
||||
Role.shutdown_hard: true
|
||||
Role.delete: true
|
||||
Role.delete_recreate: false
|
||||
RoleVM.hold: true
|
||||
RoleVM.release: true
|
||||
RoleVM.suspend: false
|
||||
RoleVM.resume: true
|
||||
RoleVM.stop: false
|
||||
RoleVM.reboot: true
|
||||
RoleVM.reboot_hard: true
|
||||
RoleVM.poweroff: true
|
||||
RoleVM.poweroff_hard: true
|
||||
RoleVM.undeploy: true
|
||||
RoleVM.undeploy_hard: true
|
||||
RoleVM.shutdown: true
|
||||
RoleVM.shutdown_hard: true
|
||||
RoleVM.delete: true
|
||||
RoleVM.delete_recreate: false
|
||||
RoleVM.resched: false
|
||||
RoleVM.unresched: false
|
||||
RoleVM.recover: false
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # State
|
||||
actions:
|
||||
Service.refresh: true
|
||||
Service.chown: true
|
||||
Service.chgrp: false
|
||||
Service.chmod: false
|
||||
Service.rename: true
|
||||
Service.shutdown: true
|
||||
Service.recover: true
|
||||
Service.delete: true
|
||||
infrastructure-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
clusters-tab:
|
||||
panel_tabs:
|
||||
cluster_info_tab: true
|
||||
cluster_host_tab: true
|
||||
cluster_vnet_tab: true
|
||||
cluster_datastore_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Hosts
|
||||
- 4 # VNets
|
||||
- 5 # Datastores
|
||||
#- 6 # Labels
|
||||
actions:
|
||||
Cluster.refresh: true
|
||||
Cluster.create_dialog: true
|
||||
Cluster.update_dialog: true
|
||||
Cluster.delete: true
|
||||
Cluster.rename: true
|
||||
hosts-tab:
|
||||
panel_tabs:
|
||||
host_info_tab: true
|
||||
host_monitoring_tab: true
|
||||
host_vms_tab: true
|
||||
host_wilds_tab: true
|
||||
host_esx_tab: true
|
||||
host_pci_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Cluster
|
||||
- 4 # RVMs
|
||||
#- 5 # Real CPU
|
||||
- 6 # Allocated CPU
|
||||
#- 7 # Real MEM
|
||||
- 8 # Allocated MEM
|
||||
- 9 # Status
|
||||
#- 10 # IM MAD
|
||||
#- 11 # VM MAD
|
||||
#- 12 # Last monitored on
|
||||
#- 13 # Labels
|
||||
actions:
|
||||
Host.refresh: true
|
||||
Host.create_dialog: true
|
||||
Host.addtocluster: true
|
||||
Host.rename: true
|
||||
Host.enable: true
|
||||
Host.disable: true
|
||||
Host.delete: true
|
||||
zones-tab:
|
||||
panel_tabs:
|
||||
zone_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Endpoint
|
||||
#- 4 # Labels
|
||||
actions:
|
||||
Zone.refresh: true
|
||||
Zone.create_dialog: true
|
||||
Zone.rename: true
|
||||
Zone.delete: true
|
||||
storage-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
datastores-tab:
|
||||
panel_tabs:
|
||||
datastore_info_tab: true
|
||||
datastore_image_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Registration time
|
||||
#- 6 # Labels
|
||||
- 5 # Capacity
|
||||
- 6 # Cluster
|
||||
#- 7 # Basepath
|
||||
#- 8 # TM
|
||||
#- 9 # DS
|
||||
- 10 # Type
|
||||
- 11 # Status
|
||||
#- 12 # Labels
|
||||
actions:
|
||||
Template.refresh: true
|
||||
Template.create_dialog: false
|
||||
Template.import_dialog: false
|
||||
Template.update_dialog: false
|
||||
Template.instantiate_vms: true
|
||||
Template.rename: true
|
||||
Template.chown: true
|
||||
Template.chgrp: false
|
||||
Template.chmod: false
|
||||
Template.clone_dialog: false
|
||||
Template.delete: false
|
||||
Template.delete_recursive: true
|
||||
Template.share: true
|
||||
Template.unshare: true
|
||||
template_creation_tabs:
|
||||
general: true
|
||||
storage: true
|
||||
network: true
|
||||
os_booting: true
|
||||
features: true
|
||||
input_output: true
|
||||
context: true
|
||||
scheduling: true
|
||||
hybrid: true
|
||||
other: true
|
||||
Datastore.refresh: true
|
||||
Datastore.create_dialog: true
|
||||
Datastore.addtocluster: true
|
||||
Datastore.rename: true
|
||||
Datastore.chown: true
|
||||
Datastore.chgrp: true
|
||||
Datastore.chmod: true
|
||||
Datastore.delete: true
|
||||
Datastore.enable: true
|
||||
Datastore.disable: true
|
||||
images-tab:
|
||||
panel_tabs:
|
||||
image_info_tab: true
|
||||
@@ -309,289 +491,6 @@ tabs:
|
||||
File.enable: true
|
||||
File.disable: true
|
||||
File.delete: true
|
||||
infra-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
clusters-tab:
|
||||
panel_tabs:
|
||||
cluster_info_tab: true
|
||||
cluster_host_tab: true
|
||||
cluster_vnet_tab: true
|
||||
cluster_datastore_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Hosts
|
||||
- 4 # VNets
|
||||
- 5 # Datastores
|
||||
#- 6 # Labels
|
||||
actions:
|
||||
Cluster.refresh: true
|
||||
Cluster.create_dialog: true
|
||||
Cluster.update_dialog: true
|
||||
Cluster.delete: true
|
||||
Cluster.rename: true
|
||||
hosts-tab:
|
||||
panel_tabs:
|
||||
host_info_tab: true
|
||||
host_monitoring_tab: true
|
||||
host_vms_tab: true
|
||||
host_wilds_tab: true
|
||||
host_esx_tab: true
|
||||
host_pci_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Cluster
|
||||
- 4 # RVMs
|
||||
#- 5 # Real CPU
|
||||
- 6 # Allocated CPU
|
||||
#- 7 # Real MEM
|
||||
- 8 # Allocated MEM
|
||||
- 9 # Status
|
||||
#- 10 # IM MAD
|
||||
#- 11 # VM MAD
|
||||
#- 12 # Last monitored on
|
||||
#- 13 # Labels
|
||||
actions:
|
||||
Host.refresh: true
|
||||
Host.create_dialog: true
|
||||
Host.addtocluster: true
|
||||
Host.rename: true
|
||||
Host.enable: true
|
||||
Host.disable: true
|
||||
Host.delete: true
|
||||
datastores-tab:
|
||||
panel_tabs:
|
||||
datastore_info_tab: true
|
||||
datastore_image_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Capacity
|
||||
- 6 # Cluster
|
||||
#- 7 # Basepath
|
||||
#- 8 # TM
|
||||
#- 9 # DS
|
||||
- 10 # Type
|
||||
- 11 # Status
|
||||
#- 12 # Labels
|
||||
actions:
|
||||
Datastore.refresh: true
|
||||
Datastore.create_dialog: true
|
||||
Datastore.addtocluster: true
|
||||
Datastore.rename: true
|
||||
Datastore.chown: true
|
||||
Datastore.chgrp: true
|
||||
Datastore.chmod: true
|
||||
Datastore.delete: true
|
||||
Datastore.enable: true
|
||||
Datastore.disable: true
|
||||
vnets-topology-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
NetworkTopology.refresh: true
|
||||
NetworkTopology.fit: true
|
||||
NetworkTopology.collapseVMs: true
|
||||
NetworkTopology.openVMs: true
|
||||
vnets-tab:
|
||||
panel_tabs:
|
||||
vnet_info_tab: false
|
||||
vnet_ar_list_tab: false
|
||||
vnet_leases_tab: true
|
||||
vnet_sg_list_tab: true
|
||||
vnet_vr_list_tab: false
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
#- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
#- 5 # Reservation
|
||||
#- 6 # Cluster
|
||||
#- 7 # Bridge
|
||||
#- 8 # Leases
|
||||
#- 9 # VLAN ID
|
||||
#- 10 # Labels
|
||||
actions:
|
||||
Network.refresh: true
|
||||
Network.create_dialog: false
|
||||
Network.import_dialog: false
|
||||
Network.update_dialog: false
|
||||
Network.reserve_dialog: false
|
||||
Network.addtocluster: false
|
||||
Network.rename: false
|
||||
Network.chown: false
|
||||
Network.chgrp: false
|
||||
Network.chmod: false
|
||||
Network.delete: false
|
||||
Network.hold_lease: false
|
||||
Network.release_lease: false
|
||||
Network.add_ar: false
|
||||
Network.remove_ar: false
|
||||
Network.update_ar: false
|
||||
secgroups-tab:
|
||||
panel_tabs:
|
||||
security_group_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
#- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
#- 5 # Labels
|
||||
actions:
|
||||
SecurityGroup.refresh: true
|
||||
SecurityGroup.create_dialog: false
|
||||
SecurityGroup.update_dialog: false
|
||||
SecurityGroup.rename: false
|
||||
SecurityGroup.chown: false
|
||||
SecurityGroup.chgrp: false
|
||||
SecurityGroup.chmod: false
|
||||
SecurityGroup.clone_dialog: false
|
||||
SecurityGroup.delete: false
|
||||
vrouters-tab:
|
||||
panel_tabs:
|
||||
virtual_router_info_tab: true
|
||||
virtual_router_vms_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
VirtualRouter.refresh: true
|
||||
VirtualRouter.create_dialog: true
|
||||
VirtualRouter.rename: true
|
||||
VirtualRouter.chown: true
|
||||
VirtualRouter.chgrp: false
|
||||
VirtualRouter.chmod: false
|
||||
VirtualRouter.delete: true
|
||||
VirtualRouter.attachnic: false
|
||||
VirtualRouter.detachnic: false
|
||||
oneflow-dashboard-tab:
|
||||
panel_tabs:
|
||||
table_columns:
|
||||
actions:
|
||||
oneflow-services-tab:
|
||||
panel_tabs:
|
||||
service_info_tab: true
|
||||
service_roles_tab: true
|
||||
service_log_tab: true
|
||||
panel_tabs_actions:
|
||||
service_roles_tab:
|
||||
Role.scale: true
|
||||
Role.hold: true
|
||||
Role.release: true
|
||||
Role.suspend: false
|
||||
Role.resume: true
|
||||
Role.stop: false
|
||||
Role.reboot: true
|
||||
Role.reboot_hard: true
|
||||
Role.poweroff: true
|
||||
Role.poweroff_hard: true
|
||||
Role.undeploy: true
|
||||
Role.undeploy_hard: true
|
||||
Role.shutdown: true
|
||||
Role.shutdown_hard: true
|
||||
Role.delete: true
|
||||
Role.delete_recreate: false
|
||||
RoleVM.hold: true
|
||||
RoleVM.release: true
|
||||
RoleVM.suspend: false
|
||||
RoleVM.resume: true
|
||||
RoleVM.stop: false
|
||||
RoleVM.reboot: true
|
||||
RoleVM.reboot_hard: true
|
||||
RoleVM.poweroff: true
|
||||
RoleVM.poweroff_hard: true
|
||||
RoleVM.undeploy: true
|
||||
RoleVM.undeploy_hard: true
|
||||
RoleVM.shutdown: true
|
||||
RoleVM.shutdown_hard: true
|
||||
RoleVM.delete: true
|
||||
RoleVM.delete_recreate: false
|
||||
RoleVM.resched: false
|
||||
RoleVM.unresched: false
|
||||
RoleVM.recover: false
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # State
|
||||
actions:
|
||||
Service.refresh: true
|
||||
Service.chown: true
|
||||
Service.chgrp: false
|
||||
Service.chmod: false
|
||||
Service.rename: true
|
||||
Service.shutdown: true
|
||||
Service.recover: true
|
||||
Service.delete: true
|
||||
oneflow-templates-tab:
|
||||
panel_tabs:
|
||||
service_template_info_tab: true
|
||||
service_template_roles_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
ServiceTemplate.refresh: true
|
||||
ServiceTemplate.create_dialog: false
|
||||
ServiceTemplate.update_dialog: false
|
||||
ServiceTemplate.instantiate: true
|
||||
ServiceTemplate.chown: false
|
||||
ServiceTemplate.chgrp: false
|
||||
ServiceTemplate.chmod: false
|
||||
ServiceTemplate.rename: false
|
||||
ServiceTemplate.clone_dialog: false
|
||||
ServiceTemplate.delete: false
|
||||
zones-tab:
|
||||
panel_tabs:
|
||||
zone_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Endpoint
|
||||
#- 4 # Labels
|
||||
actions:
|
||||
Zone.refresh: true
|
||||
Zone.create_dialog: true
|
||||
Zone.rename: true
|
||||
Zone.delete: true
|
||||
support-tab:
|
||||
panel_tabs:
|
||||
support_info_tab: true
|
||||
table_columns:
|
||||
#- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Subject
|
||||
- 3 # Created at
|
||||
- 4 # Status
|
||||
actions:
|
||||
Support.refresh: true
|
||||
Support.create_dialog: true
|
||||
settings-tab:
|
||||
panel_tabs:
|
||||
user_info_tab: true
|
||||
user_quotas_tab: true
|
||||
group_quotas_tab: true
|
||||
user_accounting_tab: true
|
||||
user_showback_tab: true
|
||||
actions:
|
||||
User.quotas_dialog: false
|
||||
marketplaces-tab:
|
||||
panel_tabs:
|
||||
marketplace_info_tab: true
|
||||
@@ -643,3 +542,110 @@ tabs:
|
||||
MarketPlaceApp.enable: true
|
||||
MarketPlaceApp.disable: true
|
||||
MarketPlaceApp.delete: true
|
||||
network-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
vnets-tab:
|
||||
panel_tabs:
|
||||
vnet_info_tab: false
|
||||
vnet_ar_list_tab: false
|
||||
vnet_leases_tab: true
|
||||
vnet_sg_list_tab: true
|
||||
vnet_vr_list_tab: false
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
#- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
#- 5 # Reservation
|
||||
#- 6 # Cluster
|
||||
#- 7 # Bridge
|
||||
#- 8 # Leases
|
||||
#- 9 # VLAN ID
|
||||
#- 10 # Labels
|
||||
actions:
|
||||
Network.refresh: true
|
||||
Network.create_dialog: false
|
||||
Network.import_dialog: false
|
||||
Network.update_dialog: false
|
||||
Network.reserve_dialog: false
|
||||
Network.addtocluster: false
|
||||
Network.rename: false
|
||||
Network.chown: false
|
||||
Network.chgrp: false
|
||||
Network.chmod: false
|
||||
Network.delete: false
|
||||
Network.hold_lease: false
|
||||
Network.release_lease: false
|
||||
Network.add_ar: false
|
||||
Network.remove_ar: false
|
||||
Network.update_ar: false
|
||||
vrouters-tab:
|
||||
panel_tabs:
|
||||
virtual_router_info_tab: true
|
||||
virtual_router_vms_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
VirtualRouter.refresh: true
|
||||
VirtualRouter.create_dialog: true
|
||||
VirtualRouter.rename: true
|
||||
VirtualRouter.chown: true
|
||||
VirtualRouter.chgrp: false
|
||||
VirtualRouter.chmod: false
|
||||
VirtualRouter.delete: true
|
||||
VirtualRouter.attachnic: false
|
||||
VirtualRouter.detachnic: false
|
||||
vnets-topology-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
NetworkTopology.refresh: true
|
||||
NetworkTopology.fit: true
|
||||
NetworkTopology.collapseVMs: true
|
||||
NetworkTopology.openVMs: true
|
||||
secgroups-tab:
|
||||
panel_tabs:
|
||||
security_group_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
#- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
#- 5 # Labels
|
||||
actions:
|
||||
SecurityGroup.refresh: true
|
||||
SecurityGroup.create_dialog: false
|
||||
SecurityGroup.update_dialog: false
|
||||
SecurityGroup.rename: false
|
||||
SecurityGroup.chown: false
|
||||
SecurityGroup.chgrp: false
|
||||
SecurityGroup.chmod: false
|
||||
SecurityGroup.clone_dialog: false
|
||||
SecurityGroup.delete: false
|
||||
support-tab:
|
||||
panel_tabs:
|
||||
support_info_tab: true
|
||||
table_columns:
|
||||
#- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Subject
|
||||
- 3 # Created at
|
||||
- 4 # Status
|
||||
actions:
|
||||
Support.refresh: true
|
||||
Support.create_dialog: true
|
||||
settings-tab:
|
||||
panel_tabs:
|
||||
user_info_tab: true
|
||||
user_quotas_tab: true
|
||||
group_quotas_tab: true
|
||||
user_accounting_tab: true
|
||||
user_showback_tab: true
|
||||
actions:
|
||||
User.quotas_dialog: false
|
||||
@@ -2,30 +2,32 @@ small_logo: images/opennebula-sunstone-v4.14-small.png
|
||||
provision_logo: images/one_small_logo.png
|
||||
enabled_tabs:
|
||||
- dashboard-tab
|
||||
- system-tab
|
||||
- system-top-tab
|
||||
- users-tab
|
||||
- groups-tab
|
||||
#- vdcs-tab
|
||||
#- acls-tab
|
||||
- vresources-tab
|
||||
- vms-tab
|
||||
- templates-top-tab
|
||||
#- templates-tab
|
||||
#- images-tab
|
||||
#- files-tab
|
||||
- infra-tab
|
||||
- oneflow-templates-tab
|
||||
- instances-top-tab
|
||||
- vms-tab
|
||||
- oneflow-services-tab
|
||||
#- infrastructure-top-tab
|
||||
#- clusters-tab
|
||||
#- hosts-tab
|
||||
#- datastores-tab
|
||||
- vnets-topology-tab
|
||||
- vnets-tab
|
||||
#- secgroups-tab
|
||||
- vrouters-tab
|
||||
#- zones-tab
|
||||
- oneflow-dashboard-tab
|
||||
- oneflow-services-tab
|
||||
- oneflow-templates-tab
|
||||
#- storage-top-tab
|
||||
#- datastores-tab
|
||||
#- images-tab
|
||||
#- files-tab
|
||||
#- marketplaces-tab
|
||||
#- marketplaceapps-tab
|
||||
- network-top-tab
|
||||
- vnets-tab
|
||||
- vrouters-tab
|
||||
- vnets-topology-tab
|
||||
#- secgroups-tab
|
||||
- settings-tab
|
||||
#- support-tab
|
||||
autorefresh: true
|
||||
@@ -45,7 +47,7 @@ tabs:
|
||||
- vms
|
||||
- users
|
||||
widgets_one_footer:
|
||||
system-tab:
|
||||
system-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
users-tab:
|
||||
@@ -122,7 +124,6 @@ tabs:
|
||||
Vdc.update_dialog: true
|
||||
Vdc.rename: true
|
||||
Vdc.delete: true
|
||||
|
||||
acls-tab:
|
||||
panel_tabs:
|
||||
table_columns:
|
||||
@@ -138,7 +139,69 @@ tabs:
|
||||
Acl.refresh: true
|
||||
Acl.create_dialog: true
|
||||
Acl.delete: true
|
||||
vresources-tab:
|
||||
templates-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
templates-tab:
|
||||
panel_tabs:
|
||||
template_info_tab: true
|
||||
template_template_tab: false
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Registration time
|
||||
#- 6 # Labels
|
||||
actions:
|
||||
Template.refresh: true
|
||||
Template.create_dialog: false
|
||||
Template.import_dialog: false
|
||||
Template.update_dialog: false
|
||||
Template.instantiate_vms: true
|
||||
Template.rename: true
|
||||
Template.chown: true
|
||||
Template.chgrp: false
|
||||
Template.chmod: false
|
||||
Template.clone_dialog: false
|
||||
Template.delete: false
|
||||
Template.delete_recursive: true
|
||||
Template.share: true
|
||||
Template.unshare: true
|
||||
template_creation_tabs:
|
||||
general: true
|
||||
storage: true
|
||||
network: true
|
||||
os_booting: true
|
||||
features: true
|
||||
input_output: true
|
||||
context: true
|
||||
scheduling: true
|
||||
hybrid: true
|
||||
other: true
|
||||
oneflow-templates-tab:
|
||||
panel_tabs:
|
||||
service_template_info_tab: true
|
||||
service_template_roles_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
ServiceTemplate.refresh: true
|
||||
ServiceTemplate.create_dialog: false
|
||||
ServiceTemplate.update_dialog: false
|
||||
ServiceTemplate.instantiate: true
|
||||
ServiceTemplate.chown: false
|
||||
ServiceTemplate.chgrp: false
|
||||
ServiceTemplate.chmod: false
|
||||
ServiceTemplate.rename: false
|
||||
ServiceTemplate.clone_dialog: false
|
||||
ServiceTemplate.delete: false
|
||||
instances-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
vms-tab:
|
||||
@@ -208,44 +271,163 @@ tabs:
|
||||
VM.resched: false
|
||||
VM.unresched: false
|
||||
VM.saveas_template: false
|
||||
templates-tab:
|
||||
oneflow-services-tab:
|
||||
panel_tabs:
|
||||
template_info_tab: true
|
||||
template_template_tab: false
|
||||
service_info_tab: true
|
||||
service_roles_tab: true
|
||||
service_log_tab: true
|
||||
panel_tabs_actions:
|
||||
service_roles_tab:
|
||||
Role.scale: true
|
||||
Role.hold: true
|
||||
Role.release: true
|
||||
Role.suspend: false
|
||||
Role.resume: true
|
||||
Role.stop: false
|
||||
Role.reboot: true
|
||||
Role.reboot_hard: true
|
||||
Role.poweroff: true
|
||||
Role.poweroff_hard: true
|
||||
Role.undeploy: true
|
||||
Role.undeploy_hard: true
|
||||
Role.shutdown: true
|
||||
Role.shutdown_hard: true
|
||||
Role.delete: true
|
||||
Role.delete_recreate: false
|
||||
RoleVM.hold: true
|
||||
RoleVM.release: true
|
||||
RoleVM.suspend: false
|
||||
RoleVM.resume: true
|
||||
RoleVM.stop: false
|
||||
RoleVM.reboot: true
|
||||
RoleVM.reboot_hard: true
|
||||
RoleVM.poweroff: true
|
||||
RoleVM.poweroff_hard: true
|
||||
RoleVM.undeploy: true
|
||||
RoleVM.undeploy_hard: true
|
||||
RoleVM.shutdown: true
|
||||
RoleVM.shutdown_hard: true
|
||||
RoleVM.delete: true
|
||||
RoleVM.delete_recreate: false
|
||||
RoleVM.resched: false
|
||||
RoleVM.unresched: false
|
||||
RoleVM.recover: false
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # State
|
||||
actions:
|
||||
Service.refresh: true
|
||||
Service.chown: true
|
||||
Service.chgrp: false
|
||||
Service.chmod: false
|
||||
Service.rename: true
|
||||
Service.shutdown: true
|
||||
Service.recover: true
|
||||
Service.delete: true
|
||||
infrastructure-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
clusters-tab:
|
||||
panel_tabs:
|
||||
cluster_info_tab: true
|
||||
cluster_host_tab: true
|
||||
cluster_vnet_tab: true
|
||||
cluster_datastore_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Hosts
|
||||
- 4 # VNets
|
||||
- 5 # Datastores
|
||||
#- 6 # Labels
|
||||
actions:
|
||||
Cluster.refresh: true
|
||||
Cluster.create_dialog: true
|
||||
Cluster.update_dialog: true
|
||||
Cluster.delete: true
|
||||
Cluster.rename: true
|
||||
hosts-tab:
|
||||
panel_tabs:
|
||||
host_info_tab: true
|
||||
host_monitoring_tab: true
|
||||
host_vms_tab: true
|
||||
host_wilds_tab: true
|
||||
host_esx_tab: true
|
||||
host_pci_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Cluster
|
||||
- 4 # RVMs
|
||||
#- 5 # Real CPU
|
||||
- 6 # Allocated CPU
|
||||
#- 7 # Real MEM
|
||||
- 8 # Allocated MEM
|
||||
- 9 # Status
|
||||
#- 10 # IM MAD
|
||||
#- 11 # VM MAD
|
||||
#- 12 # Last monitored on
|
||||
#- 13 # Labels
|
||||
actions:
|
||||
Host.refresh: true
|
||||
Host.create_dialog: true
|
||||
Host.addtocluster: true
|
||||
Host.rename: true
|
||||
Host.enable: true
|
||||
Host.disable: true
|
||||
Host.delete: true
|
||||
zones-tab:
|
||||
panel_tabs:
|
||||
zone_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Endpoint
|
||||
#- 4 # Labels
|
||||
actions:
|
||||
Zone.refresh: true
|
||||
Zone.create_dialog: true
|
||||
Zone.rename: true
|
||||
Zone.delete: true
|
||||
storage-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
datastores-tab:
|
||||
panel_tabs:
|
||||
datastore_info_tab: true
|
||||
datastore_image_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Registration time
|
||||
#- 6 # Labels
|
||||
- 5 # Capacity
|
||||
- 6 # Cluster
|
||||
#- 7 # Basepath
|
||||
#- 8 # TM
|
||||
#- 9 # DS
|
||||
- 10 # Type
|
||||
- 11 # Status
|
||||
#- 12 # Labels
|
||||
actions:
|
||||
Template.refresh: true
|
||||
Template.create_dialog: false
|
||||
Template.import_dialog: false
|
||||
Template.update_dialog: false
|
||||
Template.instantiate_vms: true
|
||||
Template.rename: true
|
||||
Template.chown: true
|
||||
Template.chgrp: false
|
||||
Template.chmod: false
|
||||
Template.clone_dialog: false
|
||||
Template.delete: false
|
||||
Template.delete_recursive: true
|
||||
Template.share: true
|
||||
Template.unshare: true
|
||||
template_creation_tabs:
|
||||
general: true
|
||||
storage: true
|
||||
network: true
|
||||
os_booting: true
|
||||
features: true
|
||||
input_output: true
|
||||
context: true
|
||||
scheduling: true
|
||||
hybrid: true
|
||||
other: true
|
||||
Datastore.refresh: true
|
||||
Datastore.create_dialog: true
|
||||
Datastore.addtocluster: true
|
||||
Datastore.rename: true
|
||||
Datastore.chown: true
|
||||
Datastore.chgrp: true
|
||||
Datastore.chmod: true
|
||||
Datastore.delete: true
|
||||
Datastore.enable: true
|
||||
Datastore.disable: true
|
||||
images-tab:
|
||||
panel_tabs:
|
||||
image_info_tab: true
|
||||
@@ -311,289 +493,6 @@ tabs:
|
||||
File.enable: true
|
||||
File.disable: true
|
||||
File.delete: true
|
||||
infra-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
clusters-tab:
|
||||
panel_tabs:
|
||||
cluster_info_tab: true
|
||||
cluster_host_tab: true
|
||||
cluster_vnet_tab: true
|
||||
cluster_datastore_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Hosts
|
||||
- 4 # VNets
|
||||
- 5 # Datastores
|
||||
#- 6 # Labels
|
||||
actions:
|
||||
Cluster.refresh: true
|
||||
Cluster.create_dialog: true
|
||||
Cluster.update_dialog: true
|
||||
Cluster.delete: true
|
||||
Cluster.rename: true
|
||||
hosts-tab:
|
||||
panel_tabs:
|
||||
host_info_tab: true
|
||||
host_monitoring_tab: true
|
||||
host_vms_tab: true
|
||||
host_wilds_tab: true
|
||||
host_esx_tab: true
|
||||
host_pci_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Cluster
|
||||
- 4 # RVMs
|
||||
#- 5 # Real CPU
|
||||
- 6 # Allocated CPU
|
||||
#- 7 # Real MEM
|
||||
- 8 # Allocated MEM
|
||||
- 9 # Status
|
||||
#- 10 # IM MAD
|
||||
#- 11 # VM MAD
|
||||
#- 12 # Last monitored on
|
||||
#- 13 # Labels
|
||||
actions:
|
||||
Host.refresh: true
|
||||
Host.create_dialog: true
|
||||
Host.addtocluster: true
|
||||
Host.rename: true
|
||||
Host.enable: true
|
||||
Host.disable: true
|
||||
Host.delete: true
|
||||
datastores-tab:
|
||||
panel_tabs:
|
||||
datastore_info_tab: true
|
||||
datastore_image_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Capacity
|
||||
- 6 # Cluster
|
||||
#- 7 # Basepath
|
||||
#- 8 # TM
|
||||
#- 9 # DS
|
||||
- 10 # Type
|
||||
- 11 # Status
|
||||
#- 12 # Labels
|
||||
actions:
|
||||
Datastore.refresh: true
|
||||
Datastore.create_dialog: true
|
||||
Datastore.addtocluster: true
|
||||
Datastore.rename: true
|
||||
Datastore.chown: true
|
||||
Datastore.chgrp: true
|
||||
Datastore.chmod: true
|
||||
Datastore.delete: true
|
||||
Datastore.enable: true
|
||||
Datastore.disable: true
|
||||
vnets-topology-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
NetworkTopology.refresh: true
|
||||
NetworkTopology.fit: true
|
||||
NetworkTopology.collapseVMs: true
|
||||
NetworkTopology.openVMs: true
|
||||
vnets-tab:
|
||||
panel_tabs:
|
||||
vnet_info_tab: false
|
||||
vnet_ar_list_tab: false
|
||||
vnet_leases_tab: true
|
||||
vnet_sg_list_tab: false
|
||||
vnet_vr_list_tab: false
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
#- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
#- 5 # Reservation
|
||||
#- 6 # Cluster
|
||||
#- 7 # Bridge
|
||||
#- 8 # Leases
|
||||
#- 9 # VLAN ID
|
||||
#- 10 # Labels
|
||||
actions:
|
||||
Network.refresh: true
|
||||
Network.create_dialog: false
|
||||
Network.import_dialog: false
|
||||
Network.update_dialog: false
|
||||
Network.reserve_dialog: false
|
||||
Network.addtocluster: false
|
||||
Network.rename: false
|
||||
Network.chown: false
|
||||
Network.chgrp: false
|
||||
Network.chmod: false
|
||||
Network.delete: false
|
||||
Network.hold_lease: false
|
||||
Network.release_lease: false
|
||||
Network.add_ar: false
|
||||
Network.remove_ar: false
|
||||
Network.update_ar: false
|
||||
secgroups-tab:
|
||||
panel_tabs:
|
||||
security_group_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
#- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
#- 5 # Labels
|
||||
actions:
|
||||
SecurityGroup.refresh: true
|
||||
SecurityGroup.create_dialog: false
|
||||
SecurityGroup.update_dialog: false
|
||||
SecurityGroup.rename: false
|
||||
SecurityGroup.chown: false
|
||||
SecurityGroup.chgrp: false
|
||||
SecurityGroup.chmod: false
|
||||
SecurityGroup.clone_dialog: false
|
||||
SecurityGroup.delete: false
|
||||
vrouters-tab:
|
||||
panel_tabs:
|
||||
virtual_router_info_tab: true
|
||||
virtual_router_vms_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
VirtualRouter.refresh: true
|
||||
VirtualRouter.create_dialog: true
|
||||
VirtualRouter.rename: true
|
||||
VirtualRouter.chown: true
|
||||
VirtualRouter.chgrp: false
|
||||
VirtualRouter.chmod: false
|
||||
VirtualRouter.delete: true
|
||||
VirtualRouter.attachnic: false
|
||||
VirtualRouter.detachnic: false
|
||||
oneflow-dashboard-tab:
|
||||
panel_tabs:
|
||||
table_columns:
|
||||
actions:
|
||||
oneflow-services-tab:
|
||||
panel_tabs:
|
||||
service_info_tab: true
|
||||
service_roles_tab: true
|
||||
service_log_tab: true
|
||||
panel_tabs_actions:
|
||||
service_roles_tab:
|
||||
Role.scale: true
|
||||
Role.hold: true
|
||||
Role.release: true
|
||||
Role.suspend: false
|
||||
Role.resume: true
|
||||
Role.stop: false
|
||||
Role.reboot: true
|
||||
Role.reboot_hard: true
|
||||
Role.poweroff: true
|
||||
Role.poweroff_hard: true
|
||||
Role.undeploy: true
|
||||
Role.undeploy_hard: true
|
||||
Role.shutdown: true
|
||||
Role.shutdown_hard: true
|
||||
Role.delete: true
|
||||
Role.delete_recreate: false
|
||||
RoleVM.hold: true
|
||||
RoleVM.release: true
|
||||
RoleVM.suspend: false
|
||||
RoleVM.resume: true
|
||||
RoleVM.stop: false
|
||||
RoleVM.reboot: true
|
||||
RoleVM.reboot_hard: true
|
||||
RoleVM.poweroff: true
|
||||
RoleVM.poweroff_hard: true
|
||||
RoleVM.undeploy: true
|
||||
RoleVM.undeploy_hard: true
|
||||
RoleVM.shutdown: true
|
||||
RoleVM.shutdown_hard: true
|
||||
RoleVM.delete: true
|
||||
RoleVM.delete_recreate: false
|
||||
RoleVM.resched: false
|
||||
RoleVM.unresched: false
|
||||
RoleVM.recover: false
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # State
|
||||
actions:
|
||||
Service.refresh: true
|
||||
Service.chown: true
|
||||
Service.chgrp: false
|
||||
Service.chmod: false
|
||||
Service.rename: true
|
||||
Service.shutdown: true
|
||||
Service.recover: true
|
||||
Service.delete: true
|
||||
oneflow-templates-tab:
|
||||
panel_tabs:
|
||||
service_template_info_tab: true
|
||||
service_template_roles_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
ServiceTemplate.refresh: true
|
||||
ServiceTemplate.create_dialog: false
|
||||
ServiceTemplate.update_dialog: false
|
||||
ServiceTemplate.instantiate: true
|
||||
ServiceTemplate.chown: false
|
||||
ServiceTemplate.chgrp: false
|
||||
ServiceTemplate.chmod: false
|
||||
ServiceTemplate.rename: false
|
||||
ServiceTemplate.clone_dialog: false
|
||||
ServiceTemplate.delete: false
|
||||
zones-tab:
|
||||
panel_tabs:
|
||||
zone_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Endpoint
|
||||
#- 4 # Labels
|
||||
actions:
|
||||
Zone.refresh: true
|
||||
Zone.create_dialog: true
|
||||
Zone.rename: true
|
||||
Zone.delete: true
|
||||
support-tab:
|
||||
panel_tabs:
|
||||
support_info_tab: true
|
||||
table_columns:
|
||||
#- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Subject
|
||||
- 3 # Created at
|
||||
- 4 # Status
|
||||
actions:
|
||||
Support.refresh: true
|
||||
Support.create_dialog: true
|
||||
settings-tab:
|
||||
panel_tabs:
|
||||
user_info_tab: true
|
||||
user_quotas_tab: true
|
||||
group_quotas_tab: true
|
||||
user_accounting_tab: true
|
||||
user_showback_tab: true
|
||||
actions:
|
||||
User.quotas_dialog: false
|
||||
marketplaces-tab:
|
||||
panel_tabs:
|
||||
marketplace_info_tab: true
|
||||
@@ -645,3 +544,110 @@ tabs:
|
||||
MarketPlaceApp.enable: true
|
||||
MarketPlaceApp.disable: true
|
||||
MarketPlaceApp.delete: true
|
||||
network-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
vnets-tab:
|
||||
panel_tabs:
|
||||
vnet_info_tab: false
|
||||
vnet_ar_list_tab: false
|
||||
vnet_leases_tab: true
|
||||
vnet_sg_list_tab: false
|
||||
vnet_vr_list_tab: false
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
#- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
#- 5 # Reservation
|
||||
#- 6 # Cluster
|
||||
#- 7 # Bridge
|
||||
#- 8 # Leases
|
||||
#- 9 # VLAN ID
|
||||
#- 10 # Labels
|
||||
actions:
|
||||
Network.refresh: true
|
||||
Network.create_dialog: false
|
||||
Network.import_dialog: false
|
||||
Network.update_dialog: false
|
||||
Network.reserve_dialog: false
|
||||
Network.addtocluster: false
|
||||
Network.rename: false
|
||||
Network.chown: false
|
||||
Network.chgrp: false
|
||||
Network.chmod: false
|
||||
Network.delete: false
|
||||
Network.hold_lease: false
|
||||
Network.release_lease: false
|
||||
Network.add_ar: false
|
||||
Network.remove_ar: false
|
||||
Network.update_ar: false
|
||||
vrouters-tab:
|
||||
panel_tabs:
|
||||
virtual_router_info_tab: true
|
||||
virtual_router_vms_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
VirtualRouter.refresh: true
|
||||
VirtualRouter.create_dialog: true
|
||||
VirtualRouter.rename: true
|
||||
VirtualRouter.chown: true
|
||||
VirtualRouter.chgrp: false
|
||||
VirtualRouter.chmod: false
|
||||
VirtualRouter.delete: true
|
||||
VirtualRouter.attachnic: false
|
||||
VirtualRouter.detachnic: false
|
||||
vnets-topology-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
NetworkTopology.refresh: true
|
||||
NetworkTopology.fit: true
|
||||
NetworkTopology.collapseVMs: true
|
||||
NetworkTopology.openVMs: true
|
||||
secgroups-tab:
|
||||
panel_tabs:
|
||||
security_group_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
#- 2 # Owner
|
||||
#- 3 # Group
|
||||
- 4 # Name
|
||||
#- 5 # Labels
|
||||
actions:
|
||||
SecurityGroup.refresh: true
|
||||
SecurityGroup.create_dialog: false
|
||||
SecurityGroup.update_dialog: false
|
||||
SecurityGroup.rename: false
|
||||
SecurityGroup.chown: false
|
||||
SecurityGroup.chgrp: false
|
||||
SecurityGroup.chmod: false
|
||||
SecurityGroup.clone_dialog: false
|
||||
SecurityGroup.delete: false
|
||||
support-tab:
|
||||
panel_tabs:
|
||||
support_info_tab: true
|
||||
table_columns:
|
||||
#- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Subject
|
||||
- 3 # Created at
|
||||
- 4 # Status
|
||||
actions:
|
||||
Support.refresh: true
|
||||
Support.create_dialog: true
|
||||
settings-tab:
|
||||
panel_tabs:
|
||||
user_info_tab: true
|
||||
user_quotas_tab: true
|
||||
group_quotas_tab: true
|
||||
user_accounting_tab: true
|
||||
user_showback_tab: true
|
||||
actions:
|
||||
User.quotas_dialog: false
|
||||
@@ -2,30 +2,32 @@ small_logo: images/opennebula-sunstone-v4.14-small.png
|
||||
provision_logo: images/one_small_logo.png
|
||||
enabled_tabs:
|
||||
- dashboard-tab
|
||||
#- system-tab
|
||||
#- system-top-tab
|
||||
#- users-tab
|
||||
#- groups-tab
|
||||
#- vdcs-tab
|
||||
#- acls-tab
|
||||
- vresources-tab
|
||||
- vms-tab
|
||||
- templates-top-tab
|
||||
- templates-tab
|
||||
- images-tab
|
||||
- files-tab
|
||||
- infra-tab
|
||||
- oneflow-templates-tab
|
||||
- instances-top-tab
|
||||
- vms-tab
|
||||
- oneflow-services-tab
|
||||
#- infrastructure-top-tab
|
||||
#- clusters-tab
|
||||
#- hosts-tab
|
||||
- datastores-tab
|
||||
- vnets-topology-tab
|
||||
- vnets-tab
|
||||
- secgroups-tab
|
||||
- vrouters-tab
|
||||
#- zones-tab
|
||||
- oneflow-dashboard-tab
|
||||
- oneflow-services-tab
|
||||
- oneflow-templates-tab
|
||||
- storage-top-tab
|
||||
- datastores-tab
|
||||
- images-tab
|
||||
- files-tab
|
||||
- marketplaces-tab
|
||||
- marketplaceapps-tab
|
||||
- network-top-tab
|
||||
- vnets-tab
|
||||
- vrouters-tab
|
||||
- vnets-topology-tab
|
||||
- secgroups-tab
|
||||
- settings-tab
|
||||
#- support-tab
|
||||
autorefresh: true
|
||||
@@ -47,7 +49,7 @@ tabs:
|
||||
#- hosts
|
||||
#- users
|
||||
widgets_one_footer:
|
||||
system-tab:
|
||||
system-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
users-tab:
|
||||
@@ -124,7 +126,6 @@ tabs:
|
||||
Vdc.update_dialog: true
|
||||
Vdc.rename: true
|
||||
Vdc.delete: true
|
||||
|
||||
acls-tab:
|
||||
panel_tabs:
|
||||
table_columns:
|
||||
@@ -140,7 +141,69 @@ tabs:
|
||||
Acl.refresh: true
|
||||
Acl.create_dialog: true
|
||||
Acl.delete: true
|
||||
vresources-tab:
|
||||
templates-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
templates-tab:
|
||||
panel_tabs:
|
||||
template_info_tab: true
|
||||
template_template_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Registration time
|
||||
#- 6 # Labels
|
||||
actions:
|
||||
Template.refresh: true
|
||||
Template.create_dialog: true
|
||||
Template.import_dialog: false
|
||||
Template.update_dialog: true
|
||||
Template.instantiate_vms: true
|
||||
Template.rename: true
|
||||
Template.chown: false
|
||||
Template.chgrp: false
|
||||
Template.chmod: true
|
||||
Template.clone_dialog: true
|
||||
Template.delete: true
|
||||
Template.delete_recursive: true
|
||||
Template.share: true
|
||||
Template.unshare: true
|
||||
template_creation_tabs:
|
||||
general: true
|
||||
storage: true
|
||||
network: true
|
||||
os_booting: true
|
||||
features: true
|
||||
input_output: true
|
||||
context: true
|
||||
scheduling: false
|
||||
hybrid: true
|
||||
other: true
|
||||
oneflow-templates-tab:
|
||||
panel_tabs:
|
||||
service_template_info_tab: true
|
||||
service_template_roles_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
ServiceTemplate.refresh: true
|
||||
ServiceTemplate.create_dialog: true
|
||||
ServiceTemplate.update_dialog: true
|
||||
ServiceTemplate.instantiate: true
|
||||
ServiceTemplate.chown: false
|
||||
ServiceTemplate.chgrp: false
|
||||
ServiceTemplate.chmod: true
|
||||
ServiceTemplate.rename: true
|
||||
ServiceTemplate.clone_dialog: true
|
||||
ServiceTemplate.delete: true
|
||||
instances-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
vms-tab:
|
||||
@@ -210,44 +273,163 @@ tabs:
|
||||
VM.resched: false
|
||||
VM.unresched: false
|
||||
VM.saveas_template: true
|
||||
templates-tab:
|
||||
oneflow-services-tab:
|
||||
panel_tabs:
|
||||
template_info_tab: true
|
||||
template_template_tab: true
|
||||
service_info_tab: true
|
||||
service_roles_tab: true
|
||||
service_log_tab: true
|
||||
panel_tabs_actions:
|
||||
service_roles_tab:
|
||||
Role.scale: true
|
||||
Role.hold: true
|
||||
Role.release: true
|
||||
Role.suspend: true
|
||||
Role.resume: true
|
||||
Role.stop: true
|
||||
Role.reboot: true
|
||||
Role.reboot_hard: true
|
||||
Role.poweroff: true
|
||||
Role.poweroff_hard: true
|
||||
Role.undeploy: true
|
||||
Role.undeploy_hard: true
|
||||
Role.shutdown: true
|
||||
Role.shutdown_hard: true
|
||||
Role.delete: true
|
||||
Role.delete_recreate: true
|
||||
RoleVM.hold: true
|
||||
RoleVM.release: true
|
||||
RoleVM.suspend: true
|
||||
RoleVM.resume: true
|
||||
RoleVM.stop: true
|
||||
RoleVM.reboot: true
|
||||
RoleVM.reboot_hard: true
|
||||
RoleVM.poweroff: true
|
||||
RoleVM.poweroff_hard: true
|
||||
RoleVM.undeploy: true
|
||||
RoleVM.undeploy_hard: true
|
||||
RoleVM.shutdown: true
|
||||
RoleVM.shutdown_hard: true
|
||||
RoleVM.delete: true
|
||||
RoleVM.delete_recreate: true
|
||||
RoleVM.resched: false
|
||||
RoleVM.unresched: false
|
||||
RoleVM.recover: false
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Registration time
|
||||
- 5 # State
|
||||
actions:
|
||||
Service.refresh: true
|
||||
Service.chown: false
|
||||
Service.chgrp: false
|
||||
Service.chmod: true
|
||||
Service.rename: true
|
||||
Service.shutdown: true
|
||||
Service.recover: true
|
||||
Service.delete: true
|
||||
infrastructure-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
clusters-tab:
|
||||
panel_tabs:
|
||||
cluster_info_tab: true
|
||||
cluster_host_tab: true
|
||||
cluster_vnet_tab: true
|
||||
cluster_datastore_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Hosts
|
||||
- 4 # VNets
|
||||
- 5 # Datastores
|
||||
#- 6 # Labels
|
||||
actions:
|
||||
Template.refresh: true
|
||||
Template.create_dialog: true
|
||||
Template.import_dialog: false
|
||||
Template.update_dialog: true
|
||||
Template.instantiate_vms: true
|
||||
Template.rename: true
|
||||
Template.chown: false
|
||||
Template.chgrp: false
|
||||
Template.chmod: true
|
||||
Template.clone_dialog: true
|
||||
Template.delete: true
|
||||
Template.delete_recursive: true
|
||||
Template.share: true
|
||||
Template.unshare: true
|
||||
template_creation_tabs:
|
||||
general: true
|
||||
storage: true
|
||||
network: true
|
||||
os_booting: true
|
||||
features: true
|
||||
input_output: true
|
||||
context: true
|
||||
scheduling: false
|
||||
hybrid: true
|
||||
other: true
|
||||
Cluster.refresh: true
|
||||
Cluster.create_dialog: true
|
||||
Cluster.update_dialog: true
|
||||
Cluster.delete: true
|
||||
Cluster.rename: true
|
||||
hosts-tab:
|
||||
panel_tabs:
|
||||
host_info_tab: true
|
||||
host_monitoring_tab: true
|
||||
host_vms_tab: true
|
||||
host_wilds_tab: true
|
||||
host_esx_tab: true
|
||||
host_pci_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Cluster
|
||||
- 4 # RVMs
|
||||
#- 5 # Real CPU
|
||||
- 6 # Allocated CPU
|
||||
#- 7 # Real MEM
|
||||
- 8 # Allocated MEM
|
||||
- 9 # Status
|
||||
#- 10 # IM MAD
|
||||
#- 11 # VM MAD
|
||||
#- 12 # Last monitored on
|
||||
#- 13 # Labels
|
||||
actions:
|
||||
Host.refresh: true
|
||||
Host.create_dialog: true
|
||||
Host.addtocluster: true
|
||||
Host.rename: true
|
||||
Host.enable: true
|
||||
Host.disable: true
|
||||
Host.delete: true
|
||||
zones-tab:
|
||||
panel_tabs:
|
||||
zone_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Endpoint
|
||||
#- 4 # Labels
|
||||
actions:
|
||||
Zone.refresh: true
|
||||
Zone.create_dialog: true
|
||||
Zone.rename: true
|
||||
Zone.delete: true
|
||||
storage-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
datastores-tab:
|
||||
panel_tabs:
|
||||
datastore_info_tab: false
|
||||
datastore_image_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Capacity
|
||||
- 6 # Cluster
|
||||
#- 7 # Basepath
|
||||
#- 8 # TM
|
||||
#- 9 # DS
|
||||
#- 10 # Type
|
||||
#- 11 # Status
|
||||
#- 12 # Labels
|
||||
actions:
|
||||
Datastore.refresh: true
|
||||
Datastore.create_dialog: false
|
||||
Datastore.addtocluster: false
|
||||
Datastore.rename: true
|
||||
Datastore.chown: false
|
||||
Datastore.chgrp: false
|
||||
Datastore.chmod: true
|
||||
Datastore.delete: false
|
||||
Datastore.enable: false
|
||||
Datastore.disable: false
|
||||
images-tab:
|
||||
panel_tabs:
|
||||
image_info_tab: true
|
||||
@@ -313,289 +495,6 @@ tabs:
|
||||
File.enable: true
|
||||
File.disable: true
|
||||
File.delete: true
|
||||
infra-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
clusters-tab:
|
||||
panel_tabs:
|
||||
cluster_info_tab: true
|
||||
cluster_host_tab: true
|
||||
cluster_vnet_tab: true
|
||||
cluster_datastore_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Hosts
|
||||
- 4 # VNets
|
||||
- 5 # Datastores
|
||||
#- 6 # Labels
|
||||
actions:
|
||||
Cluster.refresh: true
|
||||
Cluster.create_dialog: true
|
||||
Cluster.update_dialog: true
|
||||
Cluster.delete: true
|
||||
Cluster.rename: true
|
||||
hosts-tab:
|
||||
panel_tabs:
|
||||
host_info_tab: true
|
||||
host_monitoring_tab: true
|
||||
host_vms_tab: true
|
||||
host_wilds_tab: true
|
||||
host_esx_tab: true
|
||||
host_pci_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Cluster
|
||||
- 4 # RVMs
|
||||
#- 5 # Real CPU
|
||||
- 6 # Allocated CPU
|
||||
#- 7 # Real MEM
|
||||
- 8 # Allocated MEM
|
||||
- 9 # Status
|
||||
#- 10 # IM MAD
|
||||
#- 11 # VM MAD
|
||||
#- 12 # Last monitored on
|
||||
#- 13 # Labels
|
||||
actions:
|
||||
Host.refresh: true
|
||||
Host.create_dialog: true
|
||||
Host.addtocluster: true
|
||||
Host.rename: true
|
||||
Host.enable: true
|
||||
Host.disable: true
|
||||
Host.delete: true
|
||||
datastores-tab:
|
||||
panel_tabs:
|
||||
datastore_info_tab: false
|
||||
datastore_image_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Capacity
|
||||
- 6 # Cluster
|
||||
#- 7 # Basepath
|
||||
#- 8 # TM
|
||||
#- 9 # DS
|
||||
#- 10 # Type
|
||||
#- 11 # Status
|
||||
#- 12 # Labels
|
||||
actions:
|
||||
Datastore.refresh: true
|
||||
Datastore.create_dialog: false
|
||||
Datastore.addtocluster: false
|
||||
Datastore.rename: true
|
||||
Datastore.chown: false
|
||||
Datastore.chgrp: false
|
||||
Datastore.chmod: true
|
||||
Datastore.delete: false
|
||||
Datastore.enable: false
|
||||
Datastore.disable: false
|
||||
vnets-topology-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
NetworkTopology.refresh: true
|
||||
NetworkTopology.fit: true
|
||||
NetworkTopology.collapseVMs: true
|
||||
NetworkTopology.openVMs: true
|
||||
vnets-tab:
|
||||
panel_tabs:
|
||||
vnet_info_tab: true
|
||||
vnet_ar_list_tab: true
|
||||
vnet_leases_tab: true
|
||||
vnet_sg_list_tab: true
|
||||
vnet_vr_list_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Reservation
|
||||
- 6 # Cluster
|
||||
#- 7 # Bridge
|
||||
- 8 # Leases
|
||||
#- 9 # VLAN ID
|
||||
#- 10 # Labels
|
||||
actions:
|
||||
Network.refresh: true
|
||||
Network.create_dialog: false
|
||||
Network.import_dialog: false
|
||||
Network.update_dialog: true
|
||||
Network.reserve_dialog: true
|
||||
Network.addtocluster: false
|
||||
Network.rename: true
|
||||
Network.chown: false
|
||||
Network.chgrp: false
|
||||
Network.chmod: true
|
||||
Network.delete: true
|
||||
Network.hold_lease: true
|
||||
Network.release_lease: true
|
||||
Network.add_ar: false
|
||||
Network.remove_ar: true
|
||||
Network.update_ar: true
|
||||
secgroups-tab:
|
||||
panel_tabs:
|
||||
security_group_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
#- 5 # Labels
|
||||
actions:
|
||||
SecurityGroup.refresh: true
|
||||
SecurityGroup.create_dialog: true
|
||||
SecurityGroup.update_dialog: true
|
||||
SecurityGroup.rename: true
|
||||
SecurityGroup.chown: true
|
||||
SecurityGroup.chgrp: true
|
||||
SecurityGroup.chmod: true
|
||||
SecurityGroup.clone_dialog: true
|
||||
SecurityGroup.delete: true
|
||||
vrouters-tab:
|
||||
panel_tabs:
|
||||
virtual_router_info_tab: true
|
||||
virtual_router_vms_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
VirtualRouter.refresh: true
|
||||
VirtualRouter.create_dialog: true
|
||||
VirtualRouter.rename: true
|
||||
VirtualRouter.chown: true
|
||||
VirtualRouter.chgrp: true
|
||||
VirtualRouter.chmod: true
|
||||
VirtualRouter.delete: true
|
||||
VirtualRouter.attachnic: true
|
||||
VirtualRouter.detachnic: true
|
||||
oneflow-dashboard-tab:
|
||||
panel_tabs:
|
||||
table_columns:
|
||||
actions:
|
||||
oneflow-services-tab:
|
||||
panel_tabs:
|
||||
service_info_tab: true
|
||||
service_roles_tab: true
|
||||
service_log_tab: true
|
||||
panel_tabs_actions:
|
||||
service_roles_tab:
|
||||
Role.scale: true
|
||||
Role.hold: true
|
||||
Role.release: true
|
||||
Role.suspend: true
|
||||
Role.resume: true
|
||||
Role.stop: true
|
||||
Role.reboot: true
|
||||
Role.reboot_hard: true
|
||||
Role.poweroff: true
|
||||
Role.poweroff_hard: true
|
||||
Role.undeploy: true
|
||||
Role.undeploy_hard: true
|
||||
Role.shutdown: true
|
||||
Role.shutdown_hard: true
|
||||
Role.delete: true
|
||||
Role.delete_recreate: true
|
||||
RoleVM.hold: true
|
||||
RoleVM.release: true
|
||||
RoleVM.suspend: true
|
||||
RoleVM.resume: true
|
||||
RoleVM.stop: true
|
||||
RoleVM.reboot: true
|
||||
RoleVM.reboot_hard: true
|
||||
RoleVM.poweroff: true
|
||||
RoleVM.poweroff_hard: true
|
||||
RoleVM.undeploy: true
|
||||
RoleVM.undeploy_hard: true
|
||||
RoleVM.shutdown: true
|
||||
RoleVM.shutdown_hard: true
|
||||
RoleVM.delete: true
|
||||
RoleVM.delete_recreate: true
|
||||
RoleVM.resched: false
|
||||
RoleVM.unresched: false
|
||||
RoleVM.recover: false
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # State
|
||||
actions:
|
||||
Service.refresh: true
|
||||
Service.chown: false
|
||||
Service.chgrp: false
|
||||
Service.chmod: true
|
||||
Service.rename: true
|
||||
Service.shutdown: true
|
||||
Service.recover: true
|
||||
Service.delete: true
|
||||
oneflow-templates-tab:
|
||||
panel_tabs:
|
||||
service_template_info_tab: true
|
||||
service_template_roles_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
ServiceTemplate.refresh: true
|
||||
ServiceTemplate.create_dialog: true
|
||||
ServiceTemplate.update_dialog: true
|
||||
ServiceTemplate.instantiate: true
|
||||
ServiceTemplate.chown: false
|
||||
ServiceTemplate.chgrp: false
|
||||
ServiceTemplate.chmod: true
|
||||
ServiceTemplate.rename: true
|
||||
ServiceTemplate.clone_dialog: true
|
||||
ServiceTemplate.delete: true
|
||||
zones-tab:
|
||||
panel_tabs:
|
||||
zone_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Name
|
||||
- 3 # Endpoint
|
||||
#- 4 # Labels
|
||||
actions:
|
||||
Zone.refresh: true
|
||||
Zone.create_dialog: true
|
||||
Zone.rename: true
|
||||
Zone.delete: true
|
||||
support-tab:
|
||||
panel_tabs:
|
||||
support_info_tab: true
|
||||
table_columns:
|
||||
#- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Subject
|
||||
- 3 # Created at
|
||||
- 4 # Status
|
||||
actions:
|
||||
Support.refresh: true
|
||||
Support.create_dialog: true
|
||||
settings-tab:
|
||||
panel_tabs:
|
||||
user_info_tab: true
|
||||
user_quotas_tab: true
|
||||
group_quotas_tab: true
|
||||
user_accounting_tab: true
|
||||
user_showback_tab: true
|
||||
actions:
|
||||
User.quotas_dialog: false
|
||||
marketplaces-tab:
|
||||
panel_tabs:
|
||||
marketplace_info_tab: true
|
||||
@@ -647,3 +546,114 @@ tabs:
|
||||
MarketPlaceApp.enable: true
|
||||
MarketPlaceApp.disable: true
|
||||
MarketPlaceApp.delete: true
|
||||
network-top-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
vnets-tab:
|
||||
panel_tabs:
|
||||
vnet_info_tab: true
|
||||
vnet_ar_list_tab: true
|
||||
vnet_leases_tab: true
|
||||
vnet_sg_list_tab: true
|
||||
vnet_vr_list_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
- 5 # Reservation
|
||||
- 6 # Cluster
|
||||
#- 7 # Bridge
|
||||
- 8 # Leases
|
||||
#- 9 # VLAN ID
|
||||
#- 10 # Labels
|
||||
actions:
|
||||
Network.refresh: true
|
||||
Network.create_dialog: false
|
||||
Network.import_dialog: false
|
||||
Network.update_dialog: true
|
||||
Network.reserve_dialog: true
|
||||
Network.addtocluster: false
|
||||
Network.rename: true
|
||||
Network.chown: false
|
||||
Network.chgrp: false
|
||||
Network.chmod: true
|
||||
Network.delete: true
|
||||
Network.hold_lease: true
|
||||
Network.release_lease: true
|
||||
Network.add_ar: false
|
||||
Network.remove_ar: true
|
||||
Network.update_ar: true
|
||||
vrouters-tab:
|
||||
panel_tabs:
|
||||
virtual_router_info_tab: true
|
||||
virtual_router_vms_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
actions:
|
||||
VirtualRouter.refresh: true
|
||||
VirtualRouter.create_dialog: true
|
||||
VirtualRouter.rename: true
|
||||
VirtualRouter.chown: true
|
||||
VirtualRouter.chgrp: true
|
||||
VirtualRouter.chmod: true
|
||||
VirtualRouter.delete: true
|
||||
VirtualRouter.attachnic: true
|
||||
VirtualRouter.detachnic: true
|
||||
vnets-topology-tab:
|
||||
panel_tabs:
|
||||
actions:
|
||||
NetworkTopology.refresh: true
|
||||
NetworkTopology.fit: true
|
||||
NetworkTopology.collapseVMs: true
|
||||
NetworkTopology.openVMs: true
|
||||
secgroups-tab:
|
||||
panel_tabs:
|
||||
security_group_info_tab: true
|
||||
table_columns:
|
||||
- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Owner
|
||||
- 3 # Group
|
||||
- 4 # Name
|
||||
#- 5 # Labels
|
||||
actions:
|
||||
SecurityGroup.refresh: true
|
||||
SecurityGroup.create_dialog: true
|
||||
SecurityGroup.update_dialog: true
|
||||
SecurityGroup.rename: true
|
||||
SecurityGroup.chown: true
|
||||
SecurityGroup.chgrp: true
|
||||
SecurityGroup.chmod: true
|
||||
SecurityGroup.clone_dialog: true
|
||||
SecurityGroup.delete: true
|
||||
oneflow-dashboard-tab:
|
||||
panel_tabs:
|
||||
table_columns:
|
||||
actions:
|
||||
support-tab:
|
||||
panel_tabs:
|
||||
support_info_tab: true
|
||||
table_columns:
|
||||
#- 0 # Checkbox
|
||||
- 1 # ID
|
||||
- 2 # Subject
|
||||
- 3 # Created at
|
||||
- 4 # Status
|
||||
actions:
|
||||
Support.refresh: true
|
||||
Support.create_dialog: true
|
||||
settings-tab:
|
||||
panel_tabs:
|
||||
user_info_tab: true
|
||||
user_quotas_tab: true
|
||||
group_quotas_tab: true
|
||||
user_accounting_tab: true
|
||||
user_showback_tab: true
|
||||
actions:
|
||||
User.quotas_dialog: false
|
||||
@@ -20,7 +20,7 @@ module.exports = function(grunt) {
|
||||
|
||||
sass: {
|
||||
options: {
|
||||
includePaths: ['bower_components/foundation/scss']
|
||||
includePaths: ['bower_components/foundation-sites/scss']
|
||||
},
|
||||
dist: {
|
||||
options: {
|
||||
@@ -38,7 +38,7 @@ module.exports = function(grunt) {
|
||||
},
|
||||
|
||||
sass: {
|
||||
files: 'scss/**/*.scss',
|
||||
files: 'scss/*.scss',
|
||||
tasks: ['sass']
|
||||
},
|
||||
|
||||
|
||||
@@ -16,7 +16,13 @@
|
||||
|
||||
define(function(require) {
|
||||
require('jquery');
|
||||
require('foundation.dropdown');
|
||||
require('foundation');
|
||||
|
||||
Foundation.Dropdown.defaults.positionClass = 'left';
|
||||
Foundation.Dropdown.defaults.closeOnClick = true;
|
||||
Foundation.DropdownMenu.defaults.closeOnClick = true;
|
||||
Foundation.DropdownMenu.defaults.disableHover = true;
|
||||
Foundation.DropdownMenu.defaults.clickOpen = true;
|
||||
|
||||
var DASHBOARD_TAB_ID = require('tabs/dashboard-tab/tabId');
|
||||
var SETTINGS_TAB_ID = require('tabs/settings-tab/tabId');
|
||||
@@ -27,7 +33,8 @@ define(function(require) {
|
||||
var Notifier = require('utils/notifier');
|
||||
var Menu = require('utils/menu');
|
||||
var Locale = require('utils/locale');
|
||||
var UserInputs = require('utils/user-inputs');
|
||||
|
||||
var UserAndZoneTemplate = require('hbs!sunstone/user_and_zone');
|
||||
|
||||
var _commonDialogs = [
|
||||
require('utils/dialogs/confirm'),
|
||||
@@ -35,14 +42,14 @@ define(function(require) {
|
||||
require('utils/dialogs/generic-confirm')
|
||||
]
|
||||
|
||||
Sunstone.addDialogs(_commonDialogs);
|
||||
Sunstone.addMainTabs();
|
||||
|
||||
//$(window).load(function() {
|
||||
// $('#loading').hide();
|
||||
//});
|
||||
|
||||
$(document).ready(function() {
|
||||
Sunstone.addDialogs(_commonDialogs);
|
||||
Sunstone.addMainTabs();
|
||||
Sunstone.insertTabs();
|
||||
|
||||
if (Config.isTabEnabled(PROVISION_TAB_ID)){
|
||||
@@ -54,7 +61,6 @@ define(function(require) {
|
||||
_setupAccordion();
|
||||
_setupCloseDropdownsOnClick();
|
||||
_insertUserAndZoneSelector();
|
||||
UserInputs.initialSetup();
|
||||
|
||||
if (Config.isTabEnabled(PROVISION_TAB_ID)) {
|
||||
Sunstone.showTab(PROVISION_TAB_ID);
|
||||
@@ -87,46 +93,14 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function _insertUserAndZoneSelector() {
|
||||
var user_login_content =
|
||||
'<button href="#" data-dropdown="userSelectDropdown" class="button small radius secondary dropdown" id="logout">\
|
||||
<i class="fa fa-user fa-lg fa-fw header-icon"></i> ' + config['display_name'] + '</button>\
|
||||
<ul id="userSelectDropdown" data-dropdown-content class="f-dropdown">';
|
||||
|
||||
if (config['available_views'].length > 1){
|
||||
user_login_content +=
|
||||
'<li><a href="#" class="quickconf_view_header"><i class="fa fa-fw fa-eye"></i> '+Locale.tr("Views")+'</a></li>';
|
||||
|
||||
$.each(config['available_views'], function(i, view) {
|
||||
var faclass = "";
|
||||
|
||||
if (view == config['user_config']["default_view"]){
|
||||
faclass = "fa fa-fw fa-check";
|
||||
} else {
|
||||
faclass = "fa fa-fw";
|
||||
}
|
||||
|
||||
user_login_content +=
|
||||
'<li><a href="#" class="quickconf_view" view="'+view+'"><i class="'+faclass+'"></i> '+view+'</a></li>';
|
||||
});
|
||||
|
||||
user_login_content +=
|
||||
'<li><hr/></li>';
|
||||
}
|
||||
|
||||
if (Config.isTabEnabled(SETTINGS_TAB_ID)){
|
||||
user_login_content +=
|
||||
'<li><a href="#" class="configuration"><i class="fa fa-fw fa-cog"></i> '+Locale.tr("Settings")+'</a></li>';
|
||||
}
|
||||
|
||||
user_login_content +=
|
||||
'<li><a href="#" class="logout"><i class="fa fa-fw fa-power-off"></i> '+Locale.tr("Sign Out")+'</a></li>\
|
||||
</ul>\
|
||||
<button href="#" data-dropdown="drop2" class="button small radius secondary dropdown" id="zonelector">\
|
||||
<i class="fa fa-home fa-lg fa-fw header-icon"></i> ' + config['zone_name'] + '</button>\
|
||||
<ul id="drop2" data-dropdown-content class="zone-ul f-dropdown"></ul>';
|
||||
|
||||
$(".user-zone-info").html(user_login_content);
|
||||
$(".user-zone-info").html(UserAndZoneTemplate({
|
||||
displayName: config['display_name'],
|
||||
settingsTabEnabled: Config.isTabEnabled(SETTINGS_TAB_ID),
|
||||
availableViews: config['available_views'],
|
||||
zoneName: config['zone_name']
|
||||
})).foundation();
|
||||
|
||||
$('.quickconf_view[view="' + config['user_config']["default_view"] + '"] i').addClass('fa-check');
|
||||
$(".user-zone-info a.quickconf_view_header").click(function() {
|
||||
var context = $(this).closest('ul');
|
||||
$(".quickconf_view", context).toggle();
|
||||
@@ -146,7 +120,8 @@ define(function(require) {
|
||||
success: function (request, obj_list) {
|
||||
$('.zone-ul').empty();
|
||||
$.each(obj_list, function() {
|
||||
$('.zone-ul').append('<li><a id="' + this.ZONE.NAME + '" class="zone-choice">' + this.ZONE.NAME + '</a></li>');
|
||||
$('.zone-ul').append('<li>' +
|
||||
'<a href="#" id="' + this.ZONE.NAME + '" class="zone-choice">' + this.ZONE.NAME + '</a></li>');
|
||||
});
|
||||
},
|
||||
error: Notifier.onError
|
||||
@@ -186,7 +161,7 @@ define(function(require) {
|
||||
});
|
||||
|
||||
$(".user-zone-info a.configuration").click(function() {
|
||||
$(document).foundation('dropdown', 'closeall');
|
||||
//$(document).foundation('dropdown', 'closeall');
|
||||
Sunstone.showTab(SETTINGS_TAB_ID);
|
||||
});
|
||||
}
|
||||
|
||||
+103
-107
@@ -23,40 +23,35 @@ require.config({
|
||||
'jquery': '../bower_components/jquery/dist/jquery',
|
||||
|
||||
/* DataTables */
|
||||
'datatables': '../bower_components/datatables/media/js/jquery.dataTables',
|
||||
'foundation-datatables': '../bower_components/foundation-datatables/integration/foundation/dataTables.foundation',
|
||||
'datatables.net': '../bower_components/datatables/media/js/jquery.dataTables',
|
||||
'datatables.foundation': '../bower_components/datatables/media/js/dataTables.foundation',
|
||||
|
||||
/* DataTables */
|
||||
'jgrowl': '../bower_components/jgrowl/jquery.jgrowl',
|
||||
|
||||
/* Foundation */
|
||||
'foundation.core': '../bower_components/foundation/js/foundation/foundation',
|
||||
'foundation.abide': '../bower_components/foundation/js/foundation/foundation.abide',
|
||||
'foundation.accordion': '../bower_components/foundation/js/foundation/foundation.accordion',
|
||||
'foundation.alert': '../bower_components/foundation/js/foundation/foundation.alert',
|
||||
'foundation.clearing': '../bower_components/foundation/js/foundation/foundation.clearing',
|
||||
'foundation.dropdown': '../bower_components/foundation/js/foundation/foundation.dropdown',
|
||||
'foundation.equalizer': '../bower_components/foundation/js/foundation/foundation.equalizer',
|
||||
'foundation.interchange': '../bower_components/foundation/js/foundation/foundation.interchange',
|
||||
'foundation.joyride': '../bower_components/foundation/js/foundation/foundation.joyride',
|
||||
'foundation.magellan': '../bower_components/foundation/js/foundation/foundation.magellan',
|
||||
'foundation.offcanvas': '../bower_components/foundation/js/foundation/foundation.offcanvas',
|
||||
'foundation.orbit': '../bower_components/foundation/js/foundation/foundation.orbit',
|
||||
'foundation.reveal': '../bower_components/foundation/js/foundation/foundation.reveal',
|
||||
'foundation.slider': '../bower_components/foundation/js/foundation/foundation.slider',
|
||||
'foundation.tab': '../bower_components/foundation/js/foundation/foundation.tab',
|
||||
'foundation.tooltip': '../bower_components/foundation/js/foundation/foundation.tooltip',
|
||||
'foundation.topbar': '../bower_components/foundation/js/foundation/foundation.topbar',
|
||||
'foundation': '../bower_components/foundation-sites/dist/foundation',
|
||||
//'foundation.core': '../bower_components/foundation/js/foundation/foundation',
|
||||
//'foundation.abide': '../bower_components/foundation/js/foundation/foundation.abide',
|
||||
//'foundation.accordion': '../bower_components/foundation/js/foundation/foundation.accordion',
|
||||
//'foundation.alert': '../bower_components/foundation/js/foundation/foundation.alert',
|
||||
//'foundation.clearing': '../bower_components/foundation/js/foundation/foundation.clearing',
|
||||
//'foundation.dropdown': '../bower_components/foundation/js/foundation/foundation.dropdown',
|
||||
//'foundation.equalizer': '../bower_components/foundation/js/foundation/foundation.equalizer',
|
||||
//'foundation.interchange': '../bower_components/foundation/js/foundation/foundation.interchange',
|
||||
//'foundation.joyride': '../bower_components/foundation/js/foundation/foundation.joyride',
|
||||
//'foundation.magellan': '../bower_components/foundation/js/foundation/foundation.magellan',
|
||||
//'foundation.offcanvas': '../bower_components/foundation/js/foundation/foundation.offcanvas',
|
||||
//'foundation.orbit': '../bower_components/foundation/js/foundation/foundation.orbit',
|
||||
//'foundation.reveal': '../bower_components/foundation/js/foundation/foundation.reveal',
|
||||
//'foundation.slider': '../bower_components/foundation/js/foundation/foundation.slider',
|
||||
//'foundation.tab': '../bower_components/foundation/js/foundation/foundation.tab',
|
||||
//'foundation.tooltip': '../bower_components/foundation/js/foundation/foundation.tooltip',
|
||||
//'foundation.topbar': '../bower_components/foundation/js/foundation/foundation.topbar',
|
||||
|
||||
/* Handlebars */
|
||||
'hbs': '../bower_components/require-handlebars-plugin/hbs',
|
||||
|
||||
/* Vendor Scripts */
|
||||
'jquery.cookie': '../bower_components/foundation/js/vendor/jquery.cookie',
|
||||
'fastclick': '../bower_components/foundation/js/vendor/fastclick',
|
||||
'modernizr': '../bower_components/foundation/js/vendor/modernizr',
|
||||
'placeholder': '../bower_components/foundation/js/vendor/placeholder',
|
||||
|
||||
/* Resumable */
|
||||
'resumable': '../bower_components/resumablejs/resumable',
|
||||
|
||||
@@ -118,32 +113,35 @@ require.config({
|
||||
/* Tabs */
|
||||
'app': {
|
||||
deps: [
|
||||
'foundation',
|
||||
'tabs/provision-tab',
|
||||
'tabs/dashboard-tab',
|
||||
'tabs/system-tab',
|
||||
'tabs/system-top-tab',
|
||||
'tabs/users-tab',
|
||||
'tabs/groups-tab',
|
||||
'tabs/vdcs-tab',
|
||||
'tabs/acls-tab',
|
||||
'tabs/vresources-tab',
|
||||
'tabs/vms-tab',
|
||||
'tabs/templates-top-tab',
|
||||
'tabs/templates-tab',
|
||||
'tabs/images-tab',
|
||||
'tabs/files-tab',
|
||||
'tabs/infra-tab',
|
||||
'tabs/oneflow-templates-tab',
|
||||
'tabs/instances-top-tab',
|
||||
'tabs/vms-tab',
|
||||
'tabs/oneflow-services-tab',
|
||||
'tabs/infrastructure-top-tab',
|
||||
'tabs/clusters-tab',
|
||||
'tabs/hosts-tab',
|
||||
'tabs/datastores-tab',
|
||||
'tabs/vnets-topology-tab',
|
||||
'tabs/vnets-tab',
|
||||
'tabs/secgroups-tab',
|
||||
'tabs/vrouters-tab',
|
||||
'tabs/zones-tab',
|
||||
'tabs/oneflow-dashboard-tab',
|
||||
'tabs/oneflow-services-tab',
|
||||
'tabs/oneflow-templates-tab',
|
||||
'tabs/storage-top-tab',
|
||||
'tabs/datastores-tab',
|
||||
'tabs/images-tab',
|
||||
'tabs/files-tab',
|
||||
'tabs/marketplaces-tab',
|
||||
'tabs/marketplaceapps-tab',
|
||||
'tabs/network-top-tab',
|
||||
'tabs/vnets-tab',
|
||||
'tabs/vrouters-tab',
|
||||
'tabs/vnets-topology-tab',
|
||||
'tabs/secgroups-tab',
|
||||
'tabs/settings-tab',
|
||||
'tabs/support-tab'
|
||||
]
|
||||
@@ -159,78 +157,76 @@ require.config({
|
||||
deps: ['jquery']
|
||||
},
|
||||
|
||||
/* dataTables */
|
||||
'foundation-datatables': {
|
||||
deps: ['jquery', 'datatables']
|
||||
},
|
||||
|
||||
/* Foundation */
|
||||
'foundation.core': {
|
||||
deps: ['jquery', 'modernizr'],
|
||||
exports: 'Foundation'
|
||||
},
|
||||
'foundation.abide': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.accordion': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.alert': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.clearing': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.dropdown': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.equalizer': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.interchange': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.joyride': {
|
||||
deps: ['foundation.core', 'jquery.cookie']
|
||||
},
|
||||
'foundation.magellan': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.offcanvas': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.orbit': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.reveal': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.slider': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.tab': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.tooltip': {
|
||||
deps: ['foundation.core']
|
||||
},
|
||||
'foundation.topbar': {
|
||||
deps: ['foundation.core']
|
||||
'foundation': {
|
||||
deps: ['jquery']
|
||||
},
|
||||
//'foundation.core': {
|
||||
// deps: ['jquery', 'modernizr'],
|
||||
// exports: 'Foundation'
|
||||
//},
|
||||
//'foundation.abide': {
|
||||
// deps: ['foundation.core']
|
||||
//},
|
||||
//'foundation.accordion': {
|
||||
// deps: ['foundation.core']
|
||||
//},
|
||||
//'foundation.alert': {
|
||||
// deps: ['foundation.core']
|
||||
//},
|
||||
//'foundation.clearing': {
|
||||
// deps: ['foundation.core']
|
||||
//},
|
||||
//'foundation.dropdown': {
|
||||
// deps: ['foundation.core']
|
||||
//},
|
||||
//'foundation.equalizer': {
|
||||
// deps: ['foundation.core']
|
||||
//},
|
||||
//'foundation.interchange': {
|
||||
// deps: ['foundation.core']
|
||||
//},
|
||||
//'foundation.joyride': {
|
||||
// deps: ['foundation.core', 'jquery.cookie']
|
||||
//},
|
||||
//'foundation.magellan': {
|
||||
// deps: ['foundation.core']
|
||||
//},
|
||||
//'foundation.offcanvas': {
|
||||
// deps: ['foundation.core']
|
||||
//},
|
||||
//'foundation.orbit': {
|
||||
// deps: ['foundation.core']
|
||||
//},
|
||||
//'foundation.reveal': {
|
||||
// deps: ['foundation.core']
|
||||
//},
|
||||
//'foundation.slider': {
|
||||
// deps: ['foundation.core']
|
||||
//},
|
||||
//'foundation.tab': {
|
||||
// deps: ['foundation.core']
|
||||
//},
|
||||
//'foundation.tooltip': {
|
||||
// deps: ['foundation.core']
|
||||
//},
|
||||
//'foundation.topbar': {
|
||||
// deps: ['foundation.core']
|
||||
//},
|
||||
|
||||
/* Vendor Scripts */
|
||||
'jquery.cookie': {
|
||||
deps: ['jquery']
|
||||
},
|
||||
'fastclick': {
|
||||
exports: 'FastClick'
|
||||
},
|
||||
'modernizr': {
|
||||
exports: 'Modernizr'
|
||||
},
|
||||
'placeholder': {
|
||||
exports: 'Placeholders'
|
||||
},
|
||||
//'jquery.cookie': {
|
||||
// deps: ['jquery']
|
||||
//},
|
||||
//'fastclick': {
|
||||
// exports: 'FastClick'
|
||||
//},
|
||||
//'modernizr': {
|
||||
// exports: 'Modernizr'
|
||||
//},
|
||||
//'placeholder': {
|
||||
// exports: 'Placeholders'
|
||||
//},
|
||||
|
||||
/* Flot Graphs */
|
||||
'flot': {
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
|
||||
define(function(require) {
|
||||
require('jquery');
|
||||
require('foundation.reveal');
|
||||
require('foundation.tab');
|
||||
require('foundation.dropdown');
|
||||
//require('foundation.reveal');
|
||||
//require('foundation.tab');
|
||||
//require('foundation.dropdown');
|
||||
|
||||
var Config = require('sunstone-config');
|
||||
var Locale = require('utils/locale');
|
||||
@@ -136,9 +136,10 @@ define(function(require) {
|
||||
dataTable.initialize();
|
||||
if (dataTable.labelsColumn) {
|
||||
$('#' + tabName + 'labels_buttons').html(
|
||||
'<button href="#" data-dropdown="' + tabName + 'LabelsDropdown" class="only-right-info only-right-list top_button small secondary button dropdown radius">' +
|
||||
'<button type="button" data-toggle="' + tabName + 'LabelsDropdown" class="only-right-info only-right-list top_button secondary button dropdown">' +
|
||||
'<i class="fa fa-tags"/></button>' +
|
||||
'<ul id="' + tabName + 'LabelsDropdown" class="only-right-info only-right-list labels-dropdown f-dropdown" data-dropdown-content></ul>');
|
||||
'<div id="' + tabName + 'LabelsDropdown" class="only-right-info only-right-list labels-dropdown dropdown-pane menu vertical" data-dropdown data-close-on-click="true"></div>').foundation();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -156,26 +157,50 @@ define(function(require) {
|
||||
if (condition && !condition()) {return;}
|
||||
|
||||
if (tabInfo.no_content === true) {
|
||||
tabClass += " tab_with_no_content"
|
||||
tabClass += " tab_with_no_content is-accordion-submenu-parent"
|
||||
} else {
|
||||
tabInfo['tabName'] = tabName;
|
||||
var TabTemplate = require('hbs!sunstone/tab')
|
||||
$('div.right-content').append(TabTemplate(tabInfo));
|
||||
}
|
||||
|
||||
var liItem = '<li id="li_' + tabName + '" class="' + tabClass + ' ' + parent + '"><a href="#">' + tabInfo.title + '</a></li>';
|
||||
var liItem;
|
||||
var title = '';
|
||||
if (tabInfo.icon) {
|
||||
title += '<i class="fa fa-lg fa-fw ' + tabInfo.icon + '"></i> ';
|
||||
}
|
||||
title += tabInfo.title;
|
||||
|
||||
$('div#menu ul#navigation').append(liItem);
|
||||
if (parent !== '') {
|
||||
liItem = '<li id="li_' + tabName + '" class="' + tabClass + '">' +
|
||||
'<a href="#">' + title + '</a>' +
|
||||
'</li>';
|
||||
|
||||
if ($('#menu ul#navigation #li_' + parent + ' .menu').length > 0) {
|
||||
$('#menu ul#navigation #li_' + parent + ' .menu').append(liItem);
|
||||
} else {
|
||||
$('#menu ul#navigation #li_' + parent).append(
|
||||
'<ul class="menu vertical nested" data-submenu>' +
|
||||
liItem +
|
||||
'</ul>')
|
||||
}
|
||||
} else {
|
||||
liItem = '<li id="li_' + tabName + '" class="' + tabClass + '">' +
|
||||
'<a href="#">' + title + '</a>' +
|
||||
'</li>';
|
||||
|
||||
$('div#menu ul#navigation').append(liItem);
|
||||
}
|
||||
|
||||
//if this is a submenu...
|
||||
if (parent.length) {
|
||||
var children = $('div#menu ul#navigation #li_' + parent);
|
||||
//if there are other submenus, insert after last of them
|
||||
if (children.length) {
|
||||
$('div#menu li#li_' + tabName).hide();//hide by default
|
||||
$('div#menu li#li_' + parent + ' span').css("display", "inline-block");
|
||||
}
|
||||
};
|
||||
//if (parent.length) {
|
||||
// var children = $('div#menu ul#navigation #li_' + parent);
|
||||
// //if there are other submenus, insert after last of them
|
||||
// if (children.length) {
|
||||
// $('div#menu li#li_' + tabName).hide();//hide by default
|
||||
// $('div#menu li#li_' + parent + ' span').css("display", "inline-block");
|
||||
// }
|
||||
//};
|
||||
|
||||
if (tabInfo.forms) {
|
||||
$.each(tabInfo.forms, function(key, value) {
|
||||
@@ -254,14 +279,14 @@ define(function(require) {
|
||||
buttonContext = $("#" + customId + "create_buttons", buttonsRow);
|
||||
icon = button.icon ? button.icon : '<i class="fa fa-plus"/>';
|
||||
text = button.text ? icon + ' ' + button.text : icon;
|
||||
strClass.push("success", "button", "small", "radius");
|
||||
strClass.push("success", "button");
|
||||
buttonCode = '<button class="' + strClass.join(' ') + '" href="' + buttonName + '">' + text + '</button>';
|
||||
break;
|
||||
case "refresh":
|
||||
buttonContext = $("#" + customId + "refresh_buttons", buttonsRow);
|
||||
icon = button.icon ? button.icon : '<i class="fa fa-refresh fa-lg"/>';
|
||||
icon = button.icon ? button.icon : '<i class="fa fa-refresh"/>';
|
||||
text = button.text ? icon + ' ' + button.text : icon;
|
||||
strClass.push("white_button", "refresh", "secondary", "button", "small", "radius");
|
||||
strClass.push("white_button", "refresh", "button", "secondary");
|
||||
buttonCode = '<button class="' + strClass.join(' ') + '" href="' + buttonName + '">' + text + '</button>';
|
||||
break;
|
||||
case "top":
|
||||
@@ -270,19 +295,19 @@ define(function(require) {
|
||||
'<i class="fa fa-refresh fa-stack-2x" style="color: #dfdfdf"></i>' +
|
||||
'<i class="fa fa-play fa-stack-1x"></i>' +
|
||||
'</span>';
|
||||
strClass.push("white_button", "toggle_top_button", "only-right-list", "secondary", "button", "small", "radius");
|
||||
strClass.push("white_button", "toggle_top_button", "only-right-list", "button", "hollow");
|
||||
buttonCode = '<a class="' + strClass.join(' ') + '" style="padding-left:0px; margin-right: 20px">' + text + '</a>';
|
||||
break;
|
||||
case "main":
|
||||
buttonContext = $("#" + customId + "main_buttons", buttonsRow);
|
||||
text = button.text;
|
||||
strClass.push("secondary", "button", "small", "radius");
|
||||
strClass.push("button");
|
||||
buttonCode = '<button class="' + strClass.join(' ') + '" href="' + buttonName + '">' + text + '</button>';
|
||||
break;
|
||||
case "vmsplay_buttons":
|
||||
buttonContext = $("#" + customId + "vmsplay_buttons", buttonsRow);
|
||||
text = button.text;
|
||||
strClass.push("secondary", "button", "small", "radius");
|
||||
strClass.push("button");
|
||||
buttonCode = '<button class="' + strClass.join(' ') + '" href="' + buttonName + '">' + text + '</button>';
|
||||
break;
|
||||
case "vmspause_buttons":
|
||||
@@ -323,13 +348,13 @@ define(function(require) {
|
||||
case "del":
|
||||
buttonContext = $("#" + customId + "delete_buttons", buttonsRow);
|
||||
text = '<i class=" fa fa-trash-o"/> ';
|
||||
strClass.push("alert", "button", "small", "radius");
|
||||
strClass.push("alert", "button");
|
||||
buttonCode = '<button class="' + strClass.join(' ') + '" href="' + buttonName + '">' + text + '</button>';
|
||||
break;
|
||||
default:
|
||||
buttonContext = $("#" + customId + "main_buttons", buttonsRow);
|
||||
text = button.text;
|
||||
strClass.push("secondary", "button", "small", "radius");
|
||||
strClass.push("button");
|
||||
buttonCode = '<button class="' + strClass.join(' ') + '" href="' + buttonName + '">' + text + '</button>';
|
||||
}
|
||||
|
||||
@@ -339,37 +364,39 @@ define(function(require) {
|
||||
//$('.top_button',actionBlock).addClass("secondary small button")
|
||||
|
||||
actionBlock.append(buttonsRow);
|
||||
//actionBlock.foundation();
|
||||
Foundation.reflow(actionBlock, 'dropdown');
|
||||
|
||||
if ($("#" + customId + "more_buttons li", actionBlock).length == 0) {
|
||||
$("button[data-dropdown=" + customId + "more_buttons]", actionBlock).remove()
|
||||
$("button[data-toggle=" + customId + "more_buttons]", actionBlock).remove()
|
||||
}
|
||||
|
||||
if ($("#" + customId + "user_buttons li", actionBlock).length == 0) {
|
||||
$("button[data-dropdown=" + customId + "user_buttons]", actionBlock).remove()
|
||||
$("button[data-toggle=" + customId + "user_buttons]", actionBlock).remove()
|
||||
}
|
||||
|
||||
if ($("#" + customId + "vmsplanification_buttons li", actionBlock).length == 0) {
|
||||
$("button[data-dropdown=" + customId + "vmsplanification_buttons]", actionBlock).remove()
|
||||
$("button[data-toggle=" + customId + "vmsplanification_buttons]", actionBlock).remove()
|
||||
}
|
||||
|
||||
if ($("#" + customId + "vmsdelete_buttons li", actionBlock).length == 0) {
|
||||
$("button[data-dropdown=" + customId + "vmsdelete_buttons]", actionBlock).remove()
|
||||
$("button[data-toggle=" + customId + "vmsdelete_buttons]", actionBlock).remove()
|
||||
}
|
||||
|
||||
if ($("#" + customId + "vmsstop_buttons li", actionBlock).length == 0) {
|
||||
$("button[data-dropdown=" + customId + "vmsstop_buttons]", actionBlock).remove()
|
||||
$("button[data-toggle=" + customId + "vmsstop_buttons]", actionBlock).remove()
|
||||
}
|
||||
|
||||
if ($("#" + customId + "vmspause_buttons li", actionBlock).length == 0) {
|
||||
$("button[data-dropdown=" + customId + "vmspause_buttons]", actionBlock).remove()
|
||||
$("button[data-toggle=" + customId + "vmspause_buttons]", actionBlock).remove()
|
||||
}
|
||||
|
||||
if ($("#" + customId + "vmsrepeat_buttons li", actionBlock).length == 0) {
|
||||
$("button[data-dropdown=" + customId + "vmsrepeat_buttons]", actionBlock).remove()
|
||||
$("button[data-toggle=" + customId + "vmsrepeat_buttons]", actionBlock).remove()
|
||||
}
|
||||
|
||||
if ($("#" + customId + "user_buttons li", actionBlock).length == 0) {
|
||||
$("button[data-dropdown=" + customId + "user_buttons]", actionBlock).remove()
|
||||
$("button[data-toggle=" + customId + "user_buttons]", actionBlock).remove()
|
||||
}
|
||||
//actionBlock.foundationButtons();
|
||||
$('.top_button, .list_button', actionBlock).prop('disabled', false);
|
||||
@@ -386,8 +413,6 @@ define(function(require) {
|
||||
_submitFormPanel(tabName);
|
||||
return false;
|
||||
})
|
||||
|
||||
$(document).foundation();
|
||||
}//if tab exists
|
||||
}
|
||||
|
||||
@@ -421,12 +446,6 @@ define(function(require) {
|
||||
error = _runAction(value);
|
||||
}
|
||||
|
||||
if (!error && !$(this).hasClass("refresh")) {
|
||||
//proceed to close confirm dialog in
|
||||
//case it was open
|
||||
_getDialogInstance(CONFIRM_DIALOG_ID).hide();
|
||||
};
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
@@ -450,16 +469,18 @@ define(function(require) {
|
||||
return false;
|
||||
});
|
||||
|
||||
$(document).foundation('dropdown', 'reflow');
|
||||
//$(document).foundation('dropdown', 'reflow');
|
||||
|
||||
// Button to return to the list view from the detailed view
|
||||
$(document).on("click", "a[href='back']", function(e) {
|
||||
$(document).on("click", "button[href='back']", function(e) {
|
||||
$(".navigation-active-li a", $("#navigation")).click();
|
||||
e.preventDefault();
|
||||
});
|
||||
}
|
||||
|
||||
var _setupTabs = function() {
|
||||
Foundation.reflow($('#menu'), 'accordion-menu');
|
||||
Foundation.reflow($('div.right-content'), 'sticky')
|
||||
var topTabs = $(".left-content ul li.topTab");
|
||||
var subTabs = $(".left-content ul li.subTab > a");
|
||||
|
||||
@@ -478,8 +499,8 @@ define(function(require) {
|
||||
|
||||
if ($(this).hasClass("tab_with_no_content")) {
|
||||
//Subtabs have a class with the name of this tab
|
||||
var subtabs = $('div#menu li.' + tabName);
|
||||
subtabs.fadeToggle('fast');
|
||||
//var subtabs = $('div#menu li.' + tabName);
|
||||
//subtabs.fadeToggle('fast');
|
||||
return false;
|
||||
} else {
|
||||
_showTab(tabName);
|
||||
@@ -493,30 +514,34 @@ define(function(require) {
|
||||
var _showRighList = function(tabName) {
|
||||
var tab = $('#' + tabName);
|
||||
$(".tab").hide();
|
||||
tab.show();
|
||||
tab.fadeIn();
|
||||
|
||||
$(".right-info", tab).hide();
|
||||
$(".right-form", tab).hide();
|
||||
$(".right-list", tab).show();
|
||||
$(".right-list", tab).fadeIn();
|
||||
$(".only-right-info", tab).hide();
|
||||
$(".only-right-form", tab).hide();
|
||||
$(".only-right-list", tab).show();
|
||||
$(".only-right-list", tab).fadeIn();
|
||||
$('.action_blocks', tab).removeClass('large-12').addClass('large-9');
|
||||
};
|
||||
|
||||
var _showRighInfo = function(tabName) {
|
||||
var tab = $('#' + tabName);
|
||||
$(".tab").hide();
|
||||
tab.show();
|
||||
tab.fadeIn();
|
||||
|
||||
$(".right-list", tab).hide();
|
||||
$(".right-form", tab).hide();
|
||||
$(".right-info", tab).show();
|
||||
$(".right-info", tab).fadeIn();
|
||||
$(".only-right-list", tab).hide();
|
||||
$(".only-right-form", tab).hide();
|
||||
$(".only-right-info", tab).show();
|
||||
$(".only-right-info", tab).fadeIn();
|
||||
$('.action_blocks', tab).removeClass('large-9').addClass('large-12');
|
||||
}
|
||||
|
||||
var _showTab = function(tabName) {
|
||||
$('.labels-tree', '#navigation').remove();
|
||||
|
||||
if (!SunstoneCfg['tabs'][tabName]) {
|
||||
return false;
|
||||
}
|
||||
@@ -534,7 +559,6 @@ define(function(require) {
|
||||
//clean selected menu
|
||||
$("#navigation li").removeClass("navigation-active-li");
|
||||
$("#navigation li#li_" + tabName).addClass("navigation-active-li");
|
||||
$('.tree', '#navigation').remove();
|
||||
|
||||
var tab = $('#' + tabName);
|
||||
//show tab
|
||||
@@ -583,7 +607,7 @@ define(function(require) {
|
||||
context.data('element', info[Object.keys(info)[0]]);
|
||||
|
||||
var containerId = tabName + '-panels';
|
||||
var activaTab = $("dd.active a", $("#" + containerId));
|
||||
var activaTab = $("li.is-active a", $("#" + containerId));
|
||||
if (activaTab) {
|
||||
var activaTabHref = activaTab.attr('href');
|
||||
}
|
||||
@@ -649,24 +673,26 @@ define(function(require) {
|
||||
})
|
||||
|
||||
context.html(html);
|
||||
|
||||
$.each(SunstoneCfg['tabs'][tabName]["panelInstances"], function(panelName, panel) {
|
||||
panel.setup(context);
|
||||
|
||||
if(isRefresh && prevPanelStates[panelName] && panel.setState){
|
||||
panel.setState( prevPanelStates[panelName], context );
|
||||
}
|
||||
});
|
||||
|
||||
if (panel.onShow) {
|
||||
context.off('click', '[href="#' + panel.panelId + '"]');
|
||||
context.on('click', '[href="#' + panel.panelId + '"]', function(){
|
||||
panel.onShow(context);
|
||||
});
|
||||
$('#' + containerId + 'Tabs', context).on('change.zf.tabs', function(target) {
|
||||
var tabIdWithHash = $('.is-active > a', this)[0].hash;
|
||||
var panel = SunstoneCfg['tabs'][tabName]["panelInstances"][tabIdWithHash.substring(1)];
|
||||
if (panel && panel.onShow) {
|
||||
panel.onShow(context);
|
||||
}
|
||||
});
|
||||
|
||||
context.foundation('tab', 'reflow');
|
||||
$('[href=' + activaTabHref + ']', context).trigger("click");
|
||||
Foundation.reflow(context, 'tabs');
|
||||
|
||||
//context.foundation();
|
||||
$('[href="' + activaTabHref + '"]', context).trigger("click");
|
||||
|
||||
if (hooks) {
|
||||
$.each(hooks, function(i, hook){
|
||||
@@ -789,9 +815,11 @@ define(function(require) {
|
||||
|
||||
if (!formPanelInstance) {
|
||||
formContext =
|
||||
$('<div class="tabs-content tabs-contentForm" form-panel-id="'+formPanelId+'">\
|
||||
<div class="wizardForms content active" id="'+tab.tabName+'-wizardForms"></div>\
|
||||
<div class="advancedForms content" id="'+tab.tabName+'-advancedForms"></div>\
|
||||
$('<div class="tabs-content tabs-contentForm" ' +
|
||||
'data-tabs-content="' + tab.tabName + 'FormTabs" ' +
|
||||
'form-panel-id="'+formPanelId+'">\
|
||||
<div class="wizardForms tabs-panel is-active" id="'+tab.tabName+'-wizardForms"></div>\
|
||||
<div class="advancedForms tabs-panel" id="'+tab.tabName+'-advancedForms"></div>\
|
||||
</div>').appendTo( $(".contentForm", context) );
|
||||
|
||||
// Create panelInstance, insert in the DOM and setup
|
||||
@@ -801,6 +829,8 @@ define(function(require) {
|
||||
return false;
|
||||
} // Panel not defined
|
||||
|
||||
Foundation.reflow(context, 'tabs');
|
||||
|
||||
formPanelInstance = new formPanel();
|
||||
formPanelInstance.setAction(formContext, action);
|
||||
tab["formPanelInstances"][formPanelId] = formPanelInstance;
|
||||
@@ -846,9 +876,9 @@ define(function(require) {
|
||||
setTimeout(function() {
|
||||
var formPanelInstance = SunstoneCfg["tabs"][tabId].activeFormPanel
|
||||
|
||||
if ($(".wizardForms.active", context).length > 0) {
|
||||
if ($(".wizardForms.is-active", context).length > 0) {
|
||||
$('#' + formPanelInstance.formPanelId + 'Wizard').submit();
|
||||
} else if ($(".advancedForms.active", context).length > 0) {
|
||||
} else if ($(".advancedForms.is-active", context).length > 0) {
|
||||
$('#' + formPanelInstance.formPanelId + 'Advanced').submit();
|
||||
}
|
||||
}, 13)
|
||||
@@ -908,14 +938,14 @@ define(function(require) {
|
||||
$(".right-form-title", context).text(formPanelInstance.title());
|
||||
$(".submit_button", context).text(formPanelInstance.buttonText());
|
||||
|
||||
$("div[form-panel-id="+formPanelInstance.formPanelId+"]", context).show();
|
||||
$("div[form-panel-id="+formPanelInstance.formPanelId+"]", context).fadeIn();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function _hideFormPanel(tabId) {
|
||||
var context = $("#" + tabId);
|
||||
$("a[href=back]", context).trigger("click");
|
||||
$('[href="back"]', context).trigger("click");
|
||||
}
|
||||
|
||||
function _popFormPanelLoading(tabId) {
|
||||
@@ -926,6 +956,7 @@ define(function(require) {
|
||||
$(".only-right-list", context).hide();
|
||||
$(".only-right-info", context).hide();
|
||||
$(".only-right-form", context).show();
|
||||
$('.action_blocks', context).removeClass('large-9').addClass('large-12');
|
||||
|
||||
$(".right-form-title", context).text(Locale.tr("Loading..."));
|
||||
$(".submit_button", context).text(Locale.tr("Loading..."));
|
||||
|
||||
@@ -14,79 +14,77 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div class="text-center">
|
||||
<span class="left">
|
||||
|
||||
<span id="{{customId}}refresh_buttons" class="only-right-info only-right-list"></span>
|
||||
<span>
|
||||
{{#unless customContext}}
|
||||
<span id="{{customId}}back_button" class="only-right-info only-right-form">
|
||||
<a class="button small radius" href="back"> <i class="fa fa-arrow-left"></i>
|
||||
   <i class="fa fa-list"></i>
|
||||
</a>
|
||||
<span id="{{customId}}back_button" class=" only-right-info only-right-form">
|
||||
<button class="button radius" href="back"> <i class="fa fa-arrow-left"></i> <i class="fa fa-list"></i>
|
||||
</button>
|
||||
</span>
|
||||
{{/unless}}
|
||||
<span id="{{customId}}create_buttons" class="only-right-list"></span>
|
||||
|
||||
<span id='{{customId}}form_buttons' class='only-right-form' hidden>
|
||||
<span id="{{customId}}reset_button">
|
||||
<button class="button secondary radius reset_button" href="submit">{{tr "Reset"}}</button>
|
||||
</span>
|
||||
<span id="{{customId}}submit_button">
|
||||
<button class="button success radius submit_button" href="submit">{{tr "Create"}}</button>
|
||||
</span>
|
||||
</span>
|
||||
|
||||
<span id="{{customId}}create_buttons" class=" only-right-list"></span>
|
||||
<span id="{{customId}}refresh_buttons" class=" only-right-info only-right-list"></span>
|
||||
</span>
|
||||
|
||||
<span class="right" style="margin-left: 20px">
|
||||
<span id='{{customId}}labels_buttons' class='only-right-info only-right-list'></span>
|
||||
<button href='#' data-dropdown='{{customId}}user_buttons' class='only-right-info only-right-list top_button small secondary button dropdown radius'>
|
||||
<i class='fa fa-user'/></button>
|
||||
<ul id='{{customId}}user_buttons' class='only-right-info only-right-list f-dropdown' data-dropdown-content></ul>
|
||||
|
||||
<button href='#' data-dropdown='{{customId}}vmsdelete_buttons' class='only-right-info only-right-list top_button small button alert dropdown radius'>
|
||||
<i class='fa fa-trash-o'/></button>
|
||||
<ul id='{{customId}}vmsdelete_buttons' class='only-right-info only-right-list f-dropdown' data-dropdown-content></ul>
|
||||
|
||||
<span id='{{customId}}delete_buttons' class='only-right-info only-right-list'></span>
|
||||
</span>
|
||||
|
||||
<span class="right">
|
||||
<span id="{{customId}}vmsplay_buttons" class='only-right-info only-right-list'></span>
|
||||
|
||||
<button href='#' data-dropdown='{{customId}}vmspause_buttons' class='only-right-info only-right-list top_button small button secondary dropdown radius'>
|
||||
<i class='fa fa-pause'/>
|
||||
</button>
|
||||
<ul id='{{customId}}vmspause_buttons' class='only-right-info only-right-list f-dropdown' data-dropdown-content></ul>
|
||||
|
||||
<button href='#' data-dropdown='{{customId}}vmsstop_buttons' class='only-right-info only-right-list top_button small button secondary dropdown radius'>
|
||||
<i class='fa fa-stop'/>
|
||||
</button>
|
||||
<ul id='{{customId}}vmsstop_buttons' class='only-right-info only-right-list f-dropdown' data-dropdown-content></ul>
|
||||
|
||||
<button href='#' data-dropdown='{{customId}}vmsrepeat_buttons' class='only-right-info only-right-list top_button small button secondary dropdown radius'>
|
||||
<i class='fa fa-repeat'/>
|
||||
</button>
|
||||
<ul id='{{customId}}vmsrepeat_buttons' class='only-right-info only-right-list f-dropdown' data-dropdown-content></ul>
|
||||
|
||||
<button href='#' data-dropdown='{{customId}}vmsplanification_buttons' class='only-right-info only-right-list top_button small button secondary dropdown radius'>
|
||||
<i class='fa fa-th-list'/>
|
||||
</button>
|
||||
<ul id='{{customId}}vmsplanification_buttons' class='only-right-info only-right-list f-dropdown' data-dropdown-content></ul>
|
||||
|
||||
<span>
|
||||
<span id="{{customId}}main_buttons" class="only-right-info only-right-list"></span>
|
||||
|
||||
<button href='#' data-dropdown='{{customId}}more_buttons' class='only-right-info only-right-list top_button small button secondary dropdown radius'>
|
||||
<span id="{{customId}}vmsplay_buttons" class='only-right-info only-right-list'></span>
|
||||
|
||||
<button type='button' data-toggle='{{customId}}vmspause_buttons' class='only-right-info only-right-list top_button button secondary dropdown'>
|
||||
<i class='fa fa-pause'/>
|
||||
</button>
|
||||
<ul id='{{customId}}vmspause_buttons' class='only-right-info only-right-list dropdown-pane menu vertical' data-dropdown></ul>
|
||||
|
||||
<button type='button' data-toggle='{{customId}}vmsstop_buttons' class='only-right-info only-right-list top_button button secondary dropdown'>
|
||||
<i class='fa fa-stop'/>
|
||||
</button>
|
||||
<ul id='{{customId}}vmsstop_buttons' class='only-right-info only-right-list dropdown-pane menu vertical' data-dropdown></ul>
|
||||
|
||||
<button type='button' data-toggle='{{customId}}vmsrepeat_buttons' class='only-right-info only-right-list top_button button secondary dropdown'>
|
||||
<i class='fa fa-repeat'/>
|
||||
</button>
|
||||
<ul id='{{customId}}vmsrepeat_buttons' class='only-right-info only-right-list dropdown-pane menu vertical' data-dropdown></ul>
|
||||
|
||||
<button type='button' data-toggle='{{customId}}vmsplanification_buttons' class='only-right-info only-right-list top_button button secondary dropdown'>
|
||||
<i class='fa fa-th-list'/>
|
||||
</button>
|
||||
<ul id='{{customId}}vmsplanification_buttons' class='only-right-info only-right-list dropdown-pane menu vertical' data-dropdown></ul>
|
||||
|
||||
</span>
|
||||
<span>
|
||||
<button type='button' data-toggle='{{customId}}more_buttons' class='only-right-info only-right-list top_button button secondary dropdown'>
|
||||
<i class='fa fa-ellipsis-v'/>
|
||||
</button>
|
||||
<ul id='{{customId}}more_buttons' class='only-right-info only-right-list f-dropdown' data-dropdown-content></ul>
|
||||
<ul id='{{customId}}more_buttons' class='only-right-info only-right-list dropdown-pane menu vertical' data-dropdown></ul>
|
||||
|
||||
<button type='button' data-toggle='{{customId}}user_buttons' class='only-right-info only-right-list top_button secondary button dropdown'>
|
||||
<i class='fa fa-user'/></button>
|
||||
<ul id='{{customId}}user_buttons' class='only-right-info only-right-list dropdown-pane menu vertical' data-dropdown></ul>
|
||||
|
||||
<span id='{{customId}}labels_buttons' class='only-right-info only-right-list'></span>
|
||||
|
||||
<button type='button' data-toggle='{{customId}}vmsdelete_buttons' class='only-right-info only-right-list top_button button alert dropdown'>
|
||||
<i class='fa fa-trash-o'/></button>
|
||||
<ul id='{{customId}}vmsdelete_buttons' class='only-right-info only-right-list dropdown-pane menu vertical' data-dropdown></ul>
|
||||
|
||||
<span id='{{customId}}delete_buttons' class='only-right-info only-right-list'></span>
|
||||
|
||||
<ul id="{{customId}}FormTabs" class="tabs right wizard_tabs only-right-form" hidden data-tabs>
|
||||
<li id="wizard_mode" class="tabs-title is-active">
|
||||
<a href="#{{customId}}-wizardForms">{{tr "Wizard"}}</a>
|
||||
</li>
|
||||
<li id="advanced_mode" class="tabs-title">
|
||||
<a href="#{{customId}}-advancedForms">{{tr "Advanced"}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</span>
|
||||
|
||||
<span id='{{customId}}form_buttons' class='only-right-form' style='display: none'>
|
||||
<span id="{{customId}}reset_button" class="left" style="margin-left: 10px;">
|
||||
<a class="button small secondary radius reset_button" href="submit">{{tr "Reset"}}</a>
|
||||
</span>
|
||||
<span id="{{customId}}submit_button" class="left" style="margin-left: 10px;">
|
||||
<a class="button small success radius submit_button" href="submit">{{tr "Create"}}</a>
|
||||
</span>
|
||||
<dl class="tabs right wizard_tabs" data-tab style="margin-left: 10px;">
|
||||
<dd id="wizard_mode" class="active">
|
||||
<a style="padding: 0.3rem 1rem;" href="#{{customId}}-wizardForms">{{tr "Wizard"}}</a>
|
||||
</dd>
|
||||
<dd id="advanced_mode">
|
||||
<a style="padding: 0.3rem 1rem;" href="#{{customId}}-advancedForms">{{tr "Advanced"}}</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</span>
|
||||
</div>
|
||||
"
|
||||
@@ -15,9 +15,9 @@
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div id="{{containerId}}" class="bordered-tabs">
|
||||
<dl class="tabs right-info-tabs text-center" data-tab>
|
||||
<ul id="{{containerId}}Tabs" class="tabs right-info-tabs text-center" data-tabs>
|
||||
{{#each panels}}
|
||||
<dd {{#if active}}class="active"{{/if}}>
|
||||
<li class="tabs-title {{#if active}}is-active{{/if}}">
|
||||
<a href="#{{panelName}}">
|
||||
{{#if icon}}
|
||||
<i class="fa {{icon}}"></i>
|
||||
@@ -25,12 +25,12 @@
|
||||
{{/if}}
|
||||
{{title}}
|
||||
</a>
|
||||
</dd>
|
||||
</li>
|
||||
{{/each}}
|
||||
</dl>
|
||||
<div class='tabs-content'>
|
||||
</ul>
|
||||
<div class='tabs-content' data-tabs-content="{{containerId}}Tabs">
|
||||
{{#each panels}}
|
||||
<div id="{{panelName}}" class="content {{#if active}}active{{/if}}">
|
||||
<div id="{{panelName}}" class="tabs-panel {{#if active}}is-active{{/if}}">
|
||||
{{{html}}}
|
||||
</div>
|
||||
{{/each}}
|
||||
|
||||
@@ -13,43 +13,40 @@
|
||||
{{! See the License for the specific language governing permissions and }}
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div id="{{tabName}}" class="tab" style="display:none;">
|
||||
{{#if listHeader }}
|
||||
<div class="row header-row">
|
||||
<div class="large-12 columns">
|
||||
<h3 class="subheader header-title only-right-list" style="border-bottom: 1px solid #efefef; padding-bottom: 10px;">
|
||||
<span class="header-resource" style="border-bottom: 2px solid #0098c3; padding: 0px 50px 10px 0px;">{{{listHeader}}}</span>
|
||||
<h3 class="header-title only-right-list">
|
||||
<span class="header-resource">{{{listHeader}}}</span>
|
||||
</h3>
|
||||
<h3 class="subheader header-title only-right-info" style="border-bottom: 1px solid #efefef; padding-bottom: 10px;" hidden>
|
||||
<span class="header-resource" style="border-bottom: 2px solid #0098c3; padding: 0px 50px 10px 0px;">{{{infoHeader}}}
|
||||
 
|
||||
<span class="resource-id"></span>
|
||||
 
|
||||
<span class="resource-info-header"></span>
|
||||
 
|
||||
<small class="resource-info-header-small"></small>
|
||||
<h3 class="header-title only-right-info" hidden>
|
||||
<span class="header-resource">
|
||||
{{{infoHeader}}}
|
||||
<small class="resource-id"></small>
|
||||
<small class="resource-info-header"></small>
|
||||
<small class="resource-info-header-small"></small>
|
||||
</span>
|
||||
</h3>
|
||||
<h3 class="subheader header-title only-right-form" style="border-bottom: 1px solid #efefef; padding-bottom: 10px;" hidden>
|
||||
<span class="right-form-title" style="border-bottom: 2px solid #0098c3; padding: 0px 50px 10px 0px;"></span>
|
||||
<h3 class="header-title only-right-form" hidden>
|
||||
<span class="right-form-title"></span>
|
||||
</h3>
|
||||
</div>
|
||||
{{#if buttons}}
|
||||
<div class="actions_row">
|
||||
<div class="large-9 columns action_blocks"></div>
|
||||
<div class="large-3 columns">
|
||||
<div class="only-right-list">
|
||||
{{#if dataTable.searchInputHTML}}
|
||||
{{{dataTable.searchInputHTML}}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if buttons}}
|
||||
<div class="row actions_row">
|
||||
<div class="small-12 large-12 columns">
|
||||
<div class="action_blocks"></div>
|
||||
<div class="small-3 large-3 columns only-right-list">
|
||||
{{#if dataTable.searchInputHTML}}
|
||||
{{{dataTable.searchInputHTML}}}
|
||||
{{/if}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
<div class="right-list">
|
||||
{{#if dataTable.dataTableHTML}}
|
||||
<div class="row">
|
||||
@@ -64,11 +61,11 @@
|
||||
{{#if subheader}}
|
||||
<div class="row header-info">
|
||||
<div class="large-12 columns text-center totals-info">
|
||||
<h3 class="subheader">
|
||||
<h5>
|
||||
{{#if subheader}}
|
||||
{{{subheader}}}
|
||||
{{/if}}
|
||||
</h3>
|
||||
</h5>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
@@ -80,12 +77,10 @@
|
||||
<div class="loadingForm">
|
||||
<br>
|
||||
<br>
|
||||
<span class="fa-stack fa-5x" style="color: #dfdfdf"> <i class="fa fa-cloud fa-stack-2x"/><i class="fa fa-spinner fa-spin fa-stack-1x fa-inverse"/>
|
||||
<span class="fa-stack fa-5x"> <i class="fa fa-cloud fa-stack-2x"/><i class="fa fa-spinner fa-spin fa-stack-1x fa-inverse"/>
|
||||
</span>
|
||||
<br>
|
||||
<br>
|
||||
</div>
|
||||
<div class="contentForm">
|
||||
</div>
|
||||
<br></div>
|
||||
<div class="contentForm"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,66 @@
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
{{! Copyright 2002-2015, OpenNebula Project, OpenNebula Systems }}
|
||||
{{! }}
|
||||
{{! Licensed under the Apache License, Version 2.0 (the "License"); you may }}
|
||||
{{! not use this file except in compliance with the License. You may obtain }}
|
||||
{{! a copy of the License at }}
|
||||
{{! }}
|
||||
{{! http://www.apache.org/licenses/LICENSE-2.0 }}
|
||||
{{! }}
|
||||
{{! Unless required by applicable law or agreed to in writing, software }}
|
||||
{{! distributed under the License is distributed on an "AS IS" BASIS, }}
|
||||
{{! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. }}
|
||||
{{! See the License for the specific language governing permissions and }}
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<ul class="dropdown menu" data-dropdown-menu data-alignment="right">
|
||||
<li>
|
||||
<a class="thin-font" href="#">
|
||||
<i class="fa fa-user fa-fw header-icon"></i>
|
||||
{{displayName}}
|
||||
</a>
|
||||
<ul class="menu">
|
||||
{{#if settingsTabEnabled}}
|
||||
<li>
|
||||
<a href="#" class="configuration">
|
||||
<i class="fa fa-fw fa-cog"></i>
|
||||
{{tr "Settings"}}
|
||||
</a>
|
||||
</li>
|
||||
{{/if}}
|
||||
<li>
|
||||
<a href="#" class="logout">
|
||||
<i class="fa fa-fw fa-power-off"></i>
|
||||
{{tr "Sign Out"}}
|
||||
</a>
|
||||
</li>
|
||||
{{#if availableViews}}
|
||||
<li>
|
||||
<a href="#">
|
||||
<i class="fa fa-fw fa-eye"></i>
|
||||
{{tr "Views"}}
|
||||
</a>
|
||||
<ul class="menu">
|
||||
{{#each availableViews}}
|
||||
<li>
|
||||
<a href="#" class="quickconf_view" view="{{this}}">
|
||||
<i class="fa fa-fw"></i>
|
||||
{{this}}
|
||||
</a>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ul>
|
||||
</li>
|
||||
{{/if}}
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a class="thin-font" id="zonelector" href="#">
|
||||
<i class="fa fa-globe fa-fw header-icon"></i>
|
||||
{{zoneName}}
|
||||
</a>
|
||||
<ul class="menu zone-ul">
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -36,9 +36,10 @@ define(function(require) {
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: Locale.tr("ACLs"),
|
||||
icon: 'fa-key',
|
||||
tabClass: "subTab",
|
||||
parentTab: "system-tab",
|
||||
listHeader: '<i class="fa fa-key"></i> '+Locale.tr("Access Control Lists"),
|
||||
parentTab: "system-top-tab",
|
||||
listHeader: Locale.tr("Access Control Lists"),
|
||||
subheader: '<span/><small></small> ',
|
||||
resource: 'Acl',
|
||||
buttons: Buttons,
|
||||
|
||||
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.tab');
|
||||
//require('foundation.tab');
|
||||
var BaseFormPanel = require('utils/form-panels/form-panel');
|
||||
var Sunstone = require('sunstone');
|
||||
var Locale = require('utils/locale');
|
||||
|
||||
@@ -44,10 +44,11 @@ define(function(require) {
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: Locale.tr("Clusters"),
|
||||
icon: 'fa-server',
|
||||
tabClass: "subTab",
|
||||
parentTab: "infra-tab",
|
||||
listHeader: '<i class="fa fa-fw fa-th"></i> '+Locale.tr("Clusters"),
|
||||
infoHeader: '<i class="fa fa-fw fa-th"></i> '+Locale.tr("Cluster"),
|
||||
parentTab: "infrastructure-top-tab",
|
||||
listHeader: Locale.tr("Clusters"),
|
||||
infoHeader: Locale.tr("Cluster"),
|
||||
subheader: '<span/> <small></small> ',
|
||||
resource: 'Cluster',
|
||||
buttons: Buttons,
|
||||
|
||||
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.tab');
|
||||
//require('foundation.tab');
|
||||
var BaseFormPanel = require('utils/form-panels/form-panel');
|
||||
var Sunstone = require('sunstone');
|
||||
var Locale = require('utils/locale');
|
||||
@@ -99,7 +99,7 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function _setup(context) {
|
||||
context.foundation('tab', 'reflow');
|
||||
Foundation.reflow(context, 'tabs')
|
||||
this.hostsTable.initialize();
|
||||
this.vnetsTable.initialize();
|
||||
this.datastoresTable.initialize();
|
||||
|
||||
@@ -21,18 +21,18 @@
|
||||
<input type="text" required name="name" id="name" />
|
||||
</div>
|
||||
<div class="medium-6 columns">
|
||||
<dl class="tabs right-info-tabs text-center right" data-tab>
|
||||
<dd class="active">
|
||||
<dl id="{{formPanelId}}Tabs" class="tabs right-info-tabs text-center right" data-tabs>
|
||||
<dd class="tabs-title is-active">
|
||||
<a href="#tab-hostsTab">
|
||||
<i class="fa fa-hdd-o"></i><br>{{tr "Hosts"}}
|
||||
</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<dd class="tabs-title">
|
||||
<a href="#tab-vnetsTab">
|
||||
<i class="fa fa-globe"></i><br>{{tr "VNets"}}
|
||||
</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<dd class="tabs-title">
|
||||
<a href="#tab-datastoresTab">
|
||||
<i class="fa fa-folder-open"></i><br>{{tr "Datastores"}}
|
||||
</a>
|
||||
@@ -40,14 +40,14 @@
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tabs-content">
|
||||
<div id="tab-hostsTab" class="active content">
|
||||
<div class="tabs-content" data-tabs-content="{{formPanelId}}Tabs">
|
||||
<div id="tab-hostsTab" class="is-active tabs-panel">
|
||||
{{{hostsTableHTML}}}
|
||||
</div>
|
||||
<div id="tab-vnetsTab" class="content">
|
||||
<div id="tab-vnetsTab" class="tabs-panel">
|
||||
{{{vnetsTableHTML}}}
|
||||
</div>
|
||||
<div id="tab-datastoresTab" class="content">
|
||||
<div id="tab-datastoresTab" class="tabs-panel">
|
||||
{{{datastoresTableHTML}}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -236,9 +236,8 @@ define(function(require) {
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
resource: 'Dashboard',
|
||||
title: '<i class="fa fa-lg fa-fw fa-tachometer"></i> ' + Locale.tr("Dashboard"),
|
||||
listHeader: '<i class="fa fa-lg fa-fw fa-tachometer"></i> ' + Locale.tr("Dashboard"),
|
||||
buttons: _buttons,
|
||||
title: Locale.tr("Dashboard"),
|
||||
listHeader: Locale.tr("Dashboard"),
|
||||
actions: _actions,
|
||||
content: _html()
|
||||
};
|
||||
|
||||
@@ -14,61 +14,38 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div class="row totals-info">
|
||||
<div class="small-12 medium-6 large-3 columns centered">
|
||||
<div class="small-12 large-12 columns text-center">
|
||||
<h2 class="subheader">
|
||||
<small>{{tr "HOSTs"}}</small>
|
||||
<br>
|
||||
<span class="total_hosts subheader"/>
|
||||
<small><i class="fa fa-fw fa-lg fa-hdd-o"></i></small>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="small-4 large-4 columns text-center">
|
||||
<h5 class="subheader">
|
||||
<span class="on_hosts subheader success-color"/>
|
||||
<br>
|
||||
<small class="success-color">{{tr "ON"}}</small>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="small-4 large-4 columns text-center">
|
||||
<h5 class="subheader">
|
||||
<span class="off_hosts subheader"/>
|
||||
<br>
|
||||
<small>{{tr "OFF"}}</small>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="small-4 large-4 columns text-center">
|
||||
<h5 class="subheader">
|
||||
<span class="error_hosts subheader alert-color"/>
|
||||
<br>
|
||||
<small class="alert-color">{{tr "ERROR"}}</small>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="small-12 large-12 columns text-center">
|
||||
<br>
|
||||
<a class="button secondary radius tiny show_hosts_tab"> <i class="fa fa-lg fa-list fa-fw"></i>
|
||||
</a>
|
||||
<a class="button secondary radius tiny show_create_host">
|
||||
<i class="fa fa-lg fa-plus fa-fw"></i><i class="fa fa-fw fa-lg fa-hdd-o"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="small-12 medium-6 large-9 columns">
|
||||
<div class="row">
|
||||
<div class="small-12 large-6 columns">
|
||||
<div id="dashboard_host_allocated_cpu" style="padding: 0px 40px"></div>
|
||||
<br>
|
||||
<div id="dashboard_host_real_cpu" style="padding: 0px 40px"></div>
|
||||
<div class="totals-info">
|
||||
<fieldset class="large-font">
|
||||
<legend>
|
||||
<ul class="menu simple">
|
||||
<li>
|
||||
{{tr "Hosts"}} <span class=" total_hosts"></span>
|
||||
</li>
|
||||
<li></li>
|
||||
<li><span>{{tr "ON"}}</span> <span class=" on_hosts success-color"></span></li>
|
||||
<li><span>{{tr "OFF"}}</span> <span class=" off_hosts"></span></li>
|
||||
<li><span>{{tr "ERROR"}}</span> <span class=" error_hosts alert-color"></span></li>
|
||||
<li></li>
|
||||
<li>
|
||||
<button class="button radius small show_hosts_tab"> <i class="fa fa-lg fa-list fa-fw"></i></button>
|
||||
<button class="button success radius small show_create_host"> <i class="fa fa-lg fa-plus fa-fw"></i></button>
|
||||
</li>
|
||||
</ul>
|
||||
</legend>
|
||||
<div class="row" id="dashboard_vm_accounting">
|
||||
<input style="display:none;" value="vm" id="acct_group_by"/>
|
||||
<div class="small-12 large-3 columns">
|
||||
<div id="dashboard_host_allocated_cpu"></div>
|
||||
</div>
|
||||
<div class="small-12 large-6 columns">
|
||||
<div id="dashboard_host_allocated_mem" style="padding: 0px 40px"></div>
|
||||
<br>
|
||||
<div id="dashboard_host_real_mem" style="padding: 0px 40px"></div>
|
||||
<div class="small-12 large-3 columns">
|
||||
<div id="dashboard_host_allocated_mem"></div>
|
||||
</div>
|
||||
<div class="small-12 large-3 columns">
|
||||
<div id="dashboard_host_real_cpu"></div>
|
||||
</div>
|
||||
<div class="small-12 large-3 columns">
|
||||
<div id="dashboard_host_real_mem"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row dashboard-widget-footer">
|
||||
<div class="small-3 large-3 columns text-center"></div>
|
||||
</fieldset>
|
||||
</div>
|
||||
@@ -13,29 +13,21 @@
|
||||
{{! See the License for the specific language governing permissions and }}
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div class="row totals-info dashboard-widget-footer">
|
||||
<div class="small-12 large-12 columns text-center">
|
||||
<h2 class="subheader">
|
||||
<small>{{tr "VNETs"}}</small>
|
||||
<br>
|
||||
<span class="total_vnets subheader"></span>
|
||||
<small><i class="fa fa-fw fa-sitemap"></i> </small>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="small-12 large-12 columns text-center">
|
||||
<h5 class="subheader">
|
||||
<span class="addresses_vnets subheader"></span>
|
||||
<br>
|
||||
<small>{{tr "USED IPs"}}</small>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="small-12 large-12 columns text-center">
|
||||
<br>
|
||||
<a class="button secondary radius tiny show_vnets_tab"> <i class="fa fa-lg fa-list fa-fw"></i>
|
||||
</a>
|
||||
<a class="button secondary radius tiny show_create_vnet">
|
||||
<i class="fa fa-lg fa-plus fa-fw"></i><i class="fa fa-fw fa-lg fa-sitemap"></i>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="totals-info">
|
||||
<fieldset class="large-font">
|
||||
<legend>
|
||||
<ul class="menu simple">
|
||||
<li>
|
||||
{{tr "Virtual Networks"}} <span class=" total_vnets"></span>
|
||||
</li>
|
||||
<li></li>
|
||||
<li><span>{{tr "USED IPs"}}</span> <span class="addresses_vnets"></span></li>
|
||||
<li></li>
|
||||
<li>
|
||||
<button class="button radius small show_vnets_tab"> <i class="fa fa-lg fa-list fa-fw"></i></button>
|
||||
<button class="button success radius small show_create_vnet"> <i class="fa fa-lg fa-plus fa-fw"></i></button>
|
||||
</li>
|
||||
</ul>
|
||||
</legend>
|
||||
</fieldset>
|
||||
</div>
|
||||
@@ -13,29 +13,21 @@
|
||||
{{! See the License for the specific language governing permissions and }}
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div class="row totals-info dashboard-widget-footer">
|
||||
<div class="small-12 large-12 columns text-center">
|
||||
<h2 class="subheader">
|
||||
<small>{{tr "IMAGES"}}</small>
|
||||
<br>
|
||||
<span class="total_images subheader"></span>
|
||||
<small><i class="fa fa-fw fa-upload"></i> </small>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="small-12 large-12 columns text-center">
|
||||
<h5 class="subheader">
|
||||
<span class="size_images subheader"></span>
|
||||
<br>
|
||||
<small>{{tr "USED"}}</small>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="small-12 large-12 columns text-center">
|
||||
<br>
|
||||
<a class="button secondary radius tiny show_images_tab"> <i class="fa fa-lg fa-list fa-fw"></i>
|
||||
</a>
|
||||
<a class="button secondary radius tiny show_create_image">
|
||||
<i class="fa fa-lg fa-plus fa-fw"></i><i class="fa fa-fw fa-lg fa-upload"></i>
|
||||
</a>
|
||||
</div>
|
||||
<div class="totals-info">
|
||||
<fieldset class="large-font">
|
||||
<legend>
|
||||
<ul class="menu simple">
|
||||
<li>
|
||||
{{tr "Images"}} <span class=" total_images"></span>
|
||||
</li>
|
||||
<li></li>
|
||||
<li><span>{{tr "USED"}}</span> <span class="size_images"></span></li>
|
||||
<li></li>
|
||||
<li>
|
||||
<button class="button radius small show_images_tab"> <i class="fa fa-lg fa-list fa-fw"></i></button>
|
||||
<button class="button success radius small show_create_image"> <i class="fa fa-lg fa-plus fa-fw"></i></button>
|
||||
</li>
|
||||
</ul>
|
||||
</legend>
|
||||
</fieldset>
|
||||
</div>
|
||||
@@ -14,45 +14,41 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div class="row totals-info">
|
||||
<div class="large-3 medium-6 small-12 columns">
|
||||
<br>
|
||||
<div class="small-12 large-12 columns text-center">
|
||||
<h2 class="subheader">
|
||||
<small>{{tr "USERS"}}</small>
|
||||
<br>
|
||||
<span class="subheader total_users">-</span>
|
||||
<small><i class="fa fa-fw fa-user"></i> </small>
|
||||
</h2>
|
||||
<div class="totals-info">
|
||||
<fieldset class="large-font">
|
||||
<legend>
|
||||
<ul class="menu simple">
|
||||
<li>
|
||||
{{tr "Users"}} <span class=" total_users"></span>
|
||||
</li>
|
||||
<li></li>
|
||||
<li>
|
||||
<button class="button radius small show_users_tab"> <i class="fa fa-lg fa-list fa-fw"></i></button>
|
||||
<button class="button success radius small show_create_user"> <i class="fa fa-lg fa-plus fa-fw"></i></button>
|
||||
</li>
|
||||
</ul>
|
||||
</legend>
|
||||
<div class="row" id="dashboard_vdc_user_accounting">
|
||||
<input style="display:none;" value="user" id="acct_group_by"/>
|
||||
<div class="small-12 large-4 columns">
|
||||
<h5>
|
||||
<small>{{tr "CPU hours"}}</small>
|
||||
</h5>
|
||||
<div class="large-12 columns centered graph text-center" id="acct_cpu_graph">{{> ./empty-graph}}</div>
|
||||
</div>
|
||||
<div class="small-12 large-4 columns">
|
||||
<h5>
|
||||
<small>{{tr "Memory GB hours"}}</small>
|
||||
</h5>
|
||||
<div class="large-12 columns centered graph text-center" id="acct_mem_graph">{{> ./empty-graph}}</div>
|
||||
</div>
|
||||
<div class="small-12 large-4 columns">
|
||||
<h5>
|
||||
<small>{{tr "Disk MB hours"}}</small>
|
||||
</h5>
|
||||
<div class="large-12 columns centered graph text-center" id="acct_disk_graph">{{> ./empty-graph}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="small-12 large-12 columns text-center" style="margin-top: 20px">
|
||||
<a class="button secondary radius tiny show_users_tab"> <i class="fa fa-lg fa-list fa-fw"></i></a>
|
||||
<a class="button secondary radius tiny show_create_user">
|
||||
<i class="fa fa-lg fa-plus fa-fw"></i><i class="fa fa-fw fa-lg fa-user"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="large-9 medium-6 small-12 columns text-center" id="dashboard_vdc_user_accounting">
|
||||
<input style="display:none;" value="user" id="acct_group_by"/>
|
||||
<div class="small-12 large-6 columns">
|
||||
<h4 class="subheader" style="margin-bottom: 0px">
|
||||
<small>{{tr "CPU hours"}}</small>
|
||||
</h4>
|
||||
<div class="large-12 columns centered graph text-center" id="acct_cpu_graph" style="height: 100px;">{{> ./empty-graph}}</div>
|
||||
</div>
|
||||
<div class="small-12 large-6 columns">
|
||||
<h4 class="subheader" style="margin-bottom: 0px">
|
||||
<small>{{tr "Memory GB hours"}}</small>
|
||||
</h4>
|
||||
<div class="large-12 columns centered graph text-center" id="acct_mem_graph" style="height: 100px;">{{> ./empty-graph}}</div>
|
||||
</div>
|
||||
<div class="small-12 large-6 left columns">
|
||||
<h4 class="subheader" style="margin-bottom: 0px">
|
||||
<small>{{tr "Disk MB hours"}}</small>
|
||||
</h4>
|
||||
<div class="large-12 columns centered graph text-center" id="acct_disk_graph" style="height: 100px;">{{> ./empty-graph}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row dashboard-widget-footer">
|
||||
<div class="small-3 large-3 columns text-center"></div>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
@@ -14,68 +14,44 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div class="row totals-info">
|
||||
<div class="small-12 medium-6 large-3 columns">
|
||||
<br>
|
||||
<div class="small-12 large-12 columns text-center">
|
||||
<h2 class="subheader">
|
||||
<small>{{tr "VMs"}}</small>
|
||||
<br>
|
||||
<span class="subheader total_vms"></span>
|
||||
<small><i class="fa fa-fw fa-th"></i></small>
|
||||
</h2>
|
||||
<div class="totals-info">
|
||||
<fieldset class="large-font">
|
||||
<legend>
|
||||
<ul class="menu simple">
|
||||
<li>
|
||||
{{tr "VMs"}} <span class=" total_vms"></span>
|
||||
</li>
|
||||
<li></li>
|
||||
<li><span>{{tr "ACTIVE"}}</span> <span class=" active_vms success-color"></span></li>
|
||||
<li><span>{{tr "PENDING"}}</span> <span class=" pending_vms"></span></li>
|
||||
<li><span>{{tr "FAILED"}}</span> <span class=" failed_vms alert-color"></span></li>
|
||||
<li></li>
|
||||
<li>
|
||||
<button class="button radius small show_vms_tab"> <i class="fa fa-lg fa-list fa-fw"></i></button>
|
||||
<button class="button success radius small show_create_vm"> <i class="fa fa-lg fa-plus fa-fw"></i></button>
|
||||
</li>
|
||||
</ul>
|
||||
</legend>
|
||||
<div class="row" id="dashboard_vm_accounting">
|
||||
<input style="display:none;" value="vm" id="acct_group_by"/>
|
||||
<div class="small-12 large-4 columns">
|
||||
<h5>
|
||||
<small>{{tr "CPU hours"}}</small>
|
||||
</h5>
|
||||
<div class="large-12 columns centered graph text-center" id="acct_cpu_graph" style="height: 100px;">{{> ./empty-graph}}</div>
|
||||
</div>
|
||||
<div class="small-12 large-4 columns">
|
||||
<h5>
|
||||
<small>{{tr "Memory GB hours"}}</small>
|
||||
</h5>
|
||||
<div class="large-12 columns centered graph text-center" id="acct_mem_graph" style="height: 100px;">{{> ./empty-graph}}</div>
|
||||
</div>
|
||||
<div class="small-12 large-4 columns">
|
||||
<h5>
|
||||
<small>{{tr "Disk MB hours"}}</small>
|
||||
</h5>
|
||||
<div class="large-12 columns centered graph text-center" id="acct_disk_graph" style="height: 100px;">{{> ./empty-graph}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="small-4 large-4 columns text-center">
|
||||
<h5 class="subheader">
|
||||
<span class="subheader active_vms success-color"></span>
|
||||
<br>
|
||||
<small class="success-color">{{tr "ACTIVE"}}</small>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="small-4 large-4 columns text-center">
|
||||
<h5 class="subheader">
|
||||
<span class="subheader pending_vms"></span>
|
||||
<br>
|
||||
<small>{{tr "PENDING"}}</small>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="small-4 large-4 columns text-center">
|
||||
<h5 class="subheader">
|
||||
<span class="subheader failed_vms alert-color"></span>
|
||||
<br>
|
||||
<small class="alert-color">{{tr "FAILED"}}</small>
|
||||
</h5>
|
||||
</div>
|
||||
<div class="small-12 large-12 columns text-center" style="margin-top: 20px">
|
||||
<a class="button secondary radius tiny show_vms_tab"> <i class="fa fa-lg fa-list fa-fw"></i>
|
||||
</a>
|
||||
<a class="button secondary radius tiny show_create_vm">
|
||||
<i class="fa fa-lg fa-plus fa-fw"></i><i class="fa fa-fw fa-lg fa-th"></i></a>
|
||||
<br>
|
||||
</div>
|
||||
</div>
|
||||
<div class="large-9 medium-6 small-12 columns text-center" id="dashboard_vm_accounting">
|
||||
<input style="display:none;" value="vm" id="acct_group_by"/>
|
||||
<div class="small-12 large-6 columns">
|
||||
<h4 class="subheader" style="margin-bottom: 0px">
|
||||
<small>{{tr "CPU hours"}}</small>
|
||||
</h4>
|
||||
<div class="large-12 columns centered graph text-center" id="acct_cpu_graph" style="height: 100px;">{{> ./empty-graph}}</div>
|
||||
</div>
|
||||
<div class="small-12 large-6 columns">
|
||||
<h4 class="subheader" style="margin-bottom: 0px">
|
||||
<small>{{tr "Memory GB hours"}}</small>
|
||||
</h4>
|
||||
<div class="large-12 columns centered graph text-center" id="acct_mem_graph" style="height: 100px;">{{> ./empty-graph}}</div>
|
||||
</div>
|
||||
<div class="small-12 large-6 left columns">
|
||||
<h4 class="subheader" style="margin-bottom: 0px">
|
||||
<small>{{tr "Disk MB hours"}}</small>
|
||||
</h4>
|
||||
<div class="large-12 columns centered graph text-center" id="acct_disk_graph" style="height: 100px;">{{> ./empty-graph}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row dashboard-widget-footer">
|
||||
<div class="small-3 large-3 columns text-center"></div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
@@ -43,10 +43,11 @@ define(function(require) {
|
||||
var DatastoresTab = {
|
||||
tabId: TAB_ID,
|
||||
title: Locale.tr("Datastores"),
|
||||
icon: 'fa-folder-open',
|
||||
tabClass: "subTab",
|
||||
parentTab: "infra-tab",
|
||||
listHeader: '<i class="fa fa-fw fa-folder-open"></i> ' + Locale.tr("Datastores"),
|
||||
infoHeader: '<i class="fa fa-fw fa-folder-open"></i> ' + Locale.tr("Datastore"),
|
||||
parentTab: "storage-top-tab",
|
||||
listHeader: Locale.tr("Datastores"),
|
||||
infoHeader: Locale.tr("Datastore"),
|
||||
subheader: '',
|
||||
resource: 'Datastore',
|
||||
buttons: Buttons,
|
||||
|
||||
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.tab');
|
||||
//require('foundation.tab');
|
||||
var BaseFormPanel = require('utils/form-panels/form-panel');
|
||||
var Sunstone = require('sunstone');
|
||||
var Locale = require('utils/locale');
|
||||
|
||||
@@ -39,11 +39,12 @@ define(function(require) {
|
||||
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: Locale.tr("Files & Kernels"),
|
||||
title: Locale.tr("Files"),
|
||||
icon: 'fa-archive',
|
||||
tabClass: "subTab",
|
||||
parentTab: "vresources-tab",
|
||||
listHeader: '<i class="fa fa-fw fa-folder-open"></i> ' + Locale.tr("Files & Kernels"),
|
||||
infoHeader: '<i class="fa fa-fw fa-folder-open"></i> ' + Locale.tr("File"),
|
||||
parentTab: "storage-top-tab",
|
||||
listHeader: Locale.tr("Files"),
|
||||
infoHeader: Locale.tr("File"),
|
||||
subheader: '',
|
||||
resource: 'File',
|
||||
content: '<div class="large-12 columns">\
|
||||
|
||||
@@ -46,10 +46,11 @@ define(function(require) {
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: Locale.tr("Groups"),
|
||||
icon: 'fa-users',
|
||||
tabClass: "subTab",
|
||||
parentTab: "system-tab",
|
||||
listHeader: '<i class="fa fa-fw fa-users"></i> '+Locale.tr("Groups"),
|
||||
infoHeader: '<i class="fa fa-fw fa-users"></i> '+Locale.tr("Group"),
|
||||
parentTab: "system-top-tab",
|
||||
listHeader: Locale.tr("Groups"),
|
||||
infoHeader: Locale.tr("Group"),
|
||||
subheader: '<span>\
|
||||
<span class="total_groups"/> <small>'+Locale.tr("TOTAL")+'</small>\
|
||||
</span>',
|
||||
|
||||
@@ -63,7 +63,7 @@ define(function(require) {
|
||||
function _html() {
|
||||
return TemplateHTML({
|
||||
'dialogId': this.dialogId,
|
||||
'quotasHTML': QuotaWidgets.dialogHTML()
|
||||
'quotasHTML': QuotaWidgets.dialogHTML(this.dialogId)
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.tab');
|
||||
// require('foundation.tab');
|
||||
var BaseFormPanel = require('utils/form-panels/form-panel');
|
||||
var Sunstone = require('sunstone');
|
||||
var Locale = require('utils/locale');
|
||||
@@ -146,7 +146,9 @@ define(function(require) {
|
||||
function _setup(context) {
|
||||
var that = this;
|
||||
|
||||
context.foundation('tab', 'reflow');
|
||||
//context.foundation('tabs');
|
||||
Foundation.reflow(context, 'tabs');
|
||||
|
||||
this.userCreation.setup( $("#admin_user_wrapper",context) );
|
||||
Tips.setup(context);
|
||||
|
||||
|
||||
@@ -13,164 +13,200 @@
|
||||
{{! See the License for the specific language governing permissions and }}
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<form data-abide="ajax" id="{{formPanelId}}Wizard" class="custom creation">
|
||||
<div class="row">
|
||||
<div class="columns medium-5">
|
||||
<label>{{tr "Name"}}:
|
||||
<label>
|
||||
{{tr "Name"}}:
|
||||
<input required type="text" name="name" id="name" />
|
||||
</label>
|
||||
</div>
|
||||
<div class="columns medium-7">
|
||||
<dl class="tabs right-info-tabs text-center right" data-tab>
|
||||
<dd class="active"><a href="#resource_views"><i class="fa fa-eye"></i><br>{{tr "Views"}}</a></dd>
|
||||
<dd><a href="#administrators"><i class="fa fa-upload"></i><br>{{tr "Admin"}}</a></dd>
|
||||
<dd><a href="#resource_creation"><i class="fa fa-folder-open"></i><br>{{tr "Permissions"}}</a></dd>
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tabs-content">
|
||||
<div id="resource_views" class="content active">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<p class="subheader">
|
||||
{{tr "Allow users in this group to use the following Sunstone views"}}
|
||||
 <span class="tip">{{tr "Views available to the group users. If the default is unset, the one set in sunstone-views.yaml will be used"}}</span>
|
||||
</p>
|
||||
</div>
|
||||
<dl id="{{formPanelId}}Tabs" class="tabs right-info-tabs text-center right" data-tabs>
|
||||
<dd class="tabs-title is-active">
|
||||
<a href="#resource_views"> <i class="fa fa-eye"></i>
|
||||
<br>{{tr "Views"}}</a>
|
||||
</dd>
|
||||
<dd class="tabs-title">
|
||||
<a href="#administrators"> <i class="fa fa-upload"></i>
|
||||
<br>{{tr "Admin"}}</a>
|
||||
</dd>
|
||||
<dd class="tabs-title">
|
||||
<a href="#resource_creation">
|
||||
<i class="fa fa-folder-open"></i>
|
||||
<br>{{tr "Permissions"}}</a>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<div class="row">
|
||||
<div class="medium-6 columns">
|
||||
<label for="user_view_default">{{tr "Default Users View"}}
|
||||
</label>
|
||||
<select id="user_view_default">
|
||||
</select>
|
||||
</div>
|
||||
<div class="medium-6 columns">
|
||||
<label for="admin_view_default">{{tr "Default Admin View"}}
|
||||
</label>
|
||||
<select id="admin_view_default">
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tabs-content" data-tabs-content="{{formPanelId}}Tabs">
|
||||
<div id="resource_views" class="tabs-panel is-active">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<p class="subheader">
|
||||
{{tr "Allow users in this group to use the following Sunstone views"}}
|
||||
 
|
||||
<span class="tip">
|
||||
{{tr "Views available to the group users. If the default is unset, the one set in sunstone-views.yaml will be used"}}
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
<br>
|
||||
{{#each viewTypes}}
|
||||
<div class="row">
|
||||
<div class="large-7 columns">
|
||||
<h4>{{name}}
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<div class="row">
|
||||
<div class="medium-6 columns">
|
||||
<label for="user_view_default">{{tr "Default Users View"}}</label>
|
||||
<select id="user_view_default"></select>
|
||||
</div>
|
||||
<div class="medium-6 columns">
|
||||
<label for="admin_view_default">{{tr "Default Admin View"}}</label>
|
||||
<select id="admin_view_default"></select>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
{{#each viewTypes}}
|
||||
<div class="row">
|
||||
<div class="large-7 columns">
|
||||
<h4>
|
||||
{{name}}
|
||||
{{#if description}}
|
||||
<span class="tip">{{description}}</span>
|
||||
{{/if}}
|
||||
</h4>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<th style='width: 60%;'></th>
|
||||
<th>{{tr "Group Users"}}</th>
|
||||
<th>{{tr "Group Admins"}}</th>
|
||||
</tr>
|
||||
{{#each views}}
|
||||
<tr>
|
||||
<td>
|
||||
{{name}} {{tr "View"}}
|
||||
<span class="tip">{{description}}</span>
|
||||
{{/if}}
|
||||
</h4>
|
||||
<table class="dataTable">
|
||||
<tr>
|
||||
<th style='width: 60%;'></th>
|
||||
<th>{{tr "Group Users"}}</th>
|
||||
<th>{{tr "Group Admins"}}</th>
|
||||
</tr>
|
||||
{{#each views}}
|
||||
<tr>
|
||||
<td>
|
||||
{{name}} {{tr "View"}}
|
||||
{{#if description}}
|
||||
<span class="tip">{{description}}</span>
|
||||
{{/if}}
|
||||
</td>
|
||||
<td>
|
||||
<input class="user_view_input" type="checkbox"
|
||||
<span class="tip">{{description}}</span>
|
||||
{{/if}}
|
||||
</td>
|
||||
<td>
|
||||
<input class="user_view_input" type="checkbox"
|
||||
id="group_view_{{id}}"
|
||||
value="{{id}}"/>
|
||||
</td>
|
||||
<td>
|
||||
<input class="admin_view_input" type="checkbox"
|
||||
</td>
|
||||
<td>
|
||||
<input class="admin_view_input" type="checkbox"
|
||||
id="group_admin_view_{{id}}"
|
||||
value="{{id}}"/>
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</table>
|
||||
</div>
|
||||
<div class="large-5 columns" style="text-align: center">
|
||||
{{#if preview}}
|
||||
<img src="images/{{preview}}" style="height: 200px;">{{/if}}</div>
|
||||
</div>
|
||||
<br>{{/each}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="administrators" class="tabs-panel">
|
||||
<div class="row">
|
||||
<div class="medium-6 columns" id="admin_user_wrapper">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label>
|
||||
<input type="checkbox" id="admin_user" name="admin_user" value="YES" />
|
||||
{{tr "Create an administrator user"}}
|
||||
<span class="tip">
|
||||
{{tr "You can create now an administrator user. More administrators can be added later."}}
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
{{{userCreationHTML}}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="resource_creation" class="tabs-panel">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label>
|
||||
<input type="checkbox" id="shared_resources" name="shared_resources" value="YES" />
|
||||
{{tr "Allow users to view the VMs and Services of other users in the same group"}}
|
||||
<span class="tip">
|
||||
{{tr "An ACL Rule will be created to give users in this group access to all the resources in the same group."}}
|
||||
</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<p class="subheader">
|
||||
{{tr "Allow users in this group to create the following resources"}}
|
||||
 
|
||||
<span class="tip">
|
||||
{{tr "This will create new ACL Rules to define which virtual resources this group's users will be able to create."}}
|
||||
</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<table class="dataTable" style="table-layout:fixed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{tr "VMs"}}</th>
|
||||
<th>{{tr "VNets"}}</th>
|
||||
<th>{{tr "Security Groups"}}</th>
|
||||
<th>{{tr "Virtual Routers"}}</th>
|
||||
<th>{{tr "Images"}}</th>
|
||||
<th>{{tr "Templates"}}</th>
|
||||
<th>
|
||||
{{tr "Documents"}}
|
||||
<span class="tip">
|
||||
{{tr "Documents are a special tool used for general purposes, mainly by OneFlow. If you want to enable users of this group to use service composition via OneFlow, let it checked."}}
|
||||
</span>
|
||||
</th>
|
||||
</tr>
|
||||
{{/each}}
|
||||
</table>
|
||||
</div>
|
||||
<div class="large-5 columns" style="text-align: center">
|
||||
{{#if preview}}
|
||||
<img src="images/{{preview}}" style="height: 200px;">
|
||||
{{/if}}
|
||||
</div>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" id="group_res_vm" name="group_res_vm" class="resource_cb" value="VM"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" id="group_res_net" name="group_res_net" class="resource_cb" value="NET"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" id="group_res_sg" name="group_res_sg" class="resource_cb" value="SECGROUP"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" id="group_res_vr" name="group_res_vr" class="resource_cb" value="VROUTER"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" id="group_res_image" name="group_res_image" class="resource_cb" value="IMAGE"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" id="group_res_template" name="group_res_template" class="resource_cb" value="TEMPLATE"/>
|
||||
</td>
|
||||
<td>
|
||||
<input type="checkbox" id="group_res_document" name="group_res_document" class="resource_cb" value="DOCUMENT"/>
|
||||
</td>
|
||||
<td/>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<br>
|
||||
{{/each}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="administrators" class=" content">
|
||||
<div class="row">
|
||||
<div class="medium-6 columns" id="admin_user_wrapper">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label>
|
||||
<input type="checkbox" id="admin_user" name="admin_user" value="YES" />
|
||||
{{tr "Create an administrator user"}}
|
||||
<span class="tip">{{tr "You can create now an administrator user. More administrators can be added later."}}</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
{{{userCreationHTML}}}
|
||||
<div class="reveal-footer">
|
||||
<div class="row collapse" id="default_vdc_warning">
|
||||
<div class="large-12 columns text-right">
|
||||
<span class="radius secondary label">
|
||||
<i class="fa fa-warning"/>{{tr "New Groups are automatically added to the default VDC"}}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="resource_creation" class="content">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label>
|
||||
<input type="checkbox" id="shared_resources" name="shared_resources" value="YES" />
|
||||
{{tr "Allow users to view the VMs and Services of other users in the same group"}}
|
||||
<span class="tip">{{tr "An ACL Rule will be created to give users in this group access to all the resources in the same group."}}</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<p class="subheader">
|
||||
{{tr "Allow users in this group to create the following resources"}}
|
||||
 <span class="tip">{{tr "This will create new ACL Rules to define which virtual resources this group's users will be able to create."}}</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<table class="dataTable" style="table-layout:fixed">
|
||||
<thead><tr>
|
||||
<th>{{tr "VMs"}}</th>
|
||||
<th>{{tr "VNets"}}</th>
|
||||
<th>{{tr "Security Groups"}}</th>
|
||||
<th>{{tr "Virtual Routers"}}</th>
|
||||
<th>{{tr "Images"}}</th>
|
||||
<th>{{tr "Templates"}}</th>
|
||||
<th>{{tr "Documents"}}<span class="tip">{{tr "Documents are a special tool used for general purposes, mainly by OneFlow. If you want to enable users of this group to use service composition via OneFlow, let it checked."}}</span></th>
|
||||
</tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="checkbox" id="group_res_vm" name="group_res_vm" class="resource_cb" value="VM"></input></td>
|
||||
<td><input type="checkbox" id="group_res_net" name="group_res_net" class="resource_cb" value="NET"></input></td>
|
||||
<td><input type="checkbox" id="group_res_sg" name="group_res_sg" class="resource_cb" value="SECGROUP"></input></td>
|
||||
<td><input type="checkbox" id="group_res_vr" name="group_res_vr" class="resource_cb" value="VROUTER"></input></td>
|
||||
<td><input type="checkbox" id="group_res_image" name="group_res_image" class="resource_cb" value="IMAGE"></input></td>
|
||||
<td><input type="checkbox" id="group_res_template" name="group_res_template" class="resource_cb" value="TEMPLATE"></input></td>
|
||||
<td><input type="checkbox" id="group_res_document" name="group_res_document" class="resource_cb" value="DOCUMENT"></input></td>
|
||||
<td/>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="reveal-footer">
|
||||
<div class="row collapse" id="default_vdc_warning">
|
||||
<div class="large-12 columns text-right">
|
||||
<span class="radius secondary label"><i class="fa fa-warning"/> {{tr "New Groups are automatically added to the default VDC"}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
@@ -48,10 +48,11 @@ define(function(require) {
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: Locale.tr("Hosts"),
|
||||
icon: 'fa-hdd-o',
|
||||
tabClass: "subTab",
|
||||
parentTab: "infra-tab",
|
||||
listHeader: '<i class="fa fa-fw fa-hdd-o"></i> ' + Locale.tr("Hosts"),
|
||||
infoHeader: '<i class="fa fa-fw fa-hdd-o"></i> ' + Locale.tr("Host"),
|
||||
parentTab: "infrastructure-top-tab",
|
||||
listHeader: Locale.tr("Hosts"),
|
||||
infoHeader: Locale.tr("Host"),
|
||||
subheader: '<span class="total_hosts"/> <small>' + Locale.tr("TOTAL") + '</small> \
|
||||
<span class="on_hosts"/> <small>' + Locale.tr("ON") + '</small> \
|
||||
<span class="off_hosts"/> <small>' + Locale.tr("OFF") + '</small> \
|
||||
|
||||
@@ -200,8 +200,8 @@ define(function(require) {
|
||||
$("#dashboard_host_allocated_cpu").html(quotaDashboard(
|
||||
"dashboard_host_allocated_cpu",
|
||||
Locale.tr("Allocated CPU"),
|
||||
"30px",
|
||||
"14px",
|
||||
"1.2rem",
|
||||
"1rem",
|
||||
{"percentage": ratio_allocated_cpu, "str": info_str})
|
||||
);
|
||||
|
||||
@@ -216,8 +216,8 @@ define(function(require) {
|
||||
$("#dashboard_host_real_cpu").html(quotaDashboard(
|
||||
"dashboard_host_real_cpu",
|
||||
Locale.tr("Real CPU"),
|
||||
"30px",
|
||||
"14px",
|
||||
"1.2rem",
|
||||
"1rem",
|
||||
{"percentage": ratio_real_cpu, "str": info_str})
|
||||
);
|
||||
|
||||
@@ -232,8 +232,8 @@ define(function(require) {
|
||||
$("#dashboard_host_allocated_mem").html(quotaDashboard(
|
||||
"dashboard_host_allocated_mem",
|
||||
Locale.tr("Allocated Memory"),
|
||||
"30px",
|
||||
"14px",
|
||||
"1.2rem",
|
||||
"1rem",
|
||||
{"percentage": ratio_allocated_mem, "str": info_str})
|
||||
);
|
||||
|
||||
@@ -248,8 +248,8 @@ define(function(require) {
|
||||
$("#dashboard_host_real_mem").html(quotaDashboard(
|
||||
"dashboard_host_real_mem",
|
||||
Locale.tr("Real Memory"),
|
||||
"30px",
|
||||
"14px",
|
||||
"1.2rem",
|
||||
"1rem",
|
||||
{"percentage": ratio_real_mem, "str": info_str})
|
||||
);
|
||||
|
||||
@@ -259,23 +259,20 @@ define(function(require) {
|
||||
var percentage = quota.percentage > 100 ? 100 : quota.percentage;
|
||||
|
||||
return '<div class="row">' +
|
||||
'<div class="large-12 columns text-center" style="margin-bottom: 5px">' +
|
||||
'<h4 class="subheader">'+
|
||||
'<div class="large-12 columns">' +
|
||||
'<h5 class="subheader">'+
|
||||
'<small>'+ legend +'</small>'+
|
||||
'</h4>'+
|
||||
'</h5>'+
|
||||
'</div>' +
|
||||
'</div>' +
|
||||
'<div class="row">' +
|
||||
'<div class="large-12 columns text-center">' +
|
||||
'<div class="progress large radius">' +
|
||||
' <span id="' + html_tag + '_meter" class="meter" style="width: ' + percentage + '%"></span>' +
|
||||
'</div>' +
|
||||
'<div class="large-12 columns">' +
|
||||
' <meter id="' + html_tag + '_meter" min="0" low="33" high="66" optimum="0" max="100" value="' + percentage + '"></meter>' +
|
||||
'</div>' +
|
||||
'</div>' +
|
||||
'<div class="row">' +
|
||||
'<div class="large-12 columns text-center">' +
|
||||
'<span id="' + html_tag + '_percentage" class="left" style="font-size:' + font_small_size + ';">' + quota.percentage + ' %</span>' +
|
||||
'<span id="' + html_tag + '_str" class="right" style="color: #999; font-size: ' + font_small_size + ';">' + quota.str + '</span>' +
|
||||
'<div class="large-12 columns">' +
|
||||
'<span id="' + html_tag + '_str" class="right">' + quota.str + '</span>' +
|
||||
'</div>' +
|
||||
'</div>';
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="row vcenter_credentials hidden">
|
||||
<div class="row vcenter_credentials" hidden>
|
||||
<fieldset>
|
||||
<legend>{{tr "vCenter"}}</legend>
|
||||
<div class="row">
|
||||
@@ -135,7 +135,7 @@
|
||||
<div>
|
||||
{{{vCenterNetworksHTML}}}
|
||||
</div>
|
||||
<div class="row import_vcenter_clusters_div hidden">
|
||||
<div class="row import_vcenter_clusters_div" hidden>
|
||||
<div class="large-12 columns">
|
||||
<br>
|
||||
<a class="button radius small right success" id="import_vcenter_clusters">{{tr "Import"}}</a>
|
||||
|
||||
@@ -19,7 +19,8 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation-datatables');
|
||||
require('datatables.net');
|
||||
require('datatables.foundation');
|
||||
var Locale = require('utils/locale');
|
||||
var CPUBars = require('../utils/cpu-bars');
|
||||
var MemoryBars = require('../utils/memory-bars');
|
||||
|
||||
@@ -19,7 +19,8 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation-datatables');
|
||||
require('datatables.net');
|
||||
require('datatables.foundation');
|
||||
var Locale = require('utils/locale');
|
||||
var CanImportWilds = require('../utils/can-import-wilds');
|
||||
var OpenNebulaHost = require('opennebula/host');
|
||||
@@ -78,6 +79,7 @@ define(function(require) {
|
||||
that.dataTableWildHosts = $("#datatable_host_wilds", context).dataTable({
|
||||
"bSortClasses" : false,
|
||||
"bDeferRender": true,
|
||||
"bAutoWidth": false,
|
||||
"aoColumnDefs": [
|
||||
{"bSortable": false, "aTargets": [0]},
|
||||
{"sWidth": "35px", "aTargets": [0]}
|
||||
|
||||
@@ -45,10 +45,11 @@ define(function(require) {
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: Locale.tr("Images"),
|
||||
icon: 'fa-download',
|
||||
tabClass: "subTab",
|
||||
parentTab: "vresources-tab",
|
||||
listHeader: '<i class="fa fa-fw fa-upload"></i> ' + Locale.tr("Images"),
|
||||
infoHeader: '<i class="fa fa-fw fa-upload"></i> ' + Locale.tr("Image"),
|
||||
parentTab: "storage-top-tab",
|
||||
listHeader: Locale.tr("Images"),
|
||||
infoHeader: Locale.tr("Image"),
|
||||
subheader: '',
|
||||
resource: 'Image',
|
||||
content: '<div id="upload_progress_bars" class="large-12 columns"></div>',
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div id="{{dialogId}}" class="reveal-modal large" role="dialog" data-reveal >
|
||||
<div id="{{dialogId}}" class="reveal large" data-reveal>
|
||||
<div class="row">
|
||||
<h3 class="subheader">{{tr "Clone Image"}}</h3>
|
||||
</div>
|
||||
@@ -49,6 +49,8 @@
|
||||
<div class="form_buttons row">
|
||||
<button class="button radius right" id="image_clone_button" value="Image.clone">{{tr "Clone"}}</button>
|
||||
</div>
|
||||
<a class="close-reveal-modal">×</a>
|
||||
<button class="close-button" data-close aria-label="{{tr "Close modal"}}" type="button">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
+2
-2
@@ -16,11 +16,11 @@
|
||||
|
||||
define(function(require) {
|
||||
var Locale = require('utils/locale');
|
||||
var TAB_ID = 'infra-tab';
|
||||
var TAB_ID = 'infrastructure-top-tab';
|
||||
|
||||
var InfraTab = {
|
||||
tabId: TAB_ID,
|
||||
title: '<i class="fa fa-lg fa-fw fa-sitemap"></i> ' + Locale.tr("Infrastructure"),
|
||||
title: Locale.tr("Infrastructure"),
|
||||
no_content: true
|
||||
}
|
||||
|
||||
+2
-2
@@ -16,11 +16,11 @@
|
||||
|
||||
define(function(require) {
|
||||
var Locale = require('utils/locale');
|
||||
var TAB_ID = 'system-tab';
|
||||
var TAB_ID = 'instances-top-tab';
|
||||
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: '<i class="fa fa-lg fa-fw fa-cogs"></i> '+Locale.tr("System"),
|
||||
title: Locale.tr("Instances"),
|
||||
no_content: true
|
||||
}
|
||||
|
||||
@@ -42,10 +42,13 @@ define(function(require) {
|
||||
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: '<i class="fa fa-lg fa-fw fa-shopping-cart"></i> ' + Locale.tr("Apps"),
|
||||
listHeader: '<i class="fa fa-fw fa-shopping-cart"></i> '+Locale.tr("Apps"),
|
||||
infoHeader: '<i class="fa fa-fw fa-shopping-cart"></i> '+Locale.tr("App"),
|
||||
subheader: '<span/> <small></small> ',
|
||||
title: Locale.tr("Apps"),
|
||||
icon: 'fa-cloud-download',
|
||||
tabClass: "subTab",
|
||||
parentTab: "storage-top-tab",
|
||||
listHeader: Locale.tr("Apps"),
|
||||
infoHeader: Locale.tr("App"),
|
||||
subheader: '',
|
||||
resource: 'MarketPlaceApp',
|
||||
buttons: Buttons,
|
||||
actions: Actions,
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
</label>
|
||||
<input id="NAME" type="text" wizard_field="NAME" required/>
|
||||
</div>
|
||||
<div class="medium-3 columns hidden">
|
||||
<div class="medium-3 columns" hidden>
|
||||
<label for="TYPE">{{tr "Type"}}</label>
|
||||
<select id="TYPE" wizard_field="TYPE" required>
|
||||
<option value="image">{{tr "Image"}}</option>
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<textarea rows="6" type="text" id="appTemplate_textarea" class="hidden">{{appTemplate}}</textarea>
|
||||
<textarea rows="6" type="text" id="appTemplate_textarea" hidden>{{appTemplate}}</textarea>
|
||||
{{#if appTemplate}}
|
||||
<pre id="appTemplate_text" class="info_text">
|
||||
{{~htmlDecode appTemplate~}}
|
||||
@@ -48,7 +48,7 @@
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
<textarea rows="6" type="text" id="vmTemplate_textarea" class="hidden">{{vmTemplate}}</textarea>
|
||||
<textarea rows="6" type="text" id="vmTemplate_textarea" hidden>{{vmTemplate}}</textarea>
|
||||
{{#if vmTemplate}}
|
||||
<pre id="vmTemplate_text" class="info_text">
|
||||
{{~htmlDecode vmTemplate~}}
|
||||
|
||||
@@ -41,10 +41,13 @@ define(function(require) {
|
||||
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: '<i class="fa fa-lg fa-fw fa-shopping-cart"></i> ' + Locale.tr("MarketPlaces"),
|
||||
listHeader: '<i class="fa fa-fw fa-shopping-cart"></i> '+Locale.tr("MarketPlaces"),
|
||||
infoHeader: '<i class="fa fa-fw fa-shopping-cart"></i> '+Locale.tr("MarketPlace"),
|
||||
subheader: '<span/> <small></small> ',
|
||||
title: Locale.tr("MarketPlaces"),
|
||||
icon: 'fa-shopping-cart',
|
||||
tabClass: "subTab",
|
||||
parentTab: "storage-top-tab",
|
||||
listHeader: Locale.tr("MarketPlaces"),
|
||||
infoHeader: Locale.tr("MarketPlace"),
|
||||
subheader: '',
|
||||
resource: 'MarketPlace',
|
||||
buttons: Buttons,
|
||||
actions: Actions,
|
||||
|
||||
+2
-2
@@ -15,11 +15,11 @@
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
define(function(require) {
|
||||
var TAB_ID = 'oneflow-dashboard-tab';
|
||||
var TAB_ID = 'network-top-tab';
|
||||
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: '<i class="fa fa-lg fa-fw fa-cubes"></i> OneFlow',
|
||||
title: 'Network',
|
||||
no_content: true
|
||||
};
|
||||
|
||||
@@ -44,10 +44,11 @@ define(function(require) {
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: Locale.tr("Services"),
|
||||
icon: 'fa-cubes',
|
||||
tabClass: "subTab",
|
||||
parentTab: "oneflow-dashboard-tab",
|
||||
listHeader: '<i class="fa fa-fw fa-cubes"></i> '+Locale.tr("OneFlow - Services"),
|
||||
infoHeader: '<i class="fa fa-fw fa-cubes"></i> '+Locale.tr("OneFlow - Service"),
|
||||
parentTab: "instances-top-tab",
|
||||
listHeader: Locale.tr("Services"),
|
||||
infoHeader: Locale.tr("Service"),
|
||||
subheader: '',
|
||||
content: '<div class="row oneflow_services_error_message" hidden>\
|
||||
<div class="small-6 columns small-centered text-center">\
|
||||
|
||||
@@ -69,27 +69,30 @@ define(function(require) {
|
||||
function _setup(context) {
|
||||
var that = this;
|
||||
|
||||
context.foundation('abide', 'reflow');
|
||||
context.off('invalid.fndtn.abide', '#' + DIALOG_ID + 'Form');
|
||||
context.off('valid.fndtn.abide', '#' + DIALOG_ID + 'Form');
|
||||
Foundation.reflow(context, 'abide');
|
||||
|
||||
context.on('invalid.fndtn.abide', '#' + DIALOG_ID + 'Form', function(e) {
|
||||
Notifier.notifyError(Locale.tr("One or more required fields are missing or malformed."));
|
||||
}).on('valid.fndtn.abide', '#' + DIALOG_ID + 'Form', function(e) {
|
||||
var force = false;
|
||||
if ($("#force", context).is(":checked")) {
|
||||
force = true;
|
||||
}
|
||||
$('#' + DIALOG_ID + 'Form', context)
|
||||
.on('forminvalid.zf.abide', function(ev, frm) {
|
||||
Notifier.notifyError(Locale.tr("One or more required fields are missing or malformed."));
|
||||
})
|
||||
.on('formvalid.zf.abide', function(ev, frm) {
|
||||
var force = false;
|
||||
if ($("#force", context).is(":checked")) {
|
||||
force = true;
|
||||
}
|
||||
|
||||
var obj = {
|
||||
"force": force,
|
||||
"cardinality": $("#cardinality", context).val(),
|
||||
};
|
||||
var obj = {
|
||||
"force": force,
|
||||
"cardinality": $("#cardinality", context).val(),
|
||||
};
|
||||
|
||||
Sunstone.runAction('Role.update', that.roleIds, obj);
|
||||
Sunstone.runAction('Role.update', that.roleIds, obj);
|
||||
|
||||
return false;
|
||||
});
|
||||
return false;
|
||||
})
|
||||
.on("submit", function(ev) {
|
||||
ev.preventDefault();
|
||||
});
|
||||
|
||||
Tips.setup(context);
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div id="{{dialogId}}" class="reveal-modal" role="dialog" data-reveal >
|
||||
<div id="{{dialogId}}" class="reveal" data-reveal>
|
||||
<div class="row">
|
||||
<h3 class="subheader">{{tr "Scale"}}</h3>
|
||||
</div>
|
||||
@@ -40,6 +40,8 @@
|
||||
{{tr "Scale"}}
|
||||
</button>
|
||||
</div>
|
||||
<a class="close-reveal-modal">×</a>
|
||||
<button class="close-button" data-close aria-label="{{tr "Close modal"}}" type="button">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
@@ -42,7 +42,7 @@
|
||||
<table id="datatable_roles_{{panelId}}" class="dataTable twelve">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="check hidden">
|
||||
<th class="check" hidden>
|
||||
<input type="checkbox" class="check_all" value=""></input>
|
||||
</th>
|
||||
<th>{{tr "Name"}}</th>
|
||||
@@ -57,7 +57,7 @@
|
||||
<tbody>
|
||||
{{#each roleList}}
|
||||
<tr>
|
||||
<td class="hidden">
|
||||
<td hidden>
|
||||
<input class="check_item" type="checkbox" id="role_{{name}}" name="selected_items" value="{{../element.ID}}/role/{{name}}"/>
|
||||
</td>
|
||||
<td>{{name}}</td>
|
||||
|
||||
@@ -44,11 +44,12 @@ define(function(require) {
|
||||
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: Locale.tr("Templates"),
|
||||
title: Locale.tr("Services"),
|
||||
icon: 'fa-files-o',
|
||||
tabClass: "subTab",
|
||||
parentTab: "oneflow-dashboard-tab",
|
||||
listHeader: '<i class="fa fa-fw fa-file-o"></i> '+Locale.tr("OneFlow - Templates"),
|
||||
infoHeader: '<i class="fa fa-fw fa-file-o"></i> '+Locale.tr("OneFlow - Template"),
|
||||
parentTab: "templates-top-tab",
|
||||
listHeader: Locale.tr("Service Templates"),
|
||||
infoHeader: Locale.tr("Service Template"),
|
||||
subheader: '',
|
||||
content: '<div class="row oneflow_templates_error_message" hidden>\
|
||||
<div class="small-6 columns small-centered text-center">\
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div id="{{dialogId}}" class="reveal-modal" role="dialog" data-reveal >
|
||||
<div id="{{dialogId}}" class="reveal" data-reveal>
|
||||
<div class="row">
|
||||
<h3 class="subheader">{{tr "Clone Service Template"}}</h3>
|
||||
</div>
|
||||
@@ -37,6 +37,8 @@
|
||||
<div class="form_buttons row">
|
||||
<button class="button radius right" id="template_clone_button" value="ServiceTemplate.clone">{{tr "Clone"}}</button>
|
||||
</div>
|
||||
<a class="close-reveal-modal">×</a>
|
||||
<button class="close-button" data-close aria-label="{{tr "Close modal"}}" type="button">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.tab');
|
||||
// require('foundation.tab');
|
||||
var BaseFormPanel = require('utils/form-panels/form-panel');
|
||||
var Sunstone = require('sunstone');
|
||||
var Locale = require('utils/locale');
|
||||
@@ -104,8 +104,8 @@ define(function(require) {
|
||||
$(".service_networks tbody").append(
|
||||
'<tr>\
|
||||
<td>\
|
||||
<input class="service_network_name" type="text" pattern="^\\w+$"/>\
|
||||
<small class="error">'+Locale.tr("Can only contain alphanumeric and underscore characters")+'</small>\
|
||||
<input class="service_network_name" type="text" pattern="[a-z]*"/>\
|
||||
<small class="form-error">'+Locale.tr("Can only contain alphanumeric and underscore characters")+'</small>\
|
||||
</td>\
|
||||
<td>\
|
||||
<textarea class="service_network_description"/>\
|
||||
@@ -133,29 +133,6 @@ define(function(require) {
|
||||
that.addRoleTab(roles_index, context);
|
||||
roles_index++;
|
||||
|
||||
context.foundation();
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
// close icon: removing the tab on click
|
||||
$("#roles_tabs", context).on("click", "i.remove-tab", function() {
|
||||
var target = $(this).parent().attr("href");
|
||||
var dd = $(this).closest('dd');
|
||||
var dl = $(this).closest('dl');
|
||||
var content = $(target);
|
||||
|
||||
var role_id = content.attr("role_id");
|
||||
|
||||
dd.remove();
|
||||
content.remove();
|
||||
|
||||
if (dd.attr("class") == 'active') {
|
||||
$('a', dl.children('dd').last()).click();
|
||||
}
|
||||
|
||||
delete that.roleTabObjects[role_id];
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
@@ -199,7 +176,7 @@ define(function(require) {
|
||||
});
|
||||
|
||||
|
||||
$(document).foundation('tab', 'reflow');
|
||||
Foundation.reflow(context, 'tabs');
|
||||
|
||||
// Add first role
|
||||
$("#tf_btn_roles", context).trigger("click");
|
||||
@@ -432,19 +409,20 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function _add_role_tab(role_id, dialog) {
|
||||
var that = this;
|
||||
var html_role_id = 'role' + role_id;
|
||||
|
||||
var role_tab = new RoleTab(html_role_id);
|
||||
this.roleTabObjects[role_id] = role_tab;
|
||||
that.roleTabObjects[role_id] = role_tab;
|
||||
|
||||
// Append the new div containing the tab and add the tab to the list
|
||||
var role_section = $('<div id="'+html_role_id+'Tab" class="content role_content wizard_internal_tab" role_id="'+role_id+'">'+
|
||||
var role_section = $('<div id="'+html_role_id+'Tab" class="tabs-panel role_content wizard_internal_tab" role_id="'+role_id+'">'+
|
||||
role_tab.html() +
|
||||
'</div>').appendTo($("#roles_tabs_content", dialog));
|
||||
|
||||
_redo_service_networks_selector_role(dialog, role_section);
|
||||
|
||||
var a = $("<dd>\
|
||||
var a = $("<li class='tabs-title'>\
|
||||
<a class='text-center' id='"+html_role_id+"' href='#"+html_role_id+"Tab'>\
|
||||
<span>\
|
||||
<i class='off-color fa fa-cube fa-3x'/>\
|
||||
@@ -453,10 +431,32 @@ define(function(require) {
|
||||
</span>\
|
||||
<i class='fa fa-times-circle remove-tab'></i>\
|
||||
</a>\
|
||||
</dd>").appendTo($("dl#roles_tabs", dialog));
|
||||
</li>").appendTo($("ul#roles_tabs", dialog));
|
||||
|
||||
Foundation.reInit($("ul#roles_tabs", dialog));
|
||||
$("a", a).trigger("click");
|
||||
|
||||
// close icon: removing the tab on click
|
||||
a.on("click", "i.remove-tab", function() {
|
||||
var target = $(this).parent().attr("href");
|
||||
var li = $(this).closest('li');
|
||||
var ul = $(this).closest('ul');
|
||||
var content = $(target);
|
||||
|
||||
var role_id = content.attr("role_id");
|
||||
|
||||
li.remove();
|
||||
content.remove();
|
||||
|
||||
if (li.hasClass('is-active')) {
|
||||
$('a', ul.children('li').last()).click();
|
||||
}
|
||||
|
||||
delete that.roleTabObjects[role_id];
|
||||
|
||||
return false;
|
||||
});
|
||||
|
||||
role_tab.setup(role_section);
|
||||
role_tab.onShow();
|
||||
}
|
||||
|
||||
@@ -106,12 +106,12 @@
|
||||
<br>
|
||||
<div class="row">
|
||||
<div id="new_role" class="bordered-tabs large-12 columns">
|
||||
<dl class="tabs" id="roles_tabs" data-tab>
|
||||
<ul class="tabs" id="roles_tabs" data-tabs>
|
||||
<a class="button small right radius" id="tf_btn_roles">
|
||||
<span class="fa fa-plus"></span>{{tr "Add another role"}}
|
||||
</a>
|
||||
</dl>
|
||||
<div class="tabs-content" id="roles_tabs_content">
|
||||
</ul>
|
||||
<div class="tabs-content" id="roles_tabs_content" data-tabs-content="roles_tabs">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.tab');
|
||||
// require('foundation.tab');
|
||||
var BaseFormPanel = require('utils/form-panels/form-panel');
|
||||
var Sunstone = require('sunstone');
|
||||
var Locale = require('utils/locale');
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
<span class="tip">{{tr "Name of the role"}}</span>
|
||||
</label>
|
||||
<input type="text" id="role_name" name="name" required pattern="^\w+$"/>
|
||||
<small class="error">{{tr "Can only contain alphanumeric and underscore characters"}}</small>
|
||||
<small class="form-error">{{tr "Can only contain alphanumeric and underscore characters"}}</small>
|
||||
</div>
|
||||
<div class="service_template_param service_role medium-2 columns end">
|
||||
<label for="cardinality">{{tr "VMs"}}
|
||||
|
||||
@@ -15,9 +15,10 @@
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
define(function(require) {
|
||||
require('foundation.core');
|
||||
require('foundation.accordion');
|
||||
require('foundation-datatables');
|
||||
// require('foundation.core');
|
||||
// require('foundation.accordion');
|
||||
require('datatables.net');
|
||||
require('datatables.foundation');
|
||||
var Locale = require('utils/locale');
|
||||
var Config = require('sunstone-config');
|
||||
var OpenNebula = require('opennebula');
|
||||
@@ -89,7 +90,7 @@ define(function(require) {
|
||||
}
|
||||
}
|
||||
|
||||
$(document).foundation();
|
||||
//$(document).foundation();
|
||||
|
||||
function generate_cardinality_selector(context, role_template, template_json) {
|
||||
context.off();
|
||||
@@ -100,9 +101,9 @@ define(function(require) {
|
||||
'<br>'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-12 large-centered columns">'+
|
||||
'<h3 class="subheader text-right">'+
|
||||
'<h3 class="subheader">'+
|
||||
'<span class="left">'+
|
||||
'<i class="fa fa-th fa-lg"></i> '+
|
||||
'<i class="fa fa-th fa-lg"></i> '+
|
||||
Locale.tr("Cardinality")+
|
||||
'</span>'+
|
||||
'</h3>'+
|
||||
@@ -115,32 +116,21 @@ define(function(require) {
|
||||
'<div class="large-12 columns">'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-2 text-center columns">'+
|
||||
'<span class="cardinality_value" style="color: #777; font-size:40px">'+role_template.cardinality+'</span>'+
|
||||
'<span class="cardinality_value">'+role_template.cardinality+'</span>'+
|
||||
'<br>'+
|
||||
'<span style="color: #999;">'+Locale.tr("VMs")+'</span>'+
|
||||
'<span>'+Locale.tr("VMs")+'</span>'+
|
||||
'</div>'+
|
||||
'<div class="large-6 columns">'+
|
||||
'<div class="cardinality_slider_div">'+
|
||||
'<span class="" style="color: #777;">'+Locale.tr("Change cardinality")+'</span>'+
|
||||
'<br>'+
|
||||
'<div class="range-slider radius cardinality_slider" data-slider data-options="start: 1; end: 50;">'+
|
||||
'<span class="range-slider-handle"></span>'+
|
||||
'<span class="range-slider-active-segment"></span>'+
|
||||
'<input type="hidden">'+
|
||||
'</div>'+
|
||||
'<span class="left" style="color: #999;">'+min_vms+'</span>'+
|
||||
'<span class="right" style="color: #999;">'+max_vms+'</span>'+
|
||||
'</div>'+
|
||||
'<div class="cardinality_no_slider_div">'+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
'<span class="" style="color: #999;">'+Locale.tr("The cardinality for this role cannot be changed")+'</span>'+
|
||||
'<span class="">'+Locale.tr("The cardinality for this role cannot be changed")+'</span>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'<div class="large-4 columns text-center provision_create_service_cost_div hidden">'+
|
||||
'<span class="cost_value" style="color: #777; font-size:40px"></span>'+
|
||||
'<div class="large-4 columns text-center provision_create_service_cost_div" hidden>'+
|
||||
'<span class="cost_value"></span>'+
|
||||
'<br>'+
|
||||
'<span style="color: #999;">'+Locale.tr("COST")+' / ' + Locale.tr("HOUR") + '</span>'+
|
||||
'<span>'+Locale.tr("COST")+' / ' + Locale.tr("HOUR") + '</span>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
@@ -208,16 +198,18 @@ define(function(require) {
|
||||
}
|
||||
|
||||
if (max_vms > min_vms) {
|
||||
$( ".cardinality_slider", context).attr('data-options', 'start: '+min_vms+'; end: '+max_vms+';')
|
||||
context.foundation();
|
||||
$( ".cardinality_slider_div", context).html(RangeSlider.html({
|
||||
min: min_vms,
|
||||
max: max_vms,
|
||||
initial: role_template.cardinality
|
||||
}));
|
||||
|
||||
$( ".cardinality_slider_div", context).show();
|
||||
$( ".cardinality_no_slider_div", context).hide();
|
||||
|
||||
$( ".cardinality_slider", context).foundation('slider', 'set_value', role_template.cardinality);
|
||||
|
||||
$( ".cardinality_slider", context).on('change.fndtn.slider', function(){
|
||||
$(".cardinality_value",context).html($(this).attr('data-slider'))
|
||||
var cost_value = $(".provision_create_service_cost_div", context).data("cost")*$(this).attr('data-slider');
|
||||
$( ".cardinality_slider_div", context).on("input", '.uinput-slider', function() {
|
||||
$(".cardinality_value", context).html($(this).val());
|
||||
var cost_value = $(".provision_create_service_cost_div", context).data("cost")*$(this).val();
|
||||
$(".cost_value", context).html(cost_value.toFixed(2));
|
||||
});
|
||||
} else {
|
||||
@@ -248,21 +240,21 @@ define(function(require) {
|
||||
'<br>'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-12 large-centered columns">'+
|
||||
'<h3 class="subheader text-right">'+
|
||||
'<h3 class="subheader">'+
|
||||
'<span class="left">'+
|
||||
'<i class="fa fa-laptop fa-lg"></i> '+
|
||||
'<i class="fa fa-laptop fa-lg"></i> '+
|
||||
Locale.tr("Capacity")+
|
||||
'</span>'+
|
||||
'<span>'+
|
||||
'<span class="cpu_value">'+(capacity.CPU ? capacity.CPU : '-')+'</span> '+
|
||||
'<small style="color: #999; margin-right: 10px">'+Locale.tr("CPU")+'</small>'+
|
||||
'<small>'+Locale.tr("CPU")+'</small>'+
|
||||
'<span class="memory_value">'+memory_value+'</span>'+
|
||||
' '+
|
||||
'<span class="memory_unit">'+memory_unit+'</span> '+
|
||||
'<small style="color: #999; margin-right: 10px">'+Locale.tr("MEMORY")+'</small>'+
|
||||
'<span class="provision_create_template_cost_div hidden">' +
|
||||
'<small>'+Locale.tr("MEMORY")+'</small>'+
|
||||
'<span class="provision_create_template_cost_div" hidden>' +
|
||||
'<span class="cost_value">0.00</span> '+
|
||||
'<small style="color: #999;">'+Locale.tr("COST")+' / ' + Locale.tr("HOUR") + '</small>'+
|
||||
'<small>'+Locale.tr("COST")+' / ' + Locale.tr("HOUR") + '</small>'+
|
||||
'</span>'+
|
||||
'</span>'+
|
||||
'</h3>'+
|
||||
@@ -272,12 +264,12 @@ define(function(require) {
|
||||
(Config.provision.create_vm.isEnabled("capacity_select") ?
|
||||
'<div class="row">'+
|
||||
'<div class="large-12 large-centered columns">'+
|
||||
'<dl class="accordion" data-accordion="provision_accordion_'+provision_capacity_accordion_id+'">'+
|
||||
'<dd class="accordion-navigation">'+
|
||||
'<a href="#provision_capacity_dd_'+provision_capacity_accordion_id+'" class="button large-12 medium radius" style="color: #555;">'+
|
||||
'<dl class="accordion" data-accordion data-allow-all-closed="true">'+
|
||||
'<dd class="accordion-item" data-accordion-item>'+
|
||||
'<a href="#provision_capacity_dd_'+provision_capacity_accordion_id+'" class="accordion-title">'+
|
||||
Locale.tr("Change Capacity")+
|
||||
'</a>'+
|
||||
'<div id="provision_capacity_dd_'+provision_capacity_accordion_id+'" class="content">'+
|
||||
'<div id="provision_capacity_dd_'+provision_capacity_accordion_id+'" class="accordion-content" data-tab-content>'+
|
||||
'<br>'+
|
||||
CapacityInputs.html() +
|
||||
'</div>'+
|
||||
@@ -288,6 +280,8 @@ define(function(require) {
|
||||
'<br>');
|
||||
|
||||
if (Config.provision.create_vm.isEnabled("capacity_select")) {
|
||||
Foundation.reflow(context, 'accordion');
|
||||
|
||||
provision_capacity_accordion_id += 1;
|
||||
|
||||
CapacityInputs.setup(context);
|
||||
@@ -652,13 +646,13 @@ define(function(require) {
|
||||
|
||||
function update_provision_flow_templates_datatable(datatable, timeout) {
|
||||
datatable.html('<div class="text-center">'+
|
||||
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
|
||||
'<span class="fa-stack fa-5x">'+
|
||||
'<i class="fa fa-cloud fa-stack-2x"></i>'+
|
||||
'<i class="fa fa-spinner fa-spin fa-stack-1x fa-inverse"></i>'+
|
||||
'</span>'+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
'<span style="font-size: 18px; color: #999">'+
|
||||
'<span>'+
|
||||
'</span>'+
|
||||
'</div>');
|
||||
|
||||
@@ -669,13 +663,13 @@ define(function(require) {
|
||||
datatable.fnClearTable(true);
|
||||
if (item_list.length == 0) {
|
||||
datatable.html('<div class="text-center">'+
|
||||
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
|
||||
'<span class="fa-stack fa-5x">'+
|
||||
'<i class="fa fa-cloud fa-stack-2x"></i>'+
|
||||
'<i class="fa fa-info-circle fa-stack-1x fa-inverse"></i>'+
|
||||
'</span>'+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
'<span style="font-size: 18px; color: #999">'+
|
||||
'<span>'+
|
||||
Locale.tr("There are no templates available")+
|
||||
'</span>'+
|
||||
'</div>');
|
||||
@@ -800,7 +794,7 @@ define(function(require) {
|
||||
'<img src="'+data.TEMPLATE.LOGO+'">'+
|
||||
'</span>';
|
||||
} else {
|
||||
logo = '<span style="color: #bfbfbf; font-size: 60px;">'+
|
||||
logo = '<span>'+
|
||||
'<i class="fa fa-fw fa-file-text-o"/>'+
|
||||
'</span>';
|
||||
}
|
||||
@@ -815,25 +809,25 @@ define(function(require) {
|
||||
owner = Locale.tr("system");
|
||||
}
|
||||
|
||||
var li = $('<li>'+
|
||||
'<ul class="provision-pricing-table hoverable only-one" opennebula_id="'+data.ID+'">'+
|
||||
var li = $('<div class="column">'+
|
||||
'<ul class="provision-pricing-table hoverable only-one menu vertical" opennebula_id="'+data.ID+'">'+
|
||||
'<li class="provision-title" title="'+data.NAME+'">'+
|
||||
data.NAME+
|
||||
'</li>'+
|
||||
'<li style="height: 85px" class="provision-bullet-item">'+
|
||||
'<li class="provision-bullet-item">'+
|
||||
logo +
|
||||
'</li>'+
|
||||
'<li class="provision-description">'+
|
||||
(data.TEMPLATE.DESCRIPTION || '...')+
|
||||
'</li>'+
|
||||
'<li class="text-right provision-bullet-item">'+
|
||||
'<span class="left" style="color: #999;">'+
|
||||
'<i class="fa fa-fw fa-lg fa-user"/> '+
|
||||
'<li class="provision-bullet-item">'+
|
||||
'<span class="left">'+
|
||||
'<i class="fa fa-fw fa-lg fa-user"/> '+
|
||||
owner+
|
||||
'</span>'+
|
||||
'</li>'+
|
||||
'</ul>'+
|
||||
'</li>').appendTo($("#"+tableID+'_ul'));
|
||||
'</div>').appendTo($("#"+tableID+'_ul'));
|
||||
|
||||
$(".provision-pricing-table", li).data("opennebula", aData);
|
||||
}
|
||||
@@ -842,19 +836,19 @@ define(function(require) {
|
||||
// create a thumbs container if it doesn't exist. put it in the dataTables_scrollbody div
|
||||
if (context.$('tr', {"filter": "applied"} ).length == 0) {
|
||||
context.html('<div class="text-center">'+
|
||||
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
|
||||
'<span class="fa-stack fa-5x">'+
|
||||
'<i class="fa fa-cloud fa-stack-2x"></i>'+
|
||||
'<i class="fa fa-info-circle fa-stack-1x fa-inverse"></i>'+
|
||||
'</span>'+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
'<span style="font-size: 18px; color: #999">'+
|
||||
'<span>'+
|
||||
Locale.tr("There are no templates available")+
|
||||
'</span>'+
|
||||
'</div>');
|
||||
} else {
|
||||
$('#'+tableID+'_table').html(
|
||||
'<ul id="'+tableID+'_ul" class="large-block-grid-3 medium-block-grid-3 small-block-grid-1 text-center"></ul>');
|
||||
'<div id="'+tableID+'_ul" class="row large-up-3 medium-up-3 small-up-1"></div>');
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -863,6 +857,7 @@ define(function(require) {
|
||||
|
||||
provision_vm_instantiate_templates_datatable = $('#provision_vm_instantiate_templates_table').dataTable({
|
||||
"iDisplayLength": 6,
|
||||
"bAutoWidth": false,
|
||||
"sDom" : '<"H">t<"F"lp>',
|
||||
"aLengthMenu": [[6, 12, 36, 72], [6, 12, 36, 72]],
|
||||
"aoColumnDefs": [
|
||||
@@ -949,7 +944,7 @@ define(function(require) {
|
||||
if (template_json.VMTEMPLATE.TEMPLATE.LOGO) {
|
||||
$(".provision_accordion_template .selected_template_logo").html('<img src="'+template_json.VMTEMPLATE.TEMPLATE.LOGO+'">');
|
||||
} else {
|
||||
$(".provision_accordion_template .selected_template_logo").html('<i class="fa fa-file-text-o fa-lg"/> ');
|
||||
$(".provision_accordion_template .selected_template_logo").html('<i class="fa fa-file-text-o fa-lg"/> ');
|
||||
}
|
||||
|
||||
$(".provision_accordion_template a").first().trigger("click");
|
||||
@@ -959,8 +954,8 @@ define(function(require) {
|
||||
template_json.VMTEMPLATE);
|
||||
|
||||
provisionInvalidCapacity = function(input){
|
||||
if(!$(input).closest(".accordion-navigation").hasClass("active")){
|
||||
$("a", $(input).closest(".accordion-navigation")).click();
|
||||
if(!$(input).closest(".accordion-item").hasClass("is-active")){
|
||||
$("a", $(input).closest(".accordion-item")).click();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -983,7 +978,7 @@ define(function(require) {
|
||||
UserInputs.vmTemplateInsert(
|
||||
$(".provision_custom_attributes_selector", create_vm_context),
|
||||
template_json,
|
||||
{text_header: '<i class="fa fa-gears fa-lg"></i> '+Locale.tr("Custom Attributes")});
|
||||
{text_header: '<i class="fa fa-gears"></i> '+Locale.tr("Custom Attributes")});
|
||||
|
||||
} else {
|
||||
$(".provision_custom_attributes_selector", create_vm_context).html("");
|
||||
@@ -995,7 +990,7 @@ define(function(require) {
|
||||
if ($(this).hasClass("selected")){
|
||||
$(this).removeClass("selected");
|
||||
} else {
|
||||
$(".provision-pricing-table", $(this).parents(".large-block-grid-3,.large-block-grid-2")).removeClass("selected")
|
||||
$(".provision-pricing-table", $(this).parents(".large-up-3,.large-up-2")).removeClass("selected")
|
||||
$(this).addClass("selected");
|
||||
}
|
||||
})
|
||||
@@ -1046,6 +1041,8 @@ define(function(require) {
|
||||
show_provision_create_vm();
|
||||
});
|
||||
|
||||
Foundation.reflow($('#provision_create_vm'), 'accordion');
|
||||
|
||||
|
||||
//
|
||||
// Create FLOW
|
||||
@@ -1053,6 +1050,7 @@ define(function(require) {
|
||||
|
||||
provision_flow_templates_datatable = $('#provision_flow_templates_table').dataTable({
|
||||
"iDisplayLength": 6,
|
||||
"bAutoWidth": false,
|
||||
"sDom" : '<"H">t<"F"lp>',
|
||||
"aLengthMenu": [[6, 12, 36, 72], [6, 12, 36, 72]],
|
||||
"aaSorting" : [[1, "asc"]],
|
||||
@@ -1067,18 +1065,18 @@ define(function(require) {
|
||||
// create a thumbs container if it doesn't exist. put it in the dataTables_scrollbody div
|
||||
if (this.$('tr', {"filter": "applied"} ).length == 0) {
|
||||
this.html('<div class="text-center">'+
|
||||
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
|
||||
'<span class="fa-stack fa-5x">'+
|
||||
'<i class="fa fa-cloud fa-stack-2x"></i>'+
|
||||
'<i class="fa fa-info-circle fa-stack-1x fa-inverse"></i>'+
|
||||
'</span>'+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
'<span style="font-size: 18px; color: #999">'+
|
||||
'<span>'+
|
||||
Locale.tr("There are no templates available")+
|
||||
'</span>'+
|
||||
'</div>');
|
||||
} else {
|
||||
$("#provision_flow_templates_table").html('<ul id="provision_flow_templates_ul" class="large-block-grid-3 medium-block-grid-3 small-block-grid-1 text-center"></ul>');
|
||||
$("#provision_flow_templates_table").html('<div id="provision_flow_templates_ul" class="large-up-3 medium-up-3 small-up-1"></div>');
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -1092,8 +1090,8 @@ define(function(require) {
|
||||
if (body.roles) {
|
||||
$.each(body.roles, function(index, role) {
|
||||
roles_li +=
|
||||
'<li class="provision-bullet-item text-left" style="margin-left: 10px;margin-right: 10px;">'+
|
||||
'<i class="fa fa-fw fa-cube"/> '+
|
||||
'<li class="provision-bullet-item">'+
|
||||
'<i class="fa fa-fw fa-cube"/> '+
|
||||
role.name+
|
||||
'<span class="right">'+role.cardinality+" VMs</span>"+
|
||||
'</li>';
|
||||
@@ -1105,25 +1103,25 @@ define(function(require) {
|
||||
'<img src="'+body.LOGO+'">'+
|
||||
'</span>';
|
||||
} else {
|
||||
logo = '<span style="color: #bfbfbf; font-size: 60px;">'+
|
||||
logo = '<span>'+
|
||||
'<i class="fa fa-fw fa-cubes"/>'+
|
||||
'</span>';
|
||||
}
|
||||
|
||||
var li = $('<li>'+
|
||||
'<ul class="provision-pricing-table hoverable only-one" opennebula_id="'+data.ID+'">'+
|
||||
var li = $('<div class="columns">'+
|
||||
'<ul class="provision-pricing-table hoverable only-one menu vertical" opennebula_id="'+data.ID+'">'+
|
||||
'<li class="provision-title" title="'+data.NAME+'">'+
|
||||
data.NAME+
|
||||
'</li>'+
|
||||
'<li style="height: 85px" class="provision-bullet-item">'+
|
||||
'<li class="provision-bullet-item">'+
|
||||
logo +
|
||||
'</li>'+
|
||||
roles_li +
|
||||
'<li class="provision-description" style="padding-top:0px">'+
|
||||
'<li class="provision-description">'+
|
||||
(data.TEMPLATE.DESCRIPTION || '')+
|
||||
'</li>'+
|
||||
'</ul>'+
|
||||
'</li>').appendTo($("#provision_flow_templates_ul"));
|
||||
'</div>').appendTo($("#provision_flow_templates_ul"));
|
||||
|
||||
$(".provision-pricing-table", li).data("opennebula", aData);
|
||||
|
||||
@@ -1161,8 +1159,8 @@ define(function(require) {
|
||||
|
||||
$(".provision_accordion_flow_template .selected_template").show();
|
||||
$(".provision_accordion_flow_template .select_template").hide();
|
||||
$(".provision_accordion_flow_template .selected_template_name").html(body.name)
|
||||
$(".provision_accordion_flow_template .selected_template_logo").html('<i class="fa fa-cubes fa-lg"/> ');
|
||||
$(".provision_accordion_flow_template .selected_template_name").html(data.DOCUMENT.NAME)
|
||||
$(".provision_accordion_flow_template .selected_template_logo").html('<i class="fa fa-cubes fa-lg"/> ');
|
||||
$(".provision_accordion_flow_template a").first().trigger("click");
|
||||
|
||||
var context = $("#provision_create_flow");
|
||||
@@ -1214,7 +1212,7 @@ define(function(require) {
|
||||
'<div class="row">'+
|
||||
'<div class="large-10 large-centered columns">'+
|
||||
'<h2 class="subheader">'+
|
||||
'<i class="fa fa-cube fa-lg"></i> '+
|
||||
'<i class="fa fa-cube fa-lg"></i> '+
|
||||
role.name+
|
||||
'</h2>'+
|
||||
'<br>'+
|
||||
@@ -1255,7 +1253,7 @@ define(function(require) {
|
||||
UserInputs.vmTemplateInsert(
|
||||
$(".provision_custom_attributes_selector", role_context),
|
||||
template_json,
|
||||
{text_header: '<i class="fa fa-gears fa-lg"></i> '+Locale.tr("Custom Attributes")});
|
||||
{text_header: '<i class="fa fa-gears"></i> '+Locale.tr("Custom Attributes")});
|
||||
|
||||
} else {
|
||||
$(".provision_custom_attributes_selector", role_context).html("");
|
||||
@@ -1266,7 +1264,7 @@ define(function(require) {
|
||||
|
||||
})
|
||||
|
||||
$(document).foundation();
|
||||
//$(document).foundation();
|
||||
}
|
||||
})
|
||||
|
||||
@@ -1274,7 +1272,7 @@ define(function(require) {
|
||||
if ($(this).hasClass("selected")){
|
||||
$(this).removeClass("selected");
|
||||
} else {
|
||||
$(".provision-pricing-table", $(this).parents(".large-block-grid-3,.large-block-grid-2")).removeClass("selected")
|
||||
$(".provision-pricing-table", $(this).parents(".large-up-3,.large-up-2")).removeClass("selected")
|
||||
$(this).addClass("selected");
|
||||
}
|
||||
})
|
||||
@@ -1346,6 +1344,8 @@ define(function(require) {
|
||||
$(".provision_create_flow_button").on("click", function(){
|
||||
show_provision_create_flow();
|
||||
});
|
||||
|
||||
Foundation.reflow($('#provision_create_flow'), 'accordion');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
{{!provision_user_info}}
|
||||
|
||||
{{> tabs/provision-tab/vms/create}}
|
||||
<div class="provision_vms_list_section hidden section_content"></div>
|
||||
<div class="provision_vms_list_section section_content" hidden></div>
|
||||
|
||||
{{#isProvisionTabEnabled "provision-tab" "templates"}}
|
||||
<div class="provision_templates_list_section hidden section_content"></div>
|
||||
<div class="provision_templates_list_section section_content" hidden></div>
|
||||
{{/isProvisionTabEnabled}}
|
||||
|
||||
{{#isProvisionTabEnabled "provision-tab" "flows"}}
|
||||
{{> tabs/provision-tab/flows/create}}
|
||||
<div class="provision_flows_list_section hidden section_content"></div>
|
||||
<div class="provision_flows_list_section section_content" hidden></div>
|
||||
{{/isProvisionTabEnabled}}
|
||||
@@ -14,7 +14,7 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<form id="provision_create_flow" class="hidden section_content">
|
||||
<form id="provision_create_flow" class="section_content" hidden>
|
||||
<div class="row">
|
||||
<div class="large-10 large-centered columns">
|
||||
<h2 class="subheader">{{tr "Create Service"}}</h2>
|
||||
@@ -22,45 +22,45 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-8 large-centered columns">
|
||||
<input type="text" id="flow_name" class="provision-input" placeholder="{{tr "Service Name"}}" style="height: 40px !important; font-size: 16px; padding: 0.5rem !important;"/>
|
||||
<input type="text" id="flow_name" class="provision-input" placeholder="{{tr "Service Name"}}"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-10 large-centered columns">
|
||||
<dl class="accordion provision_accordion_flow_template" data-accordion="provision_accordion_flow_template">
|
||||
<dd style="border-bottom: 1px solid #efefef;" class="active accordion-navigation">
|
||||
<a href="#provision_dd_flow_template" style="background: #fff; font-size: 30px">
|
||||
<span class="select_template" style="color:#555">{{tr "Select a Template"}}</span>
|
||||
<span class="selected_template" style="display:none; color:#555">
|
||||
<span class="provision-logo selected_template_logo" style="color:#555"></span>
|
||||
<span class="selected_template_name" style="color:#555"></span>
|
||||
<span class="has-tip right" style="cursor: pointer; margin-right:10px;"> <i class="fa fa-pencil"/></span>
|
||||
<ul class="accordion provision_accordion_flow_template" data-accordion data-allow-all-closed="true">
|
||||
<li class="is-active accordion-item" data-accordion-item>
|
||||
<a href="#provision_dd_flow_template" class="accordion-title">
|
||||
<span class="select_template">{{tr "Select a Template"}}</span>
|
||||
<span class="selected_template">
|
||||
<span class="provision-logo selected_template_logo"></span>
|
||||
<span class="selected_template_name"></span>
|
||||
<span class="has-tip"> <i class="fa fa-pencil"/></span>
|
||||
</span>
|
||||
</a>
|
||||
<div id="provision_dd_flow_template" class="provision_select_flow_template active content">
|
||||
<div id="provision_dd_flow_template" class="provision_select_flow_template accordion-content" data-tab-content>
|
||||
<div class="row">
|
||||
<div class="large-12 large-centered columns">
|
||||
<h3 class="subheader text-right">
|
||||
<input type="search" class="provision-search-input right" placeholder="Search" id="provision_create_flow_template_search"/>
|
||||
<h3 class="subheader">
|
||||
<input type="search" class="provision-search-input" placeholder="Search" id="provision_create_flow_template_search"/>
|
||||
</h3>
|
||||
<br></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 large-centered columns">
|
||||
<table id="provision_flow_templates_table">
|
||||
<thead class="hidden">
|
||||
<thead hidden>
|
||||
<tr>
|
||||
<th>{{tr "ID"}}</th>
|
||||
<th>{{tr "Name"}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="hidden"></tbody>
|
||||
<tbody hidden></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
@@ -73,14 +73,12 @@
|
||||
<div class="row">
|
||||
<div class="provision_custom_attributes_selector large-9 large-centered columns"></div>
|
||||
</div>
|
||||
<div id="provision_customize_flow_template" style="display: none"></div>
|
||||
<div id="provision_customize_flow_template" hidden></div>
|
||||
<br>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="large-7 columns large-centered">
|
||||
<div data-alert class="alert-box alert-box-error radius text-center hidden"></div>
|
||||
<button href="#" class="button large success radius large-12 small-12" type="submit" style="height: 59px">{{tr "Create"}}</button>
|
||||
<div data-alert class="alert-box alert-box-error text-center" hidden></div>
|
||||
<button href="#" class="button large success large-12 small-12" type="submit">{{tr "Create"}}</button>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<br></form>
|
||||
</div></form>
|
||||
@@ -15,16 +15,16 @@
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div class="text-center provision_info_flow_loading">
|
||||
<span class="fa-stack fa-5x" style="color: #dfdfdf"> <i class="fa fa-cloud fa-stack-2x"></i> <i class="fa fa-spinner fa-spin fa-stack-1x fa-inverse"></i>
|
||||
<span class="fa-stack fa-5x"> <i class="fa fa-cloud fa-stack-2x"></i> <i class="fa fa-spinner fa-spin fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<br>
|
||||
<br>
|
||||
<span style="font-size: 18px; color: #999"></span>
|
||||
<span></span>
|
||||
</div>
|
||||
<div class="provision_info_flow">
|
||||
<div class="row">
|
||||
<div class="large-12 large-centered columns">
|
||||
<ul class="inline-list provision_action_icons">
|
||||
<ul class="menu provision_action_icons">
|
||||
<li>
|
||||
<a href"#" title="{{tr "Recover a failed service, cleaning the failed VMs"}}" class="left button small radius success provision_recover_button">
|
||||
<i class="fa fa-fw fa-lg fa-wrench"/></a>
|
||||
@@ -45,12 +45,12 @@
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="large-4 columns">
|
||||
<ul class="provision-pricing-table_flow_info provision-pricing-table" style="border: 0px !important; background: #fff;"></ul>
|
||||
<ul class="provision-pricing-table_flow_info provision-pricing-table menu vertical"></ul>
|
||||
</div>
|
||||
<div class="large-8 columns">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<ul class="provision_roles_ul large-block-grid-2 medium-block-grid-2 small-block-grid-1 text-center"></ul>
|
||||
<div class="provision_roles_ul large-up-2 medium-up-2 small-up-1"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -13,56 +13,54 @@
|
||||
{{! See the License for the specific language governing permissions and }}
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<dl class="accordion accordion_list provision_list_flows" data-accordion>
|
||||
<dd class="{{#if opts.active}}active{{/if}} accordion-navigation">
|
||||
<a class="provision_list_flow_accordion right only-not-active provision_back" href="#provision_list_flow_accordion{{accordionId}}">
|
||||
<span class="button small radius"> <i class="fa fa-fw fa-lg fa-th"/><i class="fa fa-fw fa-lg fa-chevron-left"/>
|
||||
<dd class="{{#if opts.active}}is-active{{/if}} accordion-item" data-accordion-item>
|
||||
<a class="provision_list_flow_accordion only-not-active provision_back accordion-title" href="#provision_list_flow_accordion{{accordionId}}">
|
||||
<span class="button"> <i class="fa fa-fw fa-lg fa-th"/><i class="fa fa-fw fa-lg fa-chevron-left"/>
|
||||
</span>
|
||||
</a>
|
||||
<h3 class="subheader">
|
||||
<h3>
|
||||
{{!opts.title}}
|
||||
<span class="provision_info_flow_name only-not-active"></span>
|
||||
<span href"#" class="only-active right button radius small secondary provision_flows_list_refresh_button"
|
||||
{{#unless opts.refresh}}style="display:none"{{/unless}} title=" {{tr "Refresh"}}">
|
||||
<span href"#" class="only-active button secondary provision_flows_list_refresh_button"
|
||||
{{#unless opts.refresh}}hidden{{/unless}} title=" {{tr "Refresh"}}">
|
||||
<i class="fa fa-fw fa-lg fa-refresh"/></span>
|
||||
<span href"#" class="only-not-active right button small radius secondary provision_refresh_info"
|
||||
{{#unless opts.refresh}}style="display:none"{{/unless}} title=" {{tr "Refresh"}}">
|
||||
<span href"#" class="only-not-active button secondary provision_refresh_info"
|
||||
{{#unless opts.refresh}}hidden{{/unless}} title=" {{tr "Refresh"}}">
|
||||
<i class="fa fa-fw fa-lg fa-refresh"/>
|
||||
</span>
|
||||
<span href"#" class="only-active right button radius small secondary provision_flows_list_filter_button"
|
||||
{{#unless opts.filter}}style="display:none"{{/unless}} title=" {{tr "Filter by User"}}">
|
||||
<span href"#" class="only-active button secondary provision_flows_list_filter_button"
|
||||
{{#unless opts.filter}}hidden{{/unless}} title=" {{tr "Filter by User"}}">
|
||||
<i class="fa fa-fw fa-lg fa-filter"/>
|
||||
</span>
|
||||
<span class="only-active right provision_list_flows_filter" style="display: none"></span>
|
||||
<span>
|
||||
<input type="search" class="only-active provision_list_flows_search provision-search-input" placeholder="Search Services"/>
|
||||
<span href"#" class="only-active right button radius small success provision_create_flow_button"
|
||||
{{#unless opts.create}}style="display:none"{{/unless}}>
|
||||
<i class="fa fa-fw fa-lg fa-plus-square"/>
|
||||
</span>
|
||||
</h3>
|
||||
<div id="provision_list_flow_accordion{{accordionId}}" class="content {{#if opts.active}}active{{/if}}">
|
||||
<div class="">
|
||||
<div class="row">
|
||||
<div class="large-12 large-centered columns">
|
||||
<table class="provision_flows_table">
|
||||
<thead class="hidden">
|
||||
<tr>
|
||||
<th>{{tr "ID"}}</th>
|
||||
<th>{{tr "Name"}}</th>
|
||||
<th>{{tr "User ID"}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="hidden"></tbody>
|
||||
</table>
|
||||
<br></div>
|
||||
</div>
|
||||
<span class="only-active provision_list_flows_filter" hidden></span>
|
||||
<span href"#" class="only-active button success provision_create_flow_button"
|
||||
{{#unless opts.create}}hidden{{/unless}}>
|
||||
<i class="fa fa-fw fa-lg fa-plus-square"/>
|
||||
</span>
|
||||
<input type="search" class="only-active provision_list_flows_search provision-search-input" placeholder="Search Services"/>
|
||||
</h3>
|
||||
<div id="provision_list_flow_accordion{{accordionId}}" class="accordion-content" data-tab-content>
|
||||
<div class="">
|
||||
<div class="row">
|
||||
<div class="large-12 large-centered columns">
|
||||
<table class="provision_flows_table">
|
||||
<thead hidden>
|
||||
<tr>
|
||||
<th>{{tr "ID"}}</th>
|
||||
<th>{{tr "Name"}}</th>
|
||||
<th>{{tr "User ID"}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody hidden></tbody>
|
||||
</table>
|
||||
<br></div>
|
||||
</div>
|
||||
</div>
|
||||
</dd>
|
||||
<dd class="accordion-navigation">
|
||||
<a class="provision_show_flow_accordion" href="#provision_show_flow_accordion{{accordionId}}"></a>
|
||||
<div id="provision_show_flow_accordion{{accordionId}}" class="content">{{> tabs/provision-tab/flows/info}}</div>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</dd>
|
||||
<dd class="accordion-item" data-accordion-item>
|
||||
<a class="provision_show_flow_accordion accordion-title" href="#provision_show_flow_accordion{{accordionId}}"></a>
|
||||
<div id="provision_show_flow_accordion{{accordionId}}" class="accordion-content" data-tab-content>{{> tabs/provision-tab/flows/info}}</div>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -15,12 +15,13 @@
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
define(function(require) {
|
||||
require('foundation.alert');
|
||||
// require('foundation.alert');
|
||||
var OpenNebula = require('opennebula');
|
||||
var Locale = require('utils/locale');
|
||||
var Notifier = require('utils/notifier');
|
||||
var Humanize = require('utils/humanize');
|
||||
var ResourceSelect = require('utils/resource-select');
|
||||
var RangeSlider = require('utils/range-slider');
|
||||
|
||||
var ProvisionVmsList = require('tabs/provision-tab/vms/list');
|
||||
|
||||
@@ -45,6 +46,7 @@ define(function(require) {
|
||||
function generate_provision_flows_list(context, opts) {
|
||||
context.off();
|
||||
context.html(html(opts));
|
||||
Foundation.reflow(context, 'accordion');
|
||||
setup_provision_flows_list(context, opts);
|
||||
setup_info_flow(context);
|
||||
}
|
||||
@@ -64,13 +66,13 @@ define(function(require) {
|
||||
|
||||
function update_provision_flows_datatable(datatable, timeout) {
|
||||
datatable.html('<div class="text-center">'+
|
||||
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
|
||||
'<span class="fa-stack fa-5x">'+
|
||||
'<i class="fa fa-cloud fa-stack-2x"></i>'+
|
||||
'<i class="fa fa-spinner fa-spin fa-stack-1x fa-inverse"></i>'+
|
||||
'</span>'+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
'<span style="font-size: 18px; color: #999">'+
|
||||
'<span>'+
|
||||
'</span>'+
|
||||
'</div>');
|
||||
|
||||
@@ -82,13 +84,13 @@ define(function(require) {
|
||||
datatable.fnClearTable(true);
|
||||
if (item_list.length == 0) {
|
||||
datatable.html('<div class="text-center">'+
|
||||
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
|
||||
'<span class="fa-stack fa-5x">'+
|
||||
'<i class="fa fa-cloud fa-stack-2x"></i>'+
|
||||
'<i class="fa fa-info-circle fa-stack-1x fa-inverse"></i>'+
|
||||
'</span>'+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
'<span style="font-size: 18px; color: #999">'+
|
||||
'<span>'+
|
||||
Locale.tr("There are no Services")+
|
||||
'</span>'+
|
||||
'<br>'+
|
||||
@@ -109,7 +111,7 @@ define(function(require) {
|
||||
'</div>'+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
'<span style="font-size: 18px; color: #999">'+
|
||||
'<span>'+
|
||||
'</span>'+
|
||||
'</div>');
|
||||
|
||||
@@ -141,13 +143,13 @@ define(function(require) {
|
||||
// create a thumbs container if it doesn't exist. put it in the dataTables_scrollbody div
|
||||
if (this.$('tr', {"filter": "applied"} ).length == 0) {
|
||||
this.html('<div class="text-center">'+
|
||||
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
|
||||
'<span class="fa-stack fa-5x">'+
|
||||
'<i class="fa fa-cloud fa-stack-2x"></i>'+
|
||||
'<i class="fa fa-info-circle fa-stack-1x fa-inverse"></i>'+
|
||||
'</span>'+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
'<span style="font-size: 18px; color: #999">'+
|
||||
'<span>'+
|
||||
Locale.tr("Looks like you don't have any Service. Click the button below to get started")+
|
||||
'</span>'+
|
||||
'<br>'+
|
||||
@@ -161,7 +163,7 @@ define(function(require) {
|
||||
'<br>'+
|
||||
'</div>');
|
||||
} else {
|
||||
$(".provision_flows_table", context).html('<ul class="provision_flows_ul large-block-grid-3 medium-block-grid-3 small-block-grid-1 text-center"></ul>');
|
||||
$(".provision_flows_table", context).html('<div class="provision_flows_ul large-up-3 medium-up-3 small-up-1"></div>');
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -182,36 +184,36 @@ define(function(require) {
|
||||
}
|
||||
|
||||
roles_li +=
|
||||
'<li class="provision-bullet-item text-left"">'+
|
||||
'<i class="fa fa-fw fa-lg fa-cube"/> '+
|
||||
'<li class="provision-bullet-item"">'+
|
||||
'<i class="fa fa-fw fa-lg fa-cube"/> '+
|
||||
role.name+
|
||||
'<span class="right" style="font-size: 12px">'+rvms.str+" VMs</span>"+
|
||||
'<span>'+rvms.str+" VMs</span>"+
|
||||
'</li>';
|
||||
});
|
||||
}
|
||||
|
||||
$(".provision_flows_ul", context).append('<li>'+
|
||||
'<ul class="provision-pricing-table" opennebula_id="'+data.ID+'" datatable_index="'+iDisplayIndexFull+'">'+
|
||||
'<li class="provision-title text-left">'+
|
||||
'<a class="provision_info_flow_button" style="color:#555" href="#">'+
|
||||
'<span class="'+ state.color +'-color" title="'+ state.str +'">'+
|
||||
'<i class="fa fa-fw fa-lg fa-square"/> '+
|
||||
$(".provision_flows_ul", context).append('<div class="column">'+
|
||||
'<ul class="provision-pricing-table menu vertical" opennebula_id="'+data.ID+'" datatable_index="'+iDisplayIndexFull+'">'+
|
||||
'<li class="provision-title">'+
|
||||
'<a class="provision_info_flow_button" href="#">'+
|
||||
'<span class="'+ state.color +'-color right" title="'+ state.str +'">'+
|
||||
'<i class="fa fa-fw fa-lg fa-square"/>'+
|
||||
'</span>'+
|
||||
data.NAME +
|
||||
'</a>'+
|
||||
'</li>'+
|
||||
roles_li +
|
||||
'<li class="provision-bullet-item-last text-right">'+
|
||||
'<span class="left">'+
|
||||
'<i class="fa fa-fw fa-lg fa-user"/> '+
|
||||
'<li class="provision-bullet-item-last">'+
|
||||
'<span>'+
|
||||
'<i class="fa fa-fw fa-lg fa-user"/> '+
|
||||
data.UNAME+
|
||||
'</span>'+
|
||||
'<span>'+
|
||||
'<span class="right">'+
|
||||
(start_time ? Humanize.prettyTimeAgo(start_time) : '-') +
|
||||
'</span>'+
|
||||
'</li>'+
|
||||
'</ul>'+
|
||||
'</li>');
|
||||
'</div>');
|
||||
|
||||
return nRow;
|
||||
}
|
||||
@@ -256,7 +258,7 @@ define(function(require) {
|
||||
OpenNebula.Action.clear_cache("SERVICE");
|
||||
update_provision_flows_datatable(provision_flows_datatable, 0);
|
||||
|
||||
$(document).foundation();
|
||||
//$(document).foundation();
|
||||
}
|
||||
|
||||
function setup_info_flow(context) {
|
||||
@@ -310,22 +312,22 @@ define(function(require) {
|
||||
$(".provision_info_flow_name", context).text(data.NAME);
|
||||
|
||||
$(".provision-pricing-table_flow_info", context).html(
|
||||
'<li class="text-left provision-bullet-item">'+
|
||||
'<li class="provision-bullet-item">'+
|
||||
'<span class="'+ state.color +'-color">'+
|
||||
'<i class="fa fa-fw fa-lg fa-square"/> '+
|
||||
'<i class="fa fa-fw fa-lg fa-square"/> '+
|
||||
state.str+
|
||||
'</span>'+
|
||||
'</li>'+
|
||||
'<li class="text-left provision-bullet-item">'+
|
||||
'<hr style="margin: 0px">'+
|
||||
'<li class="provision-bullet-item">'+
|
||||
'<hr>'+
|
||||
'</li>'+
|
||||
'<li class="text-left provision-bullet-item">'+
|
||||
'<span style="color: #999;">'+
|
||||
'<i class="fa fa-fw fa-lg fa-user"/> '+
|
||||
'<li class="provision-bullet-item">'+
|
||||
'<span>'+
|
||||
'<i class="fa fa-fw fa-lg fa-user"/> '+
|
||||
data.UNAME+
|
||||
'</span>'+
|
||||
'<span class="right" style="color: #999;">'+
|
||||
'<i class="fa fa-fw fa-lg fa-clock-o"/> '+
|
||||
'<span>'+
|
||||
'<i class="fa fa-fw fa-lg fa-clock-o"/> '+
|
||||
(start_time ? Humanize.prettyTimeAgo(start_time) : "...") +
|
||||
' - '+
|
||||
'ID: '+
|
||||
@@ -344,36 +346,36 @@ define(function(require) {
|
||||
}
|
||||
|
||||
var li = $(
|
||||
'<li>'+
|
||||
'<ul class="provision_role_ul provision-pricing-table">'+
|
||||
'<li class="provision-title text-left">'+
|
||||
'<i class="fa fa-fw fa-cube"/> '+
|
||||
'<div class="column">'+
|
||||
'<ul class="provision_role_ul provision-pricing-table menu vertical">'+
|
||||
'<li class="provision-title">'+
|
||||
'<i class="fa fa-fw fa-cube"/> '+
|
||||
role.name+
|
||||
'</li>'+
|
||||
'<li class="provision-bullet-item text-left" style="padding-top: 5px; margin-left: 10px; margin-right: 10px">'+
|
||||
'<div class="progress small radius" style="margin-bottom:0px">'+
|
||||
'<li class="provision-bullet-item">'+
|
||||
'<div class="progress small radius">'+
|
||||
' <span class="meter" style="width: '+rvms.percentage+'%;"></span>'+
|
||||
'</div>'+
|
||||
'</li>'+
|
||||
'<li class="provision-bullet-item text-left" style="padding-top: 0px; margin-left: 10px; margin-right: 10px; font-size: 14px">'+
|
||||
'<li class="provision-bullet-item">'+
|
||||
'<span class="'+ role_state.color +'-color">'+
|
||||
role_state.str+
|
||||
'</span>'+
|
||||
'<span class="right">'+rvms.str+" VMs</span>"+
|
||||
'<span>'+rvms.str+" VMs</span>"+
|
||||
'</li>'+
|
||||
'<li class="text-left provision-bullet-item">'+
|
||||
'<li class="provision-bullet-item">'+
|
||||
'<br>'+
|
||||
'</li>'+
|
||||
'<li class="provision-bullet-item text-left" style="padding-top: 5px; margin-left: 10px; margin-right: 10px">'+
|
||||
'<li class="provision-bullet-item">'+
|
||||
'<a class="provision_role_vms_button button medium radius">'+
|
||||
'<i class="fa fa-th fa-lg"></i>'+
|
||||
'</a>'+
|
||||
'<a class="provision_role_cardinality_button button medium success right radius">'+
|
||||
'<a class="provision_role_cardinality_button button medium success radius">'+
|
||||
'<i class="fa fa-arrows-h fa-lg"></i>'+
|
||||
'</a>'+
|
||||
'</li>'+
|
||||
'</ul>'+
|
||||
'</li>').appendTo($(".provision_roles_ul", context));
|
||||
'</div>').appendTo($(".provision_roles_ul", context));
|
||||
|
||||
$(".provision_role_ul", li).data("role", role);
|
||||
if (role_id && role_id == role.name) {
|
||||
@@ -382,8 +384,6 @@ define(function(require) {
|
||||
});
|
||||
}
|
||||
|
||||
$(".provision_info_flow_state_hr", context).html('<div style="height:1px; margin-top:5px; margin-bottom: 5px; background: #cfcfcf"></div>');
|
||||
|
||||
$(".provision_confirm_action:first", context).html("");
|
||||
|
||||
$(".provision_info_flow_loading", context).hide();
|
||||
@@ -394,13 +394,13 @@ define(function(require) {
|
||||
|
||||
context.on("click", ".provision_role_vms_button", function(){
|
||||
$(".provision_role_vms_container", context).html('<div class="text-center">'+
|
||||
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
|
||||
'<span class="fa-stack fa-5x">'+
|
||||
'<i class="fa fa-cloud fa-stack-2x"></i>'+
|
||||
'<i class="fa fa-spinner fa-spin fa-stack-1x fa-inverse"></i>'+
|
||||
'</span>'+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
'<span style="font-size: 18px; color: #999">'+
|
||||
'<span>'+
|
||||
'</span>'+
|
||||
'</div>');
|
||||
|
||||
@@ -432,52 +432,51 @@ define(function(require) {
|
||||
var max_vms = (role.max_vms||100);
|
||||
|
||||
$(".provision_confirm_action:first", context).html(
|
||||
'<div data-alert class="alert-box secondary radius">'+
|
||||
'<div data-closable class="callout secondary large">'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-12 large-centered columns">'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-4 text-center columns">'+
|
||||
'<span class="cardinality_value" style="color: #777; font-size:60px">'+role.cardinality+'</span>'+
|
||||
'<div class="large-4 columns">'+
|
||||
'<span class="cardinality_value">'+role.cardinality+'</span>'+
|
||||
'<br>'+
|
||||
'<span style="color: #999; font-size:20px">'+role.name + ' ' + Locale.tr("VMs")+'</span>'+
|
||||
'<span>'+role.name + ' ' + Locale.tr("VMs")+'</span>'+
|
||||
'</div>'+
|
||||
'<div class="large-8 columns">'+
|
||||
'<div class="cardinality_slider_div">'+
|
||||
'<br>'+
|
||||
'<span class="left" style="color: #999;">'+min_vms+'</span>'+
|
||||
'<span class="right" style="color: #999;">'+max_vms+'</span>'+
|
||||
'<br>'+
|
||||
'<div class="range-slider cardinality_slider" data-slider>'+
|
||||
'<span class="range-slider-handle" role="slider" tabindex="0"></span>'+
|
||||
'<span class="range-slider-active-segment"></span>'+
|
||||
'<input type="hidden">'+
|
||||
'</div>'+
|
||||
'<br>'+
|
||||
'<a href"#" class="provision_change_cardinality_button success button radius large-12" role_id="'+role.name+'">'+Locale.tr("Change Cardinality")+'</a>'+
|
||||
'</div>'+
|
||||
'<a href"#" class="provision_change_cardinality_button success button radius large-12" role_id="'+role.name+'">'+Locale.tr("Change Cardinality")+'</a>'+
|
||||
'<div class="cardinality_no_slider_div">'+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
'<span class="" style="color: #999;">'+Locale.tr("The cardinality for this role cannot be changed")+'</span>'+
|
||||
'<span class="">'+Locale.tr("The cardinality for this role cannot be changed")+'</span>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'<a href="#" class="close" style="top: 20px">×</a>'+
|
||||
'<button class="close-button" aria-label="' + Locale.tr("Dismiss Alert") + ' type="button" data-close>' +
|
||||
'<span aria-hidden="true">×</span>' +
|
||||
'</button>'+
|
||||
'</div>');
|
||||
|
||||
context.foundation('slider', 'reflow');
|
||||
//TODO context.foundation('slider', 'reflow');
|
||||
if (max_vms > min_vms) {
|
||||
$( ".cardinality_slider_div", context).html(RangeSlider.html({
|
||||
min: min_vms,
|
||||
max: max_vms,
|
||||
initial: role.cardinality
|
||||
}));
|
||||
|
||||
$( ".cardinality_slider_div", context).show();
|
||||
$(".provision_change_cardinality_button").show();
|
||||
$( ".cardinality_no_slider_div", context).hide();
|
||||
|
||||
$( ".cardinality_slider", context).attr('data-options', 'start: '+min_vms+'; end: '+max_vms+';');
|
||||
$( ".cardinality_slider", context).foundation('slider', 'set_value', role.cardinality);
|
||||
$( ".cardinality_slider_div", context).on("input", '.uinput-slider', function() {
|
||||
$(".cardinality_value",context).html($(this).val())
|
||||
});
|
||||
|
||||
$( ".cardinality_slider", context).on('change.fndtn.slider', function(){
|
||||
$(".cardinality_value",context).html($(this).attr('data-slider'))
|
||||
});
|
||||
} else {
|
||||
$( ".cardinality_slider_div", context).hide();
|
||||
$(".provision_change_cardinality_button").hide();
|
||||
$( ".cardinality_no_slider_div", context).show();
|
||||
}
|
||||
|
||||
@@ -486,7 +485,7 @@ define(function(require) {
|
||||
|
||||
context.on("click", ".provision_change_cardinality_button", function(){
|
||||
var flow_id = $(".provision_info_flow", context).attr("flow_id");
|
||||
var cardinality = $(".cardinality_slider", context).attr('data-slider');
|
||||
var cardinality = $('.uinput-slider-value', context).val();
|
||||
|
||||
OpenNebula.Role.update({
|
||||
data : {
|
||||
@@ -505,39 +504,43 @@ define(function(require) {
|
||||
|
||||
context.on("click", ".provision_delete_confirm_button", function(){
|
||||
$(".provision_confirm_action:first", context).html(
|
||||
'<div data-alert class="alert-box secondary radius">'+
|
||||
'<div data-closable class="callout secondary large">'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-9 columns">'+
|
||||
'<span style="font-size: 14px; line-height: 20px">'+
|
||||
'<span>'+
|
||||
Locale.tr("Be careful, this action will immediately destroy your Service")+
|
||||
'<br>'+
|
||||
Locale.tr("All the information will be lost!")+
|
||||
'</span>'+
|
||||
'</div>'+
|
||||
'<div class="large-3 columns">'+
|
||||
'<a href"#" class="provision_delete_button alert button large-12 radius right" style="margin-right: 15px">'+Locale.tr("Delete")+'</a>'+
|
||||
'<a href"#" class="provision_delete_button alert button large-12 radius">'+Locale.tr("Delete")+'</a>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'<a href="#" class="close">×</a>'+
|
||||
'<button class="close-button" aria-label="' + Locale.tr("Dismiss Alert") + ' type="button" data-close>' +
|
||||
'<span aria-hidden="true">×</span>' +
|
||||
'</button>'+
|
||||
'</div>');
|
||||
});
|
||||
|
||||
context.on("click", ".provision_shutdown_confirm_button", function(){
|
||||
$(".provision_confirm_action:first", context).html(
|
||||
'<div data-alert class="alert-box secondary radius">'+
|
||||
'<div data-closable class="callout secondary large">'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-9 columns">'+
|
||||
'<span style="font-size: 14px; line-height: 20px">'+
|
||||
'<span>'+
|
||||
Locale.tr("Be careful, this action will immediately shutdown your Service")+
|
||||
'<br>'+
|
||||
Locale.tr("All the information will be lost!")+
|
||||
'</span>'+
|
||||
'</div>'+
|
||||
'<div class="large-3 columns">'+
|
||||
'<a href"#" class="provision_shutdown_button alert button large-12 radius right" style="margin-right: 15px">'+Locale.tr("Shutdown")+'</a>'+
|
||||
'<a href"#" class="provision_shutdown_button alert button large-12 radius">'+Locale.tr("Shutdown")+'</a>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'<a href="#" class="close">×</a>'+
|
||||
'<button class="close-button" aria-label="' + Locale.tr("Dismiss Alert") + ' type="button" data-close>' +
|
||||
'<span aria-hidden="true">×</span>' +
|
||||
'</button>'+
|
||||
'</div>');
|
||||
});
|
||||
|
||||
|
||||
@@ -13,50 +13,27 @@
|
||||
{{! See the License for the specific language governing permissions and }}
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div style=" padding: 15px 0px 10px 0px; margin-bottom: 10px">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<ul class="inline-list provision-header text-center">
|
||||
<li>
|
||||
<a href"#" class="medium off-color provision_vms_list_button" id="">
|
||||
<i class="fa fa-fw fa-lg fa-th"/>
|
||||
{{tr "VMs"}}
|
||||
</a>
|
||||
</li>
|
||||
{{#isProvisionTabEnabled "provision-tab" "templates"}}
|
||||
<li>
|
||||
<a href"#" class="medium off-color provision_templates_list_button">
|
||||
<i class="fa fa-fw fa-lg fa-save"/>
|
||||
{{tr "Templates"}}
|
||||
</a>
|
||||
</li>
|
||||
{{/isProvisionTabEnabled}}
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<ul class="menu icon-top provision-header text-center">
|
||||
<li>
|
||||
<a href"#" class="provision_vms_list_button" id=""> <i class="fa fa-fw fa-lg fa-th"/>{{tr "VMs"}}
|
||||
</a>
|
||||
</li>
|
||||
{{#isProvisionTabEnabled "provision-tab" "templates"}}
|
||||
<li>
|
||||
<a href"#" class="provision_templates_list_button"> <i class="fa fa-fw fa-lg fa-save"/>{{tr "Templates"}}
|
||||
</a>
|
||||
</li>
|
||||
{{/isProvisionTabEnabled}}
|
||||
{{#isProvisionTabEnabled "provision-tab" "flows"}}
|
||||
<li>
|
||||
<a href"#" class="medium off-color provision_flows_list_button" id="">
|
||||
<i class="fa fa-lg fa-fw fa-cubes"/>
|
||||
{{tr "Services"}}
|
||||
</a>
|
||||
</li>
|
||||
{{/isProvisionTabEnabled}}
|
||||
{{!
|
||||
<li style="border-left: 1px solid #efefef; height: 40px"></li>
|
||||
<li>
|
||||
<a href"#" class="medium off-color" id="provision_user_info_button">
|
||||
<i class="fa fa-fw fa-lg fa-user"/>
|
||||
config[display_name]+
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#" data-dropdown="provision_zone_selector" class="button small radius secondary dropdown off-color" id="zonelector" style="padding:0px; font-size: 12px;">
|
||||
<i class="fa fa-home fa-lg header-icon" style="margin-bottom: 2px"/>
|
||||
+ config[zone_name] +
|
||||
</a>
|
||||
<ul id="provision_zone_selector" data-dropdown-content class="zone-ul f-dropdown"></ul>
|
||||
</li>
|
||||
}}
|
||||
</ul>
|
||||
</div>
|
||||
<li>
|
||||
<a href"#" class="provision_flows_list_button" id="">
|
||||
<i class="fa fa-lg fa-fw fa-cubes"/>
|
||||
{{tr "Services"}}
|
||||
</a>
|
||||
</li>
|
||||
{{/isProvisionTabEnabled}}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -14,46 +14,46 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<dl class="accordion accordion_list provision_list_templates" data-accordion="dfsaf">
|
||||
<dd class="{{#if opts.active}}active{{/if}} accordion-navigation">
|
||||
<a class="right only-not-active" href="#provision_list_template_accordion{{accordionId}}">
|
||||
<span class="button small radius"> <i class="fa fa-fw fa-lg fa-th"/><i class="fa fa-fw fa-lg fa-chevron-left"/>
|
||||
<dl class="accordion accordion_list provision_list_templates" data-accordion>
|
||||
<dd class="{{#if opts.active}}is-active{{/if}} accordion-item" data-accordion-item>
|
||||
<a class="only-not-active accordion-title" href="#provision_list_template_accordion{{accordionId}}">
|
||||
<span class="button"> <i class="fa fa-fw fa-lg fa-th"/><i class="fa fa-fw fa-lg fa-chevron-left"/>
|
||||
</span>
|
||||
</a>
|
||||
<h3 class="subheader">
|
||||
<h3>
|
||||
{{!opts.title}}
|
||||
<span href"#" class="right only-active button small radius secondary provision_templates_list_refresh_button"
|
||||
{{#unless opts.refresh}}style="display:none"{{/unless}} title=" {{tr "Refresh"}}">
|
||||
<span href"#" class="only-active button secondary provision_templates_list_refresh_button"
|
||||
{{#unless opts.refresh}}hidden{{/unless}} title=" {{tr "Refresh"}}">
|
||||
<i class="fa fa-fw fa-lg fa-refresh"/></span>
|
||||
<span href"#" class="right only-active button small radius secondary provision_templates_list_filter_button"
|
||||
{{#unless opts.filter}}style="display:none"{{/unless}} title=" {{tr "Filter by User"}}">
|
||||
<span href"#" class="only-active button secondary provision_templates_list_filter_button"
|
||||
{{#unless opts.filter}}hidden{{/unless}} title=" {{tr "Filter by User"}}">
|
||||
<i class="fa fa-fw fa-lg fa-filter"/>
|
||||
</span>
|
||||
<span class="right only-active provision_list_templates_filter" style="display: none"></span>
|
||||
<span class="only-active provision_list_templates_filter" hidden></span>
|
||||
<input type="search" class="provision_list_templates_search only-active provision-search-input" placeholder="Search Templates"/>
|
||||
</h3>
|
||||
<div id="provision_list_template_accordion{{accordionId}}" class="content {{#if opts.active}}active{{/if}}">
|
||||
<div id="provision_list_template_accordion{{accordionId}}" class="accordion-content" data-tab-content>
|
||||
<div class="row">
|
||||
<div class="provision_confirm_delete_template_div large-12 large-centered columns"></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 large-centered columns">
|
||||
<table class="provision_templates_table">
|
||||
<thead class="hidden">
|
||||
<thead hidden>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
<th>User ID</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="hidden"></tbody>
|
||||
<tbody hidden></tbody>
|
||||
</table>
|
||||
<br></div>
|
||||
</div>
|
||||
</div>
|
||||
</dd>
|
||||
<dd class="accordion-navigation">
|
||||
<a class="provision_show_template_accordion" href="#provision_show_template_accordion{{accordionId}}"></a>
|
||||
<div id="provision_show_template_accordion{{accordionId}}" class="content"></div>
|
||||
<dd class="accordion-item" data-accordion-item>
|
||||
<a class="provision_show_template_accordion accordion-title" href="#provision_show_template_accordion{{accordionId}}"></a>
|
||||
<div id="provision_show_template_accordion{{accordionId}}" class="accordion-content" data-tab-content></div>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -15,7 +15,7 @@
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
define(function(require) {
|
||||
require('foundation.alert');
|
||||
// require('foundation.alert');
|
||||
var OpenNebula = require('opennebula');
|
||||
var Locale = require('utils/locale');
|
||||
var Config = require('sunstone-config');
|
||||
@@ -45,6 +45,7 @@ define(function(require) {
|
||||
function generate_provision_templates_list(context, opts) {
|
||||
context.off();
|
||||
context.html(html(opts));
|
||||
Foundation.reflow(context, 'accordion');
|
||||
setup_provision_templates_list(context, opts);
|
||||
}
|
||||
|
||||
@@ -63,13 +64,13 @@ define(function(require) {
|
||||
|
||||
function update_provision_templates_datatable(datatable, timeout) {
|
||||
datatable.html('<div class="text-center">'+
|
||||
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
|
||||
'<span class="fa-stack fa-5x">'+
|
||||
'<i class="fa fa-cloud fa-stack-2x"></i>'+
|
||||
'<i class="fa fa-spinner fa-spin fa-stack-1x fa-inverse"></i>'+
|
||||
'</span>'+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
'<span style="font-size: 18px; color: #999">'+
|
||||
'<span>'+
|
||||
'</span>'+
|
||||
'</div>');
|
||||
|
||||
@@ -80,13 +81,13 @@ define(function(require) {
|
||||
datatable.fnClearTable(true);
|
||||
if (item_list.length == 0) {
|
||||
datatable.html('<div class="text-center">'+
|
||||
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
|
||||
'<span class="fa-stack fa-5x">'+
|
||||
'<i class="fa fa-cloud fa-stack-2x"></i>'+
|
||||
'<i class="fa fa-info-circle fa-stack-1x fa-inverse"></i>'+
|
||||
'</span>'+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
'<span style="font-size: 18px; color: #999">'+
|
||||
'<span>'+
|
||||
Locale.tr("There are no templates available")+
|
||||
'</span>'+
|
||||
'</div>');
|
||||
@@ -126,20 +127,20 @@ define(function(require) {
|
||||
// create a thumbs container if it doesn't exist. put it in the dataTables_scrollbody div
|
||||
if (this.$('tr', {"filter": "applied"} ).length == 0) {
|
||||
this.html('<div class="text-center">'+
|
||||
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
|
||||
'<span class="fa-stack fa-5x">'+
|
||||
'<i class="fa fa-cloud fa-stack-2x"></i>'+
|
||||
'<i class="fa fa-info-circle fa-stack-1x fa-inverse"></i>'+
|
||||
'</span>'+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
'<span style="font-size: 18px; color: #999">'+
|
||||
'<span>'+
|
||||
Locale.tr("There are no templates available")+
|
||||
'<br>'+
|
||||
Locale.tr("Create a template by saving a running Virtual Machine")+
|
||||
'</span>'+
|
||||
'</div>');
|
||||
} else {
|
||||
$(".provision_templates_table", context).html('<ul class="provision_templates_ul large-block-grid-3 medium-block-grid-3 small-block-grid-1 text-center"></ul>');
|
||||
$(".provision_templates_table", context).html('<div class="provision_templates_ul large-up-3 medium-up-3 small-up-1"></div>');
|
||||
}
|
||||
return true;
|
||||
},
|
||||
@@ -150,16 +151,16 @@ define(function(require) {
|
||||
if (data.UID == config['user_id']) {
|
||||
|
||||
if (data.PERMISSIONS.GROUP_U == "1") {
|
||||
actions_html += '<a class="provision_confirm_unshare_template_button left" title="'+ Locale.tr("Unshare")+'" style="color:#555" href="#"><i class="fa fa-fw fa-lg fa-ban only-on-hover"/></a>';
|
||||
actions_html += '<span style="font-size:12px; color: #777">' + Locale.tr("SHARED") + '</span>';
|
||||
actions_html += '<a class="provision_confirm_unshare_template_button left" title="'+ Locale.tr("Unshare")+'" href="#"><i class="fa fa-fw fa-lg fa-ban only-on-hover"/></a>';
|
||||
actions_html += '<span>' + Locale.tr("SHARED") + '</span>';
|
||||
} else {
|
||||
actions_html += '<a class="provision_confirm_chmod_template_button left" title="'+ Locale.tr("Share")+'" style="color:#555" href="#"><i class="fa fa-fw fa-lg fa-share-alt only-on-hover"/></a>';
|
||||
actions_html += '<a class="provision_confirm_chmod_template_button left" title="'+ Locale.tr("Share")+'" href="#"><i class="fa fa-fw fa-lg fa-share-alt only-on-hover"/></a>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Config.isTabActionEnabled("provision-tab", "Template.delete")) {
|
||||
actions_html += '<a class="provision_confirm_delete_template_button" title="'+ Locale.tr("Delete")+'" style="color:#555" href="#"><i class="fa fa-fw fa-lg fa-trash-o right only-on-hover"/></a>';
|
||||
actions_html += '<a class="provision_confirm_delete_template_button" title="'+ Locale.tr("Delete")+'" href="#"><i class="fa fa-fw fa-lg fa-trash-o only-on-hover"/></a>';
|
||||
}
|
||||
|
||||
var cpu_txt = "";
|
||||
@@ -177,24 +178,26 @@ define(function(require) {
|
||||
}
|
||||
}
|
||||
|
||||
$(".provision_templates_ul", context).append('<li>'+
|
||||
'<ul class="provision-pricing-table" opennebula_id="'+data.ID+'" datatable_index="'+iDisplayIndexFull+'">'+
|
||||
'<li class="provision-title text-left" title="'+data.NAME+'">'+
|
||||
data.NAME +
|
||||
$(".provision_templates_ul", context).append('<div class="column">'+
|
||||
'<ul class="provision-pricing-table menu vertical" opennebula_id="'+data.ID+'" datatable_index="'+iDisplayIndexFull+'">'+
|
||||
'<li class="provision-title" title="'+data.NAME+'">'+
|
||||
'<span class="without-link">' +
|
||||
data.NAME +
|
||||
'</span>' +
|
||||
'</li>'+
|
||||
'<li class="provision-bullet-item text-left" >'+
|
||||
'<li class="provision-bullet-item" >'+
|
||||
'<i class="fa fa-fw fa-lg fa-laptop"/> '+
|
||||
cpu_txt+' - '+
|
||||
mem_txt+' - '+
|
||||
get_provision_disk_image(data) +
|
||||
'</li>'+
|
||||
'<li class="provision-description text-left" style="padding-top:0px; padding-bottom: 5px">'+
|
||||
'<li class="provision-description">'+
|
||||
(data.TEMPLATE.DESCRIPTION || '')+
|
||||
'</li>'+
|
||||
'<li class="provision-bullet-item" style="padding-top:10px">'+
|
||||
'<li class="provision-bullet-item text-right">'+
|
||||
actions_html+
|
||||
'</li>'+
|
||||
'<li class="provision-bullet-item-last text-left" >'+
|
||||
'<li class="provision-bullet-item-last" >'+
|
||||
'<span class="">'+
|
||||
'<i class="fa fa-fw fa-lg fa-user"/> '+
|
||||
data.UNAME+
|
||||
@@ -204,7 +207,7 @@ define(function(require) {
|
||||
'</span>'+
|
||||
'</li>'+
|
||||
'</ul>'+
|
||||
'</li>');
|
||||
'</div>');
|
||||
|
||||
return nRow;
|
||||
}
|
||||
@@ -257,14 +260,14 @@ define(function(require) {
|
||||
'<div data-alert class="alert-box secondary radius">'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-9 columns">'+
|
||||
'<span style="font-size: 14px; line-height: 20px">'+
|
||||
'<span>'+
|
||||
Locale.tr("Handle with care! This action will immediately destroy the template")+
|
||||
' "' + template_name + '" ' +
|
||||
Locale.tr("and the image associated.") +
|
||||
'</span>'+
|
||||
'</div>'+
|
||||
'<div class="large-3 columns">'+
|
||||
'<a href"#" class="provision_delete_template_button alert button large-12 radius right" style="margin-right: 15px" template_id="'+template_id+'">'+Locale.tr("Delete")+'</a>'+
|
||||
'<a href"#" class="provision_delete_template_button alert button large-12 radius right" template_id="'+template_id+'">'+Locale.tr("Delete")+'</a>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'<a href="#" class="close">×</a>'+
|
||||
@@ -305,14 +308,14 @@ define(function(require) {
|
||||
'<div data-alert class="alert-box secondary radius">'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-8 columns">'+
|
||||
'<span style="font-size: 14px; line-height: 20px">'+
|
||||
'<span>'+
|
||||
Locale.tr("The template")+
|
||||
' "' + template_name + '" ' +
|
||||
Locale.tr("and the image associated will be shared and all the users will be able to instantiate new VMs using this template.") +
|
||||
'</span>'+
|
||||
'</div>'+
|
||||
'<div class="large-4 columns">'+
|
||||
'<a href"#" class="provision_chmod_template_button success button large-12 radius right" style="margin-right: 15px" template_id="'+template_id+'">'+Locale.tr("Share template")+'</a>'+
|
||||
'<a href"#" class="provision_chmod_template_button success button large-12 radius right" template_id="'+template_id+'">'+Locale.tr("Share template")+'</a>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'<a href="#" class="close">×</a>'+
|
||||
@@ -351,14 +354,14 @@ define(function(require) {
|
||||
'<div data-alert class="alert-box secondary radius">'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-8 columns">'+
|
||||
'<span style="font-size: 14px; line-height: 20px">'+
|
||||
'<span>'+
|
||||
Locale.tr("The template")+
|
||||
' "' + template_name + '" ' +
|
||||
Locale.tr("and the image associated will be unshared and the users will not be able to instantiate new VMs using this template.") +
|
||||
'</span>'+
|
||||
'</div>'+
|
||||
'<div class="large-4 columns">'+
|
||||
'<a href"#" class="provision_unshare_template_button success button large-12 radius right" style="margin-right: 15px" template_id="'+template_id+'">'+Locale.tr("Unshare template")+'</a>'+
|
||||
'<a href"#" class="provision_unshare_template_button success button large-12 radius right" template_id="'+template_id+'">'+Locale.tr("Unshare template")+'</a>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'<a href="#" class="close">×</a>'+
|
||||
@@ -390,7 +393,7 @@ define(function(require) {
|
||||
|
||||
OpenNebula.Action.clear_cache("VMTEMPLATE");
|
||||
update_provision_templates_datatable(provision_templates_datatable, 0);
|
||||
context.foundation();
|
||||
// context.foundation();
|
||||
}
|
||||
|
||||
function get_provision_disk_image(data) {
|
||||
|
||||
@@ -13,36 +13,33 @@
|
||||
{{! See the License for the specific language governing permissions and }}
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
<form id="provision_create_vm" class="hidden section_content">
|
||||
<form id="provision_create_vm" class="section_content" hidden>
|
||||
<div class="row">
|
||||
<div class="large-10 large-centered columns">
|
||||
<h2 class="subheader">{{tr "Create Virtual Machine"}}</h2>
|
||||
<br>
|
||||
</div>
|
||||
<br></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-8 large-centered columns">
|
||||
<input type="text" id="vm_name" class="provision-input" placeholder="{{tr "Virtual Machine Name"}}" style="height: 40px !important; font-size: 16px; padding: 0.5rem !important;"/>
|
||||
<br>
|
||||
</div>
|
||||
<input type="text" id="vm_name" class="provision-input" placeholder="{{tr "Virtual Machine Name"}}"/>
|
||||
<br></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-10 large-centered columns">
|
||||
<dl class="accordion provision_accordion_template" data-accordion="provision_accordion_template">
|
||||
<dd style="border-bottom: 1px solid #efefef;" class="active accordion-navigation">
|
||||
<a href="#provision_dd_template" style="background: #fff; font-size: 30px">
|
||||
<span class="select_template" style="color:#555">{{tr "Select a Template"}}</span>
|
||||
<span class="selected_template" style="display:none; color:#555">
|
||||
<span class="provision-logo selected_template_logo" style="line-height: 80px"></span>
|
||||
<ul class="accordion provision_accordion_template" data-accordion data-allow-all-closed="true">
|
||||
<li class="accordion-item is-active" data-accordion-item>
|
||||
<a href="#provision_dd_template" class="accordion-title">
|
||||
<span class="select_template">{{tr "Select a Template"}}</span>
|
||||
<span class="selected_template" hidden>
|
||||
<span class="provision-logo selected_template_logo"></span>
|
||||
<span class="selected_template_name"></span>
|
||||
<span class="has-tip right" style="cursor: pointer; margin-right:10px; line-height: 80px"> <i class="fa fa-pencil"/></span>
|
||||
<span class="has-tip right"> <i class="fa fa-pencil"/></span>
|
||||
</span>
|
||||
</a>
|
||||
<div id="provision_dd_template" class="active content">
|
||||
<div id="provision_dd_template" class="accordion-content" data-tab-content>
|
||||
<div class="row">
|
||||
<div class="medium-8 columns">
|
||||
<button href="#" data-options="align:right" data-dropdown="provisionVMInstantiateLabelsDropdown" class="right small secondary button dropdown radius">
|
||||
<i class="fa fa-tags"/> {{tr "Labels"}}
|
||||
<button href="#" data-options="align:right" data-dropdown="provisionVMInstantiateLabelsDropdown" class="right small secondary button dropdown"> <i class="fa fa-tags"/>{{tr "Labels"}}
|
||||
</button>
|
||||
<ul id="provisionVMInstantiateLabelsDropdown" class="labels-dropdown f-dropdown" data-dropdown-content></ul>
|
||||
<input type="search" class="right provision-search-input" placeholder="Search" id="provision_vm_instantiate_template_search"/>
|
||||
@@ -59,7 +56,7 @@
|
||||
<div class="row provision_select_template">
|
||||
<div class="small-12 columns">
|
||||
<table id="provision_vm_instantiate_templates_table">
|
||||
<thead class="hidden">
|
||||
<thead hidden>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Name</th>
|
||||
@@ -67,16 +64,15 @@
|
||||
<th>Labels</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="hidden"></tbody>
|
||||
<tbody hidden></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="large-10 large-centered columns">
|
||||
<div class="provision_capacity_selector"></div>
|
||||
@@ -88,15 +84,10 @@
|
||||
<div class="provision_custom_attributes_selector"></div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="large-7 columns large-centered">
|
||||
<div data-alert class="alert-box alert-box-error radius text-center hidden"></div>
|
||||
<button href="#" class="button large success radius large-12 small-12" type="submit" style="height: 59px">{{tr "Create"}}</button>
|
||||
<div data-alert class="alert-box alert-box-error text-center" hidden></div>
|
||||
<button href="#" class="button large success large-12 small-12" type="submit">{{tr "Create"}}</button>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<br>
|
||||
</form>
|
||||
@@ -15,26 +15,26 @@
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div class="text-center provision_info_vm_loading">
|
||||
<span class="fa-stack fa-5x" style="color: #dfdfdf"> <i class="fa fa-cloud fa-stack-2x"></i> <i class="fa fa-spinner fa-spin fa-stack-1x fa-inverse"></i>
|
||||
<span class="fa-stack fa-5x"> <i class="fa fa-cloud fa-stack-2x"></i> <i class="fa fa-spinner fa-spin fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
<br>
|
||||
<br>
|
||||
<span style="font-size: 18px; color: #999"></span>
|
||||
<span></span>
|
||||
</div>
|
||||
<div class="provision_info_vm">
|
||||
<div class="row">
|
||||
<div class="large-12 large-centered columns">
|
||||
<ul class="inline-list provision_action_icons">
|
||||
<ul class="menu provision_action_icons">
|
||||
<li>
|
||||
<a href"#" title="{{tr "Open a remote console in a new window"}}" class="left button small radius provision_vnc_button tip-top">
|
||||
<i class="fa fa-fw fa-lg fa-desktop"/></a>
|
||||
<a title="{{tr "You have to boot the Virtual Machine first"}}" class="left button small radius white provision_vnc_button_disabled tip-top" style="color: #999">
|
||||
<a title="{{tr "You have to boot the Virtual Machine first"}}" class="left button small radius white provision_vnc_button_disabled tip-top">
|
||||
<i class="fa fa-fw fa-lg fa-desktop"/></a>
|
||||
{{#isProvisionTabEnabled "provision-tab" "templates"}}
|
||||
<a href"#" title="{{tr "The main disk of the Virtual Machine will be saved in a new Image"}}" class="left button small radius success provision_snapshot_button tip-top">
|
||||
<i class="fa fa-fw fa-lg fa-save"/>
|
||||
</a>
|
||||
<a title="{{tr "You have to power-off the virtual machine first"}}" class="left button small radius white provision_snapshot_button_disabled tip-top" style="color: #999">
|
||||
<a title="{{tr "You have to power-off the virtual machine first"}}" class="left button small radius white provision_snapshot_button_disabled tip-top">
|
||||
<i class="fa fa-fw fa-lg fa-save"/>
|
||||
</a>
|
||||
{{/isProvisionTabEnabled}}
|
||||
@@ -79,21 +79,21 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-5 columns">
|
||||
<ul class="provision-pricing-table_vm_info provision-pricing-table" style="border: 0px !important; margin-top: 20px;"></ul>
|
||||
<ul class="provision-pricing-table_vm_info provision-pricing-table menu vertical"></ul>
|
||||
</div>
|
||||
<div class="large-6 columns right">
|
||||
<div class="row">
|
||||
<div class="large-6 medium-6 columns">
|
||||
<div class="row text-center">
|
||||
<div class="large-12 columns">
|
||||
<h4 class="subheader" style="margin: 0px">
|
||||
<h4 class="subheader">
|
||||
<small>{{tr "CPU"}}</small>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<div class="large-12 columns centered graph vm_cpu_provision_graph" style="height: 100px;"></div>
|
||||
<div class="large-12 columns centered graph vm_cpu_provision_graph"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row graph_legend">
|
||||
@@ -103,14 +103,14 @@
|
||||
<div class="large-6 medium-6 columns">
|
||||
<div class="row text-center">
|
||||
<div class="large-12 columns">
|
||||
<h4 class="subheader" style="margin: 0px">
|
||||
<h4 class="subheader">
|
||||
<small>{{tr "Memory"}}</small>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<div class="large-12 columns centered graph vm_memory_provision_graph" style="height: 100px;"></div>
|
||||
<div class="large-12 columns centered graph vm_memory_provision_graph"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row graph_legend">
|
||||
@@ -125,14 +125,14 @@
|
||||
<div class="large-3 medium-6 columns">
|
||||
<div class="row text-center">
|
||||
<div class="large-12 columns">
|
||||
<h4 class="subheader" style="margin: 0px">
|
||||
<h4 class="subheader">
|
||||
<small>{{tr "Net RX"}}</small>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<div class="large-12 columns centered graph vm_net_rx_provision_graph" style="height: 100px;"></div>
|
||||
<div class="large-12 columns centered graph vm_net_rx_provision_graph"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row graph_legend">
|
||||
@@ -142,14 +142,14 @@
|
||||
<div class="large-3 medium-6 columns">
|
||||
<div class="row text-center">
|
||||
<div class="large-12 columns">
|
||||
<h4 class="subheader" style="margin: 0px">
|
||||
<h4 class="subheader">
|
||||
<small>{{tr "Net TX"}}</small>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<div class="large-12 columns centered graph vm_net_tx_provision_graph" style="height: 100px;"></div>
|
||||
<div class="large-12 columns centered graph vm_net_tx_provision_graph"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row graph_legend">
|
||||
@@ -159,14 +159,14 @@
|
||||
<div class="large-3 medium-6 columns">
|
||||
<div class="row text-center">
|
||||
<div class="large-12 columns">
|
||||
<h4 class="subheader" style="margin: 0px">
|
||||
<h4 class="subheader">
|
||||
<small>{{tr "Net Download Speed"}}</small>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<div class="large-12 columns centered graph vm_net_rx_speed_provision_graph" style="height: 100px;"></div>
|
||||
<div class="large-12 columns centered graph vm_net_rx_speed_provision_graph"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row graph_legend">
|
||||
@@ -176,14 +176,14 @@
|
||||
<div class="large-3 medium-6 columns">
|
||||
<div class="row text-center">
|
||||
<div class="large-12 columns">
|
||||
<h4 class="subheader" style="margin: 0px">
|
||||
<h4 class="subheader">
|
||||
<small>{{tr "Net Upload Speed"}}</small>
|
||||
</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<div class="large-12 columns centered graph vm_net_tx_speed_provision_graph" style="height: 100px;"></div>
|
||||
<div class="large-12 columns centered graph vm_net_tx_speed_provision_graph"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row graph_legend">
|
||||
|
||||
@@ -13,62 +13,59 @@
|
||||
{{! See the License for the specific language governing permissions and }}
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<dl class="accordion accordion_list provision_list_vms" data-accordion>
|
||||
<dd class="{{#if opts.active}}active{{/if}} accordion-navigation">
|
||||
<a href="#provision_list_vm_accordion{{accordionId}}" class="provision_back right only-not-active">
|
||||
<span class="button small radius"> <i class="fa fa-fw fa-lg fa-th"/><i class="fa fa-fw fa-lg fa-chevron-left"/>
|
||||
<dd class="{{#if opts.active}}is-active{{/if}} accordion-item" data-accordion-item>
|
||||
<a href="#provision_list_vm_accordion{{accordionId}}" class="provision_back only-not-active accordion-title">
|
||||
<span class="button"> <i class="fa fa-fw fa-lg fa-th"/><i class="fa fa-fw fa-lg fa-chevron-left"/>
|
||||
</span>
|
||||
</a>
|
||||
<h3 class="subheader">
|
||||
<span style="color: #777">
|
||||
<h3>
|
||||
{{!opts.title}}
|
||||
</span>
|
||||
<span class="provision_info_vm_name only-not-active"></span>
|
||||
{{#isTabActionEnabled "provision-tab" "VM.rename"}}
|
||||
 
|
||||
<span class="provision_info_vm_rename only-not-active">
|
||||
<a href="#"> <i class="fa fa-pencil"/></a>
|
||||
</span>
|
||||
<small class="provision_info_vm_rename only-not-active">
|
||||
<a href="#">
|
||||
<i class="fa fa-pencil"/></a>
|
||||
</small>
|
||||
{{/isTabActionEnabled}}
|
||||
<span href"#" class="right only-active button small radius secondary provision_vms_list_refresh_button"
|
||||
{{#unless opts.refresh}}style="display:none"{{/unless}} title=" {{tr "Refresh"}}">
|
||||
<i class="fa fa-fw fa-lg fa-refresh"/></span>
|
||||
<span href"#" class="right only-not-active button small radius secondary provision_refresh_info"
|
||||
{{#unless opts.refresh}}style="display:none"{{/unless}} title=" {{tr "Refresh"}}">
|
||||
<span href"#" class="only-active button secondary provision_vms_list_refresh_button"
|
||||
{{#unless opts.refresh}}hidden{{/unless}} title=" {{tr "Refresh"}}">
|
||||
<i class="fa fa-fw fa-lg fa-refresh"/>
|
||||
</span>
|
||||
<span href"#" class="right only-active button small radius secondary provision_vms_list_filter_button"
|
||||
{{#unless opts.filter}}style="display:none"{{/unless}} title=" {{tr "Filter by User"}}">
|
||||
<span href"#" class="only-not-active button secondary provision_refresh_info"
|
||||
{{#unless opts.refresh}}hidden{{/unless}} title=" {{tr "Refresh"}}">
|
||||
<i class="fa fa-fw fa-lg fa-refresh"/>
|
||||
</span>
|
||||
<span href"#" class="only-active button secondary provision_vms_list_filter_button"
|
||||
{{#unless opts.filter}}hidden{{/unless}} title=" {{tr "Filter by User"}}">
|
||||
<i class="fa fa-fw fa-lg fa-filter"/>
|
||||
</span>
|
||||
<span class="right only-active provision_list_vms_filter" style="display: none"></span>
|
||||
<span>
|
||||
<span href"#" class="right only-active button small radius success provision_create_vm_button"
|
||||
{{#unless opts.create}}style="display:none"{{/unless}}>
|
||||
<i class="fa fa-fw fa-lg fa-plus-square"/>
|
||||
</span>
|
||||
<input type="search" class="only-active provision_list_vms_search provision-search-input " placeholder="Search VMs"/>
|
||||
</h3>
|
||||
<div id="provision_list_vm_accordion{{accordionId}}" class="content {{#if opts.active}}active{{/if}}">
|
||||
<div class="row">
|
||||
<div class="large-12 large-centered columns">
|
||||
<table class="provision_vms_table">
|
||||
<thead class="hidden">
|
||||
<tr>
|
||||
<th>{{tr "ID"}}</th>
|
||||
<th>{{tr "Name"}}</th>
|
||||
<th>{{tr "User ID"}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="hidden"></tbody>
|
||||
</table>
|
||||
<br></div>
|
||||
<span class="only-active provision_list_vms_filter" hidden></span>
|
||||
<span href"#" class="only-active button success provision_create_vm_button"
|
||||
{{#unless opts.create}}hidden{{/unless}}>
|
||||
<i class="fa fa-fw fa-lg fa-plus-square"/>
|
||||
</span>
|
||||
<input type="search" class="only-active provision_list_vms_search provision-search-input " placeholder="Search VMs"/>
|
||||
</h3>
|
||||
<div id="provision_list_vm_accordion{{accordionId}}" class="accordion-content" data-tab-content>
|
||||
<div class="row">
|
||||
<div class="large-12 large-centered columns">
|
||||
<table class="provision_vms_table">
|
||||
<thead hidden>
|
||||
<tr>
|
||||
<th>{{tr "ID"}}</th>
|
||||
<th>{{tr "Name"}}</th>
|
||||
<th>{{tr "User ID"}}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody hidden></tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</dd>
|
||||
<dd class="accordion-navigation">
|
||||
<a class="provision_show_vm_accordion" href="#provision_show_vm_accordion{{accordionId}}"></a>
|
||||
<div id="provision_show_vm_accordion{{accordionId}}" class="content">{{> tabs/provision-tab/vms/info}}</div>
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
</dd>
|
||||
<dd class="accordion-item" data-accordion-item>
|
||||
<a class="provision_show_vm_accordion accordion-title" href="#provision_show_vm_accordion{{accordionId}}"></a>
|
||||
<div id="provision_show_vm_accordion{{accordionId}}" class="accordion-content" data-tab-content>{{> tabs/provision-tab/vms/info}}</div>
|
||||
</dd>
|
||||
</dl>
|
||||
@@ -15,7 +15,7 @@
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
define(function(require) {
|
||||
require('foundation.alert');
|
||||
// require('foundation.alert');
|
||||
var Sunstone = require('sunstone');
|
||||
var OpenNebula = require('opennebula');
|
||||
var OpenNebulaVM = require('opennebula/vm');
|
||||
@@ -49,6 +49,8 @@ define(function(require) {
|
||||
context.off();
|
||||
context.html(html(opts));
|
||||
|
||||
Foundation.reflow(context, 'accordion');
|
||||
|
||||
if (opts.data) {
|
||||
$(".provision_vms_table", context).data("opennebula", opts.data)
|
||||
}
|
||||
@@ -73,13 +75,13 @@ define(function(require) {
|
||||
datatable.fnClearTable(true);
|
||||
if (item_list.length == 0) {
|
||||
datatable.html('<div class="text-center">' +
|
||||
'<span class="fa-stack fa-5x" style="color: #dfdfdf">' +
|
||||
'<span class="fa-stack fa-5x">' +
|
||||
'<i class="fa fa-cloud fa-stack-2x"></i>' +
|
||||
'<i class="fa fa-info-circle fa-stack-1x fa-inverse"></i>' +
|
||||
'</span>' +
|
||||
'<br>' +
|
||||
'<br>' +
|
||||
'<span style="font-size: 18px; color: #999">' +
|
||||
'<span>' +
|
||||
Locale.tr("There are no Virtual Machines") +
|
||||
'</span>' +
|
||||
'<br>' +
|
||||
@@ -92,13 +94,13 @@ define(function(require) {
|
||||
|
||||
function update_provision_vms_datatable(datatable, timeout) {
|
||||
datatable.html('<div class="text-center">' +
|
||||
'<span class="fa-stack fa-5x" style="color: #dfdfdf">' +
|
||||
'<span class="fa-stack fa-5x">' +
|
||||
'<i class="fa fa-cloud fa-stack-2x"></i>' +
|
||||
'<i class="fa fa-spinner fa-spin fa-stack-1x fa-inverse"></i>' +
|
||||
'</span>' +
|
||||
'<br>' +
|
||||
'<br>' +
|
||||
'<span style="font-size: 18px; color: #999">' +
|
||||
'<span>' +
|
||||
'</span>' +
|
||||
'</div>');
|
||||
|
||||
@@ -121,6 +123,7 @@ define(function(require) {
|
||||
function setup_provision_vms_list(context, opts) {
|
||||
var provision_vms_datatable = $('.provision_vms_table', context).dataTable({
|
||||
"iDisplayLength": 6,
|
||||
"bAutoWidth": false,
|
||||
"sDom" : '<"H">t<"F"lp>',
|
||||
"aLengthMenu": [[6, 12, 36, 72], [6, 12, 36, 72]],
|
||||
"aaSorting" : [[0, "desc"]],
|
||||
@@ -136,18 +139,18 @@ define(function(require) {
|
||||
// create a thumbs container if it doesn't exist. put it in the dataTables_scrollbody div
|
||||
if (this.$('tr', {"filter": "applied"} ).length == 0) {
|
||||
this.html('<div class="text-center">'+
|
||||
'<span class="fa-stack fa-5x" style="color: #dfdfdf">'+
|
||||
'<span class="fa-stack fa-5x">'+
|
||||
'<i class="fa fa-cloud fa-stack-2x"></i>'+
|
||||
'<i class="fa fa-info-circle fa-stack-1x fa-inverse"></i>'+
|
||||
'</span>'+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
'<span style="font-size: 18px; color: #999">'+
|
||||
'<span>'+
|
||||
Locale.tr("There are no Virtual Machines")+
|
||||
'</span>'+
|
||||
'</div>');
|
||||
} else {
|
||||
$(".provision_vms_table", context).html('<ul class="provision_vms_ul large-block-grid-3 medium-block-grid-3 small-block-grid-1 text-center"></ul>');
|
||||
$(".provision_vms_table", context).html('<div class="provision_vms_ul large-up-3 medium-up-3 small-up-1"></div>');
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -156,16 +159,16 @@ define(function(require) {
|
||||
var data = aData.VM;
|
||||
var state = get_provision_vm_state(data);
|
||||
|
||||
$(".provision_vms_ul", context).append('<li>'+
|
||||
'<ul class="provision-pricing-table" opennebula_id="'+data.ID+'" datatable_index="'+iDisplayIndexFull+'">'+
|
||||
'<li class="provision-title text-left">'+
|
||||
'<a class="provision_info_vm_button" style="color:#555" href="#">'+
|
||||
'<span class="'+ state.color +'-color" title="'+state.str+'">'+
|
||||
'<i class="fa fa-fw fa-square"/> '+
|
||||
$(".provision_vms_ul", context).append('<div class="column">'+
|
||||
'<ul class="provision-pricing-table menu vertical" opennebula_id="'+data.ID+'" datatable_index="'+iDisplayIndexFull+'">'+
|
||||
'<li class="provision-title">'+
|
||||
'<a class="provision_info_vm_button">'+
|
||||
'<span class="'+ state.color +'-color right" title="'+state.str+'">'+
|
||||
'<i class="fa fa-fw fa-lg fa-square"/>'+
|
||||
'</span>'+
|
||||
data.NAME + '</a>'+
|
||||
'</li>'+
|
||||
'<li class="provision-bullet-item text-left" >'+
|
||||
'<li class="provision-bullet-item" >'+
|
||||
'<i class="fa fa-fw fa-lg fa-laptop"/> '+
|
||||
'x'+data.TEMPLATE.CPU+' - '+
|
||||
((data.TEMPLATE.MEMORY > 1000) ?
|
||||
@@ -174,12 +177,12 @@ define(function(require) {
|
||||
' - '+
|
||||
get_provision_disk_image(data) +
|
||||
'</li>'+
|
||||
'<li class="provision-bullet-item text-left" >'+
|
||||
'<li class="provision-bullet-item" >'+
|
||||
'<span class="">'+
|
||||
get_provision_ips(data) +
|
||||
'</span>'+
|
||||
'</li>'+
|
||||
'<li class="provision-bullet-item-last text-left" >'+
|
||||
'<li class="provision-bullet-item-last" >'+
|
||||
'<span class="">'+
|
||||
'<i class="fa fa-fw fa-lg fa-user"/> '+
|
||||
data.UNAME+
|
||||
@@ -189,7 +192,7 @@ define(function(require) {
|
||||
'</span>'+
|
||||
'</li>'+
|
||||
'</ul>'+
|
||||
'</li>');
|
||||
'</div>');
|
||||
|
||||
return nRow;
|
||||
}
|
||||
@@ -230,7 +233,7 @@ define(function(require) {
|
||||
OpenNebula.Action.clear_cache("VM");
|
||||
update_provision_vms_datatable(provision_vms_datatable, 0);
|
||||
|
||||
$(document).foundation();
|
||||
// $(document).foundation();
|
||||
}
|
||||
|
||||
function setup_info_vm(context) {
|
||||
@@ -368,16 +371,16 @@ define(function(require) {
|
||||
}
|
||||
|
||||
$(".provision-pricing-table_vm_info", context).html(
|
||||
'<li class="text-left provision-bullet-item">'+
|
||||
'<li class="provision-bullet-item">'+
|
||||
'<span class="'+ state.color +'-color">'+
|
||||
'<i class="fa fa-fw fa-lg fa-square"/> '+
|
||||
state.str+
|
||||
'</span>'+
|
||||
'</li>'+
|
||||
'<li class="text-left provision-bullet-item">'+
|
||||
'<hr style="margin: 0px">'+
|
||||
'<li class="provision-bullet-item">'+
|
||||
'<hr>'+
|
||||
'</li>'+
|
||||
'<li class="text-left provision-bullet-item" >'+
|
||||
'<li class="provision-bullet-item" >'+
|
||||
'<span>'+
|
||||
'<i class="fa fa-fw fa-lg fa-laptop"/> '+
|
||||
'x'+data.TEMPLATE.CPU+' - '+
|
||||
@@ -390,26 +393,20 @@ define(function(require) {
|
||||
get_provision_disk_image(data) +
|
||||
'</span>'+
|
||||
'</li>'+
|
||||
'<li class="text-left provision-bullet-item" >'+
|
||||
'<li class="provision-bullet-item" >'+
|
||||
'<span>'+
|
||||
get_provision_ips(data) +
|
||||
'</span>'+
|
||||
'</li>'+
|
||||
//'<li class="text-left provision-bullet-item" >'+
|
||||
// '<span style="color: #afafaf;" style="font-size: 16px">'+
|
||||
// "ID: " +
|
||||
// data.ID+
|
||||
// '</span>' +
|
||||
//'</li>'+
|
||||
'<li class="text-left provision-bullet-item">'+
|
||||
'<hr style="margin: 0px">'+
|
||||
'<li class="provision-bullet-item">'+
|
||||
'<hr>'+
|
||||
'</li>'+
|
||||
'<li class="text-right provision-bullet-item">'+
|
||||
'<span class="left" style="color: #999;">'+
|
||||
'<li class="provision-bullet-item">'+
|
||||
'<span class="left">'+
|
||||
'<i class="fa fa-fw fa-lg fa-user"/> '+
|
||||
data.UNAME+
|
||||
'</span>'+
|
||||
'<span class="right" style="color: #999;">'+
|
||||
'<span class="right">'+
|
||||
'<i class="fa fa-fw fa-lg fa-clock-o"/> '+
|
||||
Humanize.prettyTimeAgo(data.STIME)+
|
||||
' - '+
|
||||
@@ -496,10 +493,10 @@ define(function(require) {
|
||||
if (Config.isProvisionTabEnabled("provision-tab", "templates")) {
|
||||
context.on("click", ".provision_snapshot_button", function(){
|
||||
$(".provision_confirm_action:first", context).html(
|
||||
'<div data-alert class="alert-box secondary radius">'+
|
||||
'<div data-closable class="callout large secondary">'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-12 columns">'+
|
||||
'<span style="font-size: 14px; line-height: 20px">'+
|
||||
'<span>'+
|
||||
Locale.tr("This Virtual Machine will be saved in a new Template.")+
|
||||
'<br>'+
|
||||
Locale.tr("You can then create a new Virtual Machine using this Template.")+
|
||||
@@ -509,13 +506,13 @@ define(function(require) {
|
||||
'<br>'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-11 large-centered columns">'+
|
||||
'<input type="text" class="provision_snapshot_name" placeholder="'+Locale.tr("Template Name")+'" style="height: 40px !important; font-size: 16px; padding: 0.5rem !important; margin: 0px"/>'+
|
||||
'<input type="text" class="provision_snapshot_name" placeholder="'+Locale.tr("Template Name")+'"/>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'<br>'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-12 columns">'+
|
||||
'<span style="font-size: 14px; line-height: 20px">'+
|
||||
'<span>'+
|
||||
Locale.tr("The new Virtual Machine's disks can be made persistent. In a persistent Virtual Machine the changes made survive after it is destroyed. On the other hand, you cannot create more than one simultaneous Virtual Machine from a Template with persistent disks.")+
|
||||
'</span>'+
|
||||
'</div>'+
|
||||
@@ -523,11 +520,11 @@ define(function(require) {
|
||||
'<br>'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-12 columns">'+
|
||||
'<label class="left" style="margin-left: 25px">'+
|
||||
'<label class="left">'+
|
||||
'<input type="radio" name="provision_snapshot_radio" value="persistent" class="provision_snapshot_persistent_radio">'+
|
||||
' <i class="fa fa-fw fa-save"/> '+Locale.tr("Persistent")+
|
||||
'</label>'+
|
||||
'<label class="left" style="margin-left: 25px">'+
|
||||
'<label class="left">'+
|
||||
'<input type="radio" name="provision_snapshot_radio" value="nonpersistent" class="provision_snapshot_nonpersisten_radio" checked>'+
|
||||
' <i class="fa fa-fw fa-trash-o"/> '+Locale.tr("Non-persistent")+
|
||||
'</label>'+
|
||||
@@ -539,7 +536,9 @@ define(function(require) {
|
||||
'<a href"#" class="provision_snapshot_create_button success button large-12 radius right">'+Locale.tr("Save Virtual Machine to Template")+'</a>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'<a href="#" class="close" style="top: 20px">×</a>'+
|
||||
'<button class="close-button" aria-label="' + Locale.tr("Dismiss Alert") + ' type="button" data-close>' +
|
||||
'<span aria-hidden="true">×</span>' +
|
||||
'</button>'+
|
||||
'</div>');
|
||||
});
|
||||
|
||||
@@ -586,48 +585,52 @@ define(function(require) {
|
||||
|
||||
context.on("click", ".provision_delete_confirm_button", function(){
|
||||
$(".provision_confirm_action:first", context).html(
|
||||
'<div data-alert class="alert-box secondary radius">'+
|
||||
'<div data-closable class="callout large secondary">'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-9 columns">'+
|
||||
'<span style="font-size: 14px; line-height: 20px">'+
|
||||
'<span>'+
|
||||
Locale.tr("Be careful, this action will immediately destroy your Virtual Machine")+
|
||||
'<br>'+
|
||||
Locale.tr("All the information will be lost!")+
|
||||
'</span>'+
|
||||
'</div>'+
|
||||
'<div class="large-3 columns">'+
|
||||
'<a href"#" class="provision_delete_button alert button large-12 radius right" style="margin-right: 15px">'+Locale.tr("Delete")+'</a>'+
|
||||
'<a href"#" class="provision_delete_button alert button large-12 radius right">'+Locale.tr("Delete")+'</a>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'<a href="#" class="close">×</a>'+
|
||||
'<button class="close-button" aria-label="' + Locale.tr("Dismiss Alert") + ' type="button" data-close>' +
|
||||
'<span aria-hidden="true">×</span>' +
|
||||
'</button>'+
|
||||
'</div>');
|
||||
});
|
||||
|
||||
context.on("click", ".provision_shutdownhard_confirm_button", function(){
|
||||
$(".provision_confirm_action:first", context).html(
|
||||
'<div data-alert class="alert-box secondary radius">'+
|
||||
'<div data-closable class="callout large secondary">'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-9 columns">'+
|
||||
'<span style="font-size: 14px; line-height: 20px">'+
|
||||
'<span>'+
|
||||
Locale.tr("Be careful, this action will immediately destroy your Virtual Machine")+
|
||||
'<br>'+
|
||||
Locale.tr("All the information will be lost!")+
|
||||
'</span>'+
|
||||
'</div>'+
|
||||
'<div class="large-3 columns">'+
|
||||
'<a href"#" class="provision_shutdownhard_button alert button large-12 radius right" style="margin-right: 15px">'+Locale.tr("Delete")+'</a>'+
|
||||
'<a href"#" class="provision_shutdownhard_button alert button large-12 radius right">'+Locale.tr("Delete")+'</a>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'<a href="#" class="close" style="top: 20px">×</a>'+
|
||||
'<button class="close-button" aria-label="' + Locale.tr("Dismiss Alert") + ' type="button" data-close>' +
|
||||
'<span aria-hidden="true">×</span>' +
|
||||
'</button>'+
|
||||
'</div>');
|
||||
});
|
||||
|
||||
context.on("click", ".provision_poweroff_confirm_button", function(){
|
||||
$(".provision_confirm_action:first", context).html(
|
||||
'<div data-alert class="alert-box secondary radius">'+
|
||||
'<div data-closable class="callout large secondary">'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-11 columns">'+
|
||||
'<span style="font-size: 14px; line-height: 20px">'+
|
||||
'<span>'+
|
||||
Locale.tr("This action will power off this Virtual Machine. The Virtual Machine will remain in the poweroff state, and can be powered on later")+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
@@ -638,27 +641,29 @@ define(function(require) {
|
||||
'<br>'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-12 columns">'+
|
||||
'<a href"#" class="provision_poweroff_button button radius right" style="margin-right: 15px">'+Locale.tr("Power off")+'</a>'+
|
||||
'<label class="left" style="margin-left: 25px">'+
|
||||
'<a href"#" class="provision_poweroff_button button radius right">'+Locale.tr("Power off")+'</a>'+
|
||||
'<label class="left">'+
|
||||
'<input type="radio" name="provision_poweroff_radio" value="poweroff_hard" class="provision_poweroff_hard_radio">'+
|
||||
' <i class="fa fa-fw fa-bolt"/> '+Locale.tr("Power off the machine")+
|
||||
'</label>'+
|
||||
'<label class="left" style="margin-left: 25px">'+
|
||||
'<label class="left">'+
|
||||
'<input type="radio" name="provision_poweroff_radio" value="poweroff" class="provision_poweroff_radio" checked>'+
|
||||
' <i class="fa fa-fw fa-power-off"/> '+Locale.tr("Send the power off signal")+
|
||||
'</label>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'<a href="#" class="close" style="top: 20px">×</a>'+
|
||||
'<button class="close-button" aria-label="' + Locale.tr("Dismiss Alert") + ' type="button" data-close>' +
|
||||
'<span aria-hidden="true">×</span>' +
|
||||
'</button>'+
|
||||
'</div>');
|
||||
});
|
||||
|
||||
context.on("click", ".provision_undeploy_confirm_button", function(){
|
||||
$(".provision_confirm_action:first", context).html(
|
||||
'<div data-alert class="alert-box secondary radius">'+
|
||||
'<div data-closable class="callout large secondary">'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-11 columns">'+
|
||||
'<span style="font-size: 14px; line-height: 20px">'+
|
||||
'<span>'+
|
||||
Locale.tr("This action will power off this Virtual Machine and will be undeployed from the physical machine")+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
@@ -669,27 +674,29 @@ define(function(require) {
|
||||
'<br>'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-12 columns">'+
|
||||
'<a href"#" class="provision_undeploy_button button radius right" style="margin-right: 15px">'+Locale.tr("Power off and undeploy")+'</a>'+
|
||||
'<label class="left" style="margin-left: 25px">'+
|
||||
'<a href"#" class="provision_undeploy_button button radius right">'+Locale.tr("Power off and undeploy")+'</a>'+
|
||||
'<label class="left">'+
|
||||
'<input type="radio" name="provision_undeploy_radio" value="undeploy_hard" class="provision_undeploy_hard_radio">'+
|
||||
' <i class="fa fa-fw fa-bolt"/> '+Locale.tr("Power off and undeploy the VM")+
|
||||
'</label>'+
|
||||
'<label class="left" style="margin-left: 25px">'+
|
||||
'<label class="left">'+
|
||||
'<input type="radio" name="provision_undeploy_radio" value="undeploy" class="provision_undeploy_radio" checked>'+
|
||||
' <i class="fa fa-fw fa-power-off"/> '+Locale.tr("Send the power off signal and undeploy the VM")+
|
||||
'</label>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'<a href="#" class="close" style="top: 20px">×</a>'+
|
||||
'<button class="close-button" aria-label="' + Locale.tr("Dismiss Alert") + ' type="button" data-close>' +
|
||||
'<span aria-hidden="true">×</span>' +
|
||||
'</button>'+
|
||||
'</div>');
|
||||
});
|
||||
|
||||
context.on("click", ".provision_reboot_confirm_button", function(){
|
||||
$(".provision_confirm_action:first", context).html(
|
||||
'<div data-alert class="alert-box secondary radius">'+
|
||||
'<div data-closable class="callout large secondary">'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-11 columns">'+
|
||||
'<span style="font-size: 14px; line-height: 20px">'+
|
||||
'<span>'+
|
||||
Locale.tr("This action will reboot this Virtual Machine.")+
|
||||
'<br>'+
|
||||
'<br>'+
|
||||
@@ -700,18 +707,20 @@ define(function(require) {
|
||||
'<br>'+
|
||||
'<div class="row">'+
|
||||
'<div class="large-12 columns">'+
|
||||
'<a href"#" class="provision_reboot_button button radius right" style="margin-right: 15px">'+Locale.tr("Reboot")+'</a>'+
|
||||
'<label class="left" style="margin-left: 25px">'+
|
||||
'<a href"#" class="provision_reboot_button button radius right">'+Locale.tr("Reboot")+'</a>'+
|
||||
'<label class="left">'+
|
||||
'<input type="radio" name="provision_reboot_radio" value="reset" class="provision_reboot_hard_radio">'+
|
||||
' <i class="fa fa-fw fa-bolt"/> '+Locale.tr("Reboot the machine")+
|
||||
'</label>'+
|
||||
'<label class="left" style="margin-left: 25px">'+
|
||||
'<label class="left">'+
|
||||
'<input type="radio" name="provision_reboot_radio" value="reboot" class="provision_reboot_radio" checked>'+
|
||||
' <i class="fa fa-fw fa-power-off"/> '+Locale.tr("Send the reboot signal")+
|
||||
'</label>'+
|
||||
'</div>'+
|
||||
'</div>'+
|
||||
'<a href="#" class="close" style="top: 20px">×</a>'+
|
||||
'<button class="close-button" aria-label="' + Locale.tr("Dismiss Alert") + ' type="button" data-close>' +
|
||||
'<span aria-hidden="true">×</span>' +
|
||||
'</button>'+
|
||||
'</div>');
|
||||
});
|
||||
|
||||
|
||||
@@ -42,11 +42,12 @@ define(function(require) {
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: Locale.tr("Security Groups"),
|
||||
icon: 'fa-shield',
|
||||
tabClass: "subTab",
|
||||
parentTab: "infra-tab",
|
||||
listHeader: '<i class="fa fa-fw fa-shield"></i> '+Locale.tr("Security Groups"),
|
||||
infoHeader: '<i class="fa fa-fw fa-shield"></i> '+Locale.tr("Security Group"),
|
||||
subheader: '<span/> <small></small> ',
|
||||
parentTab: "network-top-tab",
|
||||
listHeader: Locale.tr("Security Groups"),
|
||||
infoHeader: Locale.tr("Security Group"),
|
||||
subheader: '',
|
||||
resource: 'SecurityGroup',
|
||||
buttons: Buttons,
|
||||
actions: Actions,
|
||||
|
||||
@@ -65,14 +65,14 @@ define(function(require) {
|
||||
function _setup(context) {
|
||||
var that = this;
|
||||
|
||||
context.foundation('abide', 'reflow');
|
||||
context.off('invalid.fndtn.abide', '#' + DIALOG_ID + 'Form');
|
||||
context.off('valid.fndtn.abide', '#' + DIALOG_ID + 'Form');
|
||||
|
||||
context.on('invalid.fndtn.abide', '#' + DIALOG_ID + 'Form', function(e) {
|
||||
Notifier.notifyError(Locale.tr("One or more required fields are missing or malformed."));
|
||||
}).on('valid.fndtn.abide', '#' + DIALOG_ID + 'Form', function(e) {
|
||||
var name = $('input', this).val();
|
||||
Foundation.reflow(context, 'abide');
|
||||
$('#' + DIALOG_ID + 'Form', context)
|
||||
.on('forminvalid.zf.abide', function(ev, frm) {
|
||||
Notifier.notifyError(Locale.tr("One or more required fields are missing or malformed."));
|
||||
Sunstone.hideFormPanelLoading(that.tabId);
|
||||
})
|
||||
.on('formvalid.zf.abide', function(ev, frm) {
|
||||
var name = $('input', frm).val();
|
||||
var sel_elems = Sunstone.getDataTable(TAB_ID).elements();
|
||||
|
||||
if (sel_elems.length > 1){
|
||||
@@ -84,9 +84,10 @@ define(function(require) {
|
||||
} else {
|
||||
Sunstone.runAction('SecurityGroup.clone',sel_elems[0],name);
|
||||
}
|
||||
|
||||
return false;
|
||||
});
|
||||
})
|
||||
.on("submit", function(ev) {
|
||||
ev.preventDefault();
|
||||
});
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div id="{{dialogId}}" class="reveal-modal" role="dialog" data-reveal >
|
||||
<div id="{{dialogId}}" class="reveal" data-reveal>
|
||||
<div class="row">
|
||||
<h3 class="subheader">{{tr "Clone Security Group"}}</h3>
|
||||
</div>
|
||||
@@ -40,6 +40,8 @@
|
||||
{{tr "Clone"}}
|
||||
</button>
|
||||
</div>
|
||||
<a class="close-reveal-modal">×</a>
|
||||
<button class="close-button" data-close aria-label="{{tr "Close modal"}}" type="button">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.tab');
|
||||
// require('foundation.tab');
|
||||
var BaseFormPanel = require('utils/form-panels/form-panel');
|
||||
var Sunstone = require('sunstone');
|
||||
var Locale = require('utils/locale');
|
||||
@@ -104,7 +104,6 @@ define(function(require) {
|
||||
|
||||
function _setup(context) {
|
||||
var that = this;
|
||||
context.foundation('abide', 'reflow');
|
||||
|
||||
context.off("change", '.security_group_rule_protocol');
|
||||
context.on("change", '.security_group_rule_protocol', function(){
|
||||
@@ -167,73 +166,76 @@ define(function(require) {
|
||||
}
|
||||
});
|
||||
|
||||
$('#rules_form_wizard',context).off('invalid.fndtn.abide');
|
||||
$('#rules_form_wizard',context).off('valid.fndtn.abide');
|
||||
//Foundation.reflow($('#rules_form_wizard',context), 'abide');
|
||||
$('#rules_form_wizard',context)
|
||||
.on('forminvalid.zf.abide', function(ev, frm) {
|
||||
Notifier.notifyError(Locale.tr("One or more required fields are missing or malformed."));
|
||||
})
|
||||
.on('formvalid.zf.abide', function(ev, frm) {
|
||||
var rule = {};
|
||||
rule["PROTOCOL"] = $(".security_group_rule_protocol", context).val();
|
||||
rule["RULE_TYPE"] = $(".security_group_rule_type", context).val();
|
||||
|
||||
$('#rules_form_wizard',context).on('invalid.fndtn.abide', function () {
|
||||
|
||||
}).on('valid.fndtn.abide', function() {
|
||||
var rule = {};
|
||||
|
||||
rule["PROTOCOL"] = $(".security_group_rule_protocol", context).val();
|
||||
rule["RULE_TYPE"] = $(".security_group_rule_type", context).val();
|
||||
|
||||
switch ($('.security_group_rule_range_sel', context).val()) {
|
||||
case "ALL":
|
||||
break;
|
||||
case "RANGE":
|
||||
rule["RANGE"] = $(".security_group_rule_range input", context).val();
|
||||
break;
|
||||
}
|
||||
|
||||
switch ($('.security_group_rule_network_sel', context).val()) {
|
||||
case "ANY":
|
||||
break;
|
||||
case "NETWORK":
|
||||
rule["IP"] = $('#security_group_rule_first_ip', context).val();
|
||||
rule["SIZE"] = $('#security_group_rule_size', context).val();
|
||||
break;
|
||||
case "VNET":
|
||||
rule["NETWORK_ID"] = that.vnetsTable.retrieveResourceTableSelect();
|
||||
break;
|
||||
}
|
||||
|
||||
if (rule["PROTOCOL"] == "ICMP" ){
|
||||
var icmp_type_val = $(".security_group_rule_icmp_type", context).val();
|
||||
|
||||
if (icmp_type_val != ""){
|
||||
rule["ICMP_TYPE"] = icmp_type_val;
|
||||
switch ($('.security_group_rule_range_sel', context).val()) {
|
||||
case "ALL":
|
||||
break;
|
||||
case "RANGE":
|
||||
rule["RANGE"] = $(".security_group_rule_range input", context).val();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
var text = Utils.sgRuleToSt(rule);
|
||||
switch ($('.security_group_rule_network_sel', context).val()) {
|
||||
case "ANY":
|
||||
break;
|
||||
case "NETWORK":
|
||||
rule["IP"] = $('#security_group_rule_first_ip', context).val();
|
||||
rule["SIZE"] = $('#security_group_rule_size', context).val();
|
||||
break;
|
||||
case "VNET":
|
||||
rule["NETWORK_ID"] = that.vnetsTable.retrieveResourceTableSelect();
|
||||
break;
|
||||
}
|
||||
|
||||
$(".security_group_rules tbody", context).append(
|
||||
'<tr>\
|
||||
<td>'+text.PROTOCOL+'</td>\
|
||||
<td>'+text.RULE_TYPE+'</td>\
|
||||
<td>'+text.RANGE+'</td>\
|
||||
<td>'+text.NETWORK+'</td>\
|
||||
<td>'+text.ICMP_TYPE+'</td>\
|
||||
<td>\
|
||||
<a href="#"><i class="fa fa-times-circle remove-tab"></i></a>\
|
||||
</td>\
|
||||
</tr>');
|
||||
if (rule["PROTOCOL"] == "ICMP" ){
|
||||
var icmp_type_val = $(".security_group_rule_icmp_type", context).val();
|
||||
|
||||
// Add data to tr element
|
||||
$(".security_group_rules tbody", context).children("tr").last().data("rule", rule);
|
||||
if (icmp_type_val != ""){
|
||||
rule["ICMP_TYPE"] = icmp_type_val;
|
||||
}
|
||||
}
|
||||
|
||||
// Reset new rule fields
|
||||
$('#new_rule_wizard select option', context).prop('selected', function() {
|
||||
return this.defaultSelected;
|
||||
var text = Utils.sgRuleToSt(rule);
|
||||
|
||||
$(".security_group_rules tbody", context).append(
|
||||
'<tr>\
|
||||
<td>'+text.PROTOCOL+'</td>\
|
||||
<td>'+text.RULE_TYPE+'</td>\
|
||||
<td>'+text.RANGE+'</td>\
|
||||
<td>'+text.NETWORK+'</td>\
|
||||
<td>'+text.ICMP_TYPE+'</td>\
|
||||
<td>\
|
||||
<a href="#"><i class="fa fa-times-circle remove-tab"></i></a>\
|
||||
</td>\
|
||||
</tr>');
|
||||
|
||||
// Add data to tr element
|
||||
$(".security_group_rules tbody", context).children("tr").last().data("rule", rule);
|
||||
|
||||
// Reset new rule fields
|
||||
$('#new_rule_wizard select option', context).prop('selected', function() {
|
||||
return this.defaultSelected;
|
||||
});
|
||||
|
||||
$('#new_rule_wizard select', context).trigger("change");
|
||||
|
||||
$('#new_rule_wizard input', context).val("");
|
||||
|
||||
that.vnetsTable.resetResourceTableSelect();
|
||||
})
|
||||
.on("submit", function(ev) {
|
||||
ev.preventDefault();
|
||||
});
|
||||
|
||||
$('#new_rule_wizard select', context).trigger("change");
|
||||
|
||||
$('#new_rule_wizard input', context).val("");
|
||||
|
||||
that.vnetsTable.resetResourceTableSelect();
|
||||
});
|
||||
|
||||
context.off("click", ".security_group_rules i.remove-tab");
|
||||
context.on("click", ".security_group_rules i.remove-tab", function(){
|
||||
@@ -241,8 +243,6 @@ define(function(require) {
|
||||
tr.remove();
|
||||
});
|
||||
|
||||
context.foundation();
|
||||
|
||||
this.vnetsTable.initialize();
|
||||
|
||||
Tips.setup();
|
||||
|
||||
@@ -47,8 +47,8 @@ define(function(require) {
|
||||
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: '<i class="fa fa-lg fa-fw fa-cog"></i> ' + Locale.tr("Settings"),
|
||||
listHeader: '<i class="fa fa-cog"></i> ' + Locale.tr("Settings"),
|
||||
title: Locale.tr("Settings"),
|
||||
listHeader: Locale.tr("Settings"),
|
||||
resource: 'Settings',
|
||||
actions: _actions,
|
||||
content: '<span class="fa-stack fa-2x" style="color: #dfdfdf">' +
|
||||
|
||||
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.accordion');
|
||||
// require('foundation.accordion');
|
||||
var Locale = require('utils/locale');
|
||||
var Config = require('sunstone-config');
|
||||
var OpenNebula = require('opennebula');
|
||||
@@ -72,7 +72,7 @@ define(function(require) {
|
||||
|
||||
function _setup(context) {
|
||||
var that = this;
|
||||
$(document).foundation('accordion', 'reflow');
|
||||
Foundation.reflow(context, 'accordion');
|
||||
var ssh_key = this.element.TEMPLATE.SSH_PUBLIC_KEY;
|
||||
if (ssh_key && ssh_key.length) {
|
||||
$("#provision_ssh_key", context).val(ssh_key);
|
||||
|
||||
@@ -19,12 +19,12 @@
|
||||
<div class="row">
|
||||
<div class="large-12 large-centered columns">
|
||||
<dl class="accordion" data-accordion>
|
||||
<dd class="accordion-navigation">
|
||||
<a href="#provision_update_language_accordion" class="text-center accordion-a">
|
||||
<dd class="accordion-item" data-accordion-item>
|
||||
<a href="#provision_update_language_accordion" class="text-center accordion-title">
|
||||
<div class="row only-not-active">
|
||||
<div class="large-12 large-centered columns">
|
||||
<div class="text-center">
|
||||
<span class="fa-stack fa-3x" style="color: #777"> <i class="fa fa-cloud fa-stack-2x"></i> <i class="fa fa-comments fa-stack-1x fa-inverse"></i>
|
||||
<span class="fa-stack fa-3x"> <i class="fa fa-cloud fa-stack-2x"></i> <i class="fa fa-comments fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -33,12 +33,12 @@
|
||||
<i class="fa fa-lg fa-comments only-active"></i>
|
||||
{{tr "Change Language"}}
|
||||
</a>
|
||||
<div id="provision_update_language_accordion" class="content">
|
||||
<div id="provision_update_language_accordion" class="accordion-content" data-tab-content>
|
||||
<br>
|
||||
<form id="provision_change_language_form">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<select type="language" id="provision_new_language" class="provision-input" style="height: 40px !important; font-size: 16px; padding: 0.5rem !important;">{{{languageOptions}}}</select>
|
||||
<select type="language" id="provision_new_language" class="provision-input">{{{languageOptions}}}</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -57,12 +57,12 @@
|
||||
<div class="row">
|
||||
<div class="large-12 large-centered columns">
|
||||
<dl class="accordion" data-accordion>
|
||||
<dd class="accordion-navigation">
|
||||
<a href="#provision_update_password_accordion" class="text-center accordion-a">
|
||||
<dd class="accordion-item" data-accordion-item>
|
||||
<a href="#provision_update_password_accordion" class="text-center accordion-title">
|
||||
<div class="row only-not-active">
|
||||
<div class="large-12 large-centered columns">
|
||||
<div class="text-center">
|
||||
<span class="fa-stack fa-3x" style="color: #777">
|
||||
<span class="fa-stack fa-3x">
|
||||
<i class="fa fa-cloud fa-stack-2x"></i>
|
||||
<i class="fa fa-lock fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
@@ -73,17 +73,17 @@
|
||||
<i class="fa fa-lg fa-lock only-active"></i>
|
||||
{{tr "Change Password"}}
|
||||
</a>
|
||||
<div id="provision_update_password_accordion" class="content">
|
||||
<div id="provision_update_password_accordion" class="accordion-content" data-tab-content>
|
||||
<br>
|
||||
<form id="provision_change_password_form">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<input type="password" id="provision_new_password" class="provision-input" placeholder="{{tr "New Password"}}" style="height: 40px !important; font-size: 16px; padding: 0.5rem !important;"/>
|
||||
<input type="password" id="provision_new_password" class="provision-input" placeholder="{{tr "New Password"}}"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<input type="password" id="provision_new_confirm_password" class="provision-input" placeholder="{{tr "Confirm Password"}}" style="height: 40px !important; font-size: 16px; padding: 0.5rem !important;"/>
|
||||
<input type="password" id="provision_new_confirm_password" class="provision-input" placeholder="{{tr "Confirm Password"}}"/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -106,12 +106,12 @@
|
||||
<div class="row">
|
||||
<div class="large-12 large-centered columns">
|
||||
<dl class="accordion" data-accordion>
|
||||
<dd class="accordion-navigation">
|
||||
<a href="#provision_update_view_accordion" class="text-center accordion-a">
|
||||
<dd class="accordion-item" data-accordion-item>
|
||||
<a href="#provision_update_view_accordion" class="text-center accordion-title">
|
||||
<div class="row only-not-active">
|
||||
<div class="large-12 large-centered columns">
|
||||
<div class="text-center">
|
||||
<span class="fa-stack fa-3x" style="color: #777">
|
||||
<span class="fa-stack fa-3x">
|
||||
<i class="fa fa-cloud fa-stack-2x"></i>
|
||||
<i class="fa fa-picture-o fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
@@ -122,12 +122,12 @@
|
||||
<i class="fa fa-lg fa-picture-o only-active"></i>
|
||||
{{tr "Change view"}}
|
||||
</a>
|
||||
<div id="provision_update_view_accordion" class="content">
|
||||
<div id="provision_update_view_accordion" class="accordion-content" data-tab-content>
|
||||
<br>
|
||||
<form id="provision_change_view_form">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<select id="provision_user_views_select" class="provision-input" style="height: 40px !important; font-size: 16px; padding: 0.5rem !important;"></select>
|
||||
<select id="provision_user_views_select" class="provision-input"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@@ -147,12 +147,12 @@
|
||||
<div class="row">
|
||||
<div class="large-12 large-centered columns">
|
||||
<dl class="accordion" data-accordion>
|
||||
<dd class="accordion-navigation">
|
||||
<a href="#provision_add_ssh_key_accordion" class="text-center accordion-a">
|
||||
<dd class="accordion-item" data-accordion-item>
|
||||
<a href="#provision_add_ssh_key_accordion" class="text-center accordion-title">
|
||||
<div class="row only-not-active">
|
||||
<div class="large-12 large-centered columns">
|
||||
<div class="text-center">
|
||||
<span class="fa-stack fa-3x" style="color: #777">
|
||||
<span class="fa-stack fa-3x">
|
||||
<i class="fa fa-cloud fa-stack-2x"></i>
|
||||
<i class="fa fa-key fa-stack-1x fa-inverse"></i>
|
||||
</span>
|
||||
@@ -164,9 +164,9 @@
|
||||
<span class="provision_add_ssh_key_button">{{tr "Add SSH Key"}}</span>
|
||||
<span class="provision_update_ssh_key_button">{{tr "Update SSH Key"}}</span>
|
||||
</a>
|
||||
<div id="provision_add_ssh_key_accordion" class="content">
|
||||
<div id="provision_add_ssh_key_accordion" class="accordion-content" data-tab-content>
|
||||
<br>
|
||||
<p style="font-size: 16px; color: #999">
|
||||
<p>
|
||||
<span class="provision_add_ssh_key_button">
|
||||
{{tr "Add a public SSH key to your account!"}}
|
||||
<br>
|
||||
@@ -180,13 +180,13 @@
|
||||
</p>
|
||||
<div class="row">
|
||||
<div class="large-12 large-centered columns">
|
||||
<textarea id="provision_ssh_key" style="height: 100px; font-size: 14px" placeholder="SSH key" class="provision-input"></textarea>
|
||||
<textarea id="provision_ssh_key" placeholder="SSH key" class="provision-input"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 large-centered columns">
|
||||
<button href="#" type="submit" class="provision_add_ssh_key_button button large radius large-12 small-12">{{tr "Add SSH Key"}}</button>
|
||||
<button href="#" type="submit" class="provision_update_ssh_key_button button large radius large-12 small-12 hidden">{{tr "Update SSH Key"}}</button>
|
||||
<button href="#" type="submit" class="provision_update_ssh_key_button button large radius large-12 small-12" hidden>{{tr "Update SSH Key"}}</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* Copyright 2002-2015, OpenNebula Project, OpenNebula Systems */
|
||||
/* */
|
||||
/* Licensed under the Apache License, Version 2.0 (the "License"); you may */
|
||||
/* not use this file except in compliance with the License. You may obtain */
|
||||
/* a copy of the License at */
|
||||
/* */
|
||||
/* http://www.apache.org/licenses/LICENSE-2.0 */
|
||||
/* */
|
||||
/* Unless required by applicable law or agreed to in writing, software */
|
||||
/* distributed under the License is distributed on an "AS IS" BASIS, */
|
||||
/* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */
|
||||
/* See the License for the specific language governing permissions and */
|
||||
/* limitations under the License. */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
|
||||
define(function(require) {
|
||||
var TAB_ID = 'storage-top-tab';
|
||||
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: 'Storage',
|
||||
no_content: true
|
||||
};
|
||||
|
||||
return Tab;
|
||||
});
|
||||
@@ -44,8 +44,8 @@ define(function(require) {
|
||||
tabId: TAB_ID,
|
||||
resource: 'Support',
|
||||
title: TemplateTitle(),
|
||||
listHeader: '<i class="fa fa-fw fa-support"></i> Commercial Support Requests',
|
||||
infoHeader: '<i class="fa fa-fw fa-support"></i> Commercial Support Request',
|
||||
listHeader: 'Commercial Support Requests',
|
||||
infoHeader: 'Commercial Support Request',
|
||||
subheader: TemplateSubheader(),
|
||||
buttons: Buttons,
|
||||
actions: Actions,
|
||||
|
||||
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.tab');
|
||||
// require('foundation.tab');
|
||||
var BaseFormPanel = require('utils/form-panels/form-panel');
|
||||
var Sunstone = require('sunstone');
|
||||
|
||||
|
||||
@@ -14,17 +14,17 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<span class="support_title"><i class="fa fa-lg fa-fw fa-support"></i> Support</span>
|
||||
<span class="support_title">Support</span>
|
||||
<br>
|
||||
<div class="support_info" style="display: none;">
|
||||
<span class="support_open">Open</span><span class="label secondary right support_open_value">-</span>
|
||||
<span class="support_open">Open</span><span class="secondary right support_open_value">-</span>
|
||||
<br>
|
||||
<span class="support_pending">Pending</span><span class="label right support_pending_value">-</span>
|
||||
<span class="support_pending">Pending</span><span class="right support_pending_value">-</span>
|
||||
<br>
|
||||
<button class="button tiny success radius support_button">Submit a Request</button>
|
||||
<button class="button small success radius support_button">Submit a Request</button>
|
||||
</div>
|
||||
<div class="support_connect" style="display: none;">
|
||||
<span class="">Not connected</span>
|
||||
<br>
|
||||
<button class="button tiny success radius support_connect_button">Sign in</button>
|
||||
<button class="button small success radius support_connect_button">Sign in</button>
|
||||
</div>
|
||||
+4
-4
@@ -16,13 +16,13 @@
|
||||
|
||||
define(function(require) {
|
||||
var Locale = require('utils/locale');
|
||||
var TAB_ID = 'vresources-tab';
|
||||
var TAB_ID = 'system-top-tab';
|
||||
|
||||
var VResourcesTab = {
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: '<i class="fa fa-lg fa-fw fa-cloud"></i> ' + Locale.tr("Virtual Resources"),
|
||||
title: Locale.tr("System"),
|
||||
no_content: true
|
||||
}
|
||||
|
||||
return VResourcesTab;
|
||||
return Tab;
|
||||
});
|
||||
@@ -44,11 +44,12 @@ define(function(require) {
|
||||
|
||||
var Tab = {
|
||||
tabId: TAB_ID,
|
||||
title: Locale.tr("Templates"),
|
||||
title: Locale.tr("VMs"),
|
||||
icon: 'fa-file-o',
|
||||
tabClass: "subTab",
|
||||
parentTab: "vresources-tab",
|
||||
listHeader: '<i class="fa fa-fw fa-file-o"></i> ' + Locale.tr("Templates"),
|
||||
infoHeader: '<i class="fa fa-fw fa-file-o"></i> ' + Locale.tr("Template"),
|
||||
parentTab: "templates-top-tab",
|
||||
listHeader: Locale.tr("VM Templates"),
|
||||
infoHeader: Locale.tr("VM Template"),
|
||||
subheader: '',
|
||||
resource: 'Template',
|
||||
buttons: Buttons,
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div id="{{dialogId}}" class="reveal-modal" role="dialog" data-reveal >
|
||||
<div id="{{dialogId}}" class="reveal" data-reveal >
|
||||
<div class="row">
|
||||
<h3 id="create_vnet_header" class="subheader">{{tr "Clone Template"}}</h3>
|
||||
</div>
|
||||
@@ -37,6 +37,10 @@
|
||||
<div class="form_buttons row">
|
||||
<button class="button radius right" id="template_clone_button" value="Template.clone">{{tr "Clone"}}</button>
|
||||
</div>
|
||||
<a class="close-reveal-modal">×</a>
|
||||
<div id="{{dialogId}}" class="reveal" data-reveal>
|
||||
<button class="close-button" data-close aria-label="{{tr "Close modal"}}" type="button">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.tab');
|
||||
// require('foundation.tab');
|
||||
var BaseFormPanel = require('utils/form-panels/form-panel');
|
||||
var Sunstone = require('sunstone');
|
||||
var Locale = require('utils/locale');
|
||||
@@ -117,11 +117,11 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function _setup(context) {
|
||||
Foundation.reflow(context, 'tabs');
|
||||
|
||||
$.each(this.wizardTabs, function(index, wizardTab) {
|
||||
wizardTab.setup($('#' + wizardTab.wizardTabId, context));
|
||||
});
|
||||
|
||||
context.foundation('tab', 'reflow');
|
||||
}
|
||||
|
||||
function _onShow(context) {
|
||||
@@ -154,8 +154,7 @@ define(function(require) {
|
||||
}
|
||||
|
||||
if (this.action == "create") {
|
||||
Sunstone.runAction("Template.create",
|
||||
{'vmtemplate': templateJSON});
|
||||
Sunstone.runAction("Template.create", {'vmtemplate': templateJSON});
|
||||
return false;
|
||||
} else if (this.action == "update") {
|
||||
Sunstone.runAction("Template.update", this.resourceId, TemplateUtils.templateToString(templateJSON));
|
||||
@@ -166,8 +165,7 @@ define(function(require) {
|
||||
function _submitAdvanced(context) {
|
||||
var template = $('textarea#template', context).val();
|
||||
if (this.action == "create") {
|
||||
Sunstone.runAction("Template.create",
|
||||
{"vmtemplate": {"template_raw": template}});
|
||||
Sunstone.runAction("Template.create", {"vmtemplate": {"template_raw": template}});
|
||||
return false;
|
||||
|
||||
} else if (this.action == "update") {
|
||||
|
||||
+83
-88
@@ -13,8 +13,7 @@
|
||||
{{! See the License for the specific language governing permissions and }}
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div class="row hypervisor only_vcenter" style="display: none;">
|
||||
<div class="row hypervisor only_vcenter" hidden>
|
||||
<div class="large-12 columns text-center">
|
||||
<label>{{tr "Contextualization type"}}</label>
|
||||
<input type="radio" name="context_type" id="context_type_vcenter" value="context_type_vcenter">
|
||||
@@ -24,117 +23,113 @@
|
||||
</div>
|
||||
<hr/>
|
||||
</div>
|
||||
<div class="row hypervisor only_vcenter context_type context_type_vcenter" style="display: none;">
|
||||
<div class="row hypervisor only_vcenter context_type context_type_vcenter" hidden>
|
||||
<div class="columns medium-6">
|
||||
<label for="vcenter_customizations">{{tr "vCenter customizations"}}:</label>
|
||||
<select id="vcenter_customizations"/>
|
||||
</div>
|
||||
<div class="columns medium-6">
|
||||
<label> </label>
|
||||
<input id="vcenter_customizations_value" type="text">
|
||||
</div>
|
||||
<input id="vcenter_customizations_value" type="text"></div>
|
||||
</div>
|
||||
<div class="context_type context_type_opennebula">
|
||||
<dl id="context_tabs" class="tabs vertical" data-tab>
|
||||
<dd class="active">
|
||||
<a href="#netsshTab">{{tr "Configuration"}}</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="#filesTab">{{tr "Files"}}</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="#zcustomTab">{{tr "Custom vars"}}</a>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="tabs-content vertical">
|
||||
<div class="wizard_internal_tab active content" id="netsshTab">
|
||||
<div class="row">
|
||||
<div class="columns medium-6">
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<input type="checkbox" name="ssh_context" id="ssh_context" checked>
|
||||
<label for="ssh_context">
|
||||
{{tr " Add SSH contextualization"}}
|
||||
<div class="context_type context_type_opennebula row collapse">
|
||||
<div class="medium-2 columns">
|
||||
<ul id="context_tabs" class="tabs vertical" data-tabs>
|
||||
<li class="tabs-title is-active">
|
||||
<a href="#netsshTab">{{tr "Configuration"}}</a>
|
||||
</li>
|
||||
<li class="tabs-title">
|
||||
<a href="#filesTab">{{tr "Files"}}</a>
|
||||
</li>
|
||||
<li class="tabs-title">
|
||||
<a href="#zcustomTab">{{tr "Custom vars"}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="medium-10 columns">
|
||||
<div class="tabs-content vertical" data-tabs-content="context_tabs">
|
||||
<div class="wizard_internal_tab is-active tabs-panel" id="netsshTab">
|
||||
<div class="row">
|
||||
<div class="columns medium-6">
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<input type="checkbox" name="ssh_context" id="ssh_context" checked>
|
||||
<label for="ssh_context">
|
||||
{{tr " Add SSH contextualization"}}
|
||||
{{{tip (tr "Add an ssh public key to the context. If the Public Key textarea is empty then the user variable SSH_PUBLIC_KEY will be used.")}}}
|
||||
</label>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="ssh_public_key">{{tr "Public Key"}}:</label>
|
||||
<textarea rows="2" type="text" id="ssh_public_key" name="ssh_public_key" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="ssh_public_key">{{tr "Public Key"}}:</label>
|
||||
<textarea rows="2" type="text" id="ssh_public_key" name="ssh_public_key" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="columns medium-6">
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<input type="checkbox" name="network_context" id="network_context" checked>
|
||||
<label for="network_context">
|
||||
{{tr " Add Network contextualization"}}
|
||||
<div class="columns medium-6">
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<input type="checkbox" name="network_context" id="network_context" checked>
|
||||
<label for="network_context">
|
||||
{{tr " Add Network contextualization"}}
|
||||
{{{tip (tr "Add network contextualization parameters. For each NIC defined in the NETWORK section, ETH$i_IP, ETH$i_NETWORK... parameters will be included in the CONTEXT section and will be available in the Virtual Machine")}}}
|
||||
</label>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<input type="checkbox" name="token_context" id="token_context">
|
||||
<label for="token_context">
|
||||
{{tr " Add OneGate token"}}
|
||||
<div class="row">
|
||||
<div class="columns large-12">
|
||||
<input type="checkbox" name="token_context" id="token_context">
|
||||
<label for="token_context">
|
||||
{{tr " Add OneGate token"}}
|
||||
{{{tip (tr "Add a file (token.txt) to the context contaning the token to push custom metrics to the VirtualMachine through OneGate")}}}
|
||||
</label>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="START_SCRIPT">
|
||||
{{tr "Start Script"}}
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="START_SCRIPT">
|
||||
{{tr "Start Script"}}
|
||||
{{{tip (tr "Text of the script executed when the machine starts up. It can contain shebang in case it is not shell script. For example 'yum upgrade'")}}}
|
||||
</label>
|
||||
<textarea rows="4" type="text" id="START_SCRIPT" name="START_SCRIPT" />
|
||||
<input type="checkbox" name="ENCODE_START_SCRIPT" id="ENCODE_START_SCRIPT">
|
||||
<label for="ENCODE_START_SCRIPT">
|
||||
{{tr " Encode Script in Base64"}}
|
||||
</label>
|
||||
</label>
|
||||
<textarea rows="4" type="text" id="START_SCRIPT" name="START_SCRIPT" />
|
||||
<input type="checkbox" name="ENCODE_START_SCRIPT" id="ENCODE_START_SCRIPT">
|
||||
<label for="ENCODE_START_SCRIPT">{{tr " Encode Script in Base64"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<i class="fa fa-lg fa-fw fa-cogs off-color"/>{{tr "User Inputs"}}
|
||||
<div class="row">
|
||||
<div class="large-12 columns"> <i class="fa fa-lg fa-fw fa-cogs off-color"/>{{tr "User Inputs"}}
|
||||
{{{tip (tr "These attributes must be provided by the user when a new VM is intantatiated using each template. They will be included in the VM context")}}}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">{{{userInputsHTML}}}</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
{{{userInputsHTML}}}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wizard_internal_tab content" id="filesTab">
|
||||
{{{contextFilesTableHTML}}}
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="FILES_DS">
|
||||
{{tr "FILES_DS"}}
|
||||
<div class="wizard_internal_tab tabs-panel" id="filesTab">
|
||||
{{{contextFilesTableHTML}}}
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="FILES_DS">
|
||||
{{tr "FILES_DS"}}
|
||||
{{{tip (tr "Raw String for the FILE_DS attribute of the VM template, representing files that will be included in the contextualization image. Each file must be stored in a FILE_DS Datastore and must be of type CONTEXT")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="FILES_DS" id="FILES_DS" name="FILES_DS" />
|
||||
</label>
|
||||
<input type="text" wizard_field="FILES_DS" id="FILES_DS" name="FILES_DS" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="INIT_SCRIPTS">
|
||||
{{tr "Init scripts"}}
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="INIT_SCRIPTS">
|
||||
{{tr "Init scripts"}}
|
||||
{{{tip (tr "If the VM uses the OpenNebula contextualization package the init.sh file is executed by default. When the init script added is not called init.sh or more than one init script is added, this list contains the scripts to run and the order. Ex. “init.sh users.sh mysql.sh”")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="INIT_SCRIPTS" id="INIT_SCRIPTS" name="INIT_SCRIPTS" />
|
||||
</label>
|
||||
<input type="text" wizard_field="INIT_SCRIPTS" id="INIT_SCRIPTS" name="INIT_SCRIPTS" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wizard_internal_tab content" id="zcustomTab">
|
||||
{{{customTagsTableHTML}}}
|
||||
<div class="wizard_internal_tab tabs-panel" id="zcustomTab">{{{customTagsTableHTML}}}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+2
-2
@@ -80,12 +80,12 @@ define(function(require) {
|
||||
$('#NAME', context).removeAttr("required");
|
||||
}
|
||||
|
||||
context.foundation('slider', 'reflow');
|
||||
//context.foundation('slider', 'reflow');
|
||||
}
|
||||
|
||||
function _setup(context) {
|
||||
$(document).on('click', "[href='#" + this.wizardTabId + "']", function(){
|
||||
context.foundation('slider', 'reflow');
|
||||
//context.foundation('slider', 'reflow');
|
||||
});
|
||||
|
||||
context.on("change", "#LOGO", function() {
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.slider');
|
||||
// require('foundation.slider');
|
||||
var Locale = require('utils/locale');
|
||||
var Tips = require('utils/tips');
|
||||
var WizardFields = require('utils/wizard-fields');
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.slider');
|
||||
// require('foundation.slider');
|
||||
var Locale = require('utils/locale');
|
||||
var Tips = require('utils/tips');
|
||||
var WizardFields = require('utils/wizard-fields');
|
||||
|
||||
+27
-25
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.tab');
|
||||
// require('foundation.tab');
|
||||
var Config = require('sunstone-config');
|
||||
var Locale = require('utils/locale');
|
||||
var Tips = require('utils/tips');
|
||||
@@ -361,28 +361,9 @@ define(function(require) {
|
||||
|
||||
function _setup(context) {
|
||||
var that = this;
|
||||
context.foundation('tab', 'reflow');
|
||||
Foundation.reflow(context, 'tabs');
|
||||
that.numberOfProviders = 0;
|
||||
|
||||
// close icon: removing the tab on click
|
||||
context.on("click", "i.remove-tab", function() {
|
||||
var target = $(this).parent().attr("href");
|
||||
var dd = $(this).closest('dd');
|
||||
var dl = $(this).closest('dl');
|
||||
var content = $(target);
|
||||
|
||||
dd.remove();
|
||||
content.remove();
|
||||
|
||||
if (dd.attr("class") == 'active') {
|
||||
$('a', dl.children('dd').last()).click();
|
||||
}
|
||||
|
||||
$("dl#template_create_hybrid_tabs dd", context).each(function(index) {
|
||||
$("a", this).html(Locale.tr("Provider") + ' ' + index + " <i class='fa fa-times-circle remove-tab'></i>");
|
||||
})
|
||||
});
|
||||
|
||||
context.on("click", "#tf_btn_hybrid", function() {
|
||||
that.addProviderTab(that.numberOfProviders, context);
|
||||
that.numberOfProviders++;
|
||||
@@ -462,7 +443,7 @@ define(function(require) {
|
||||
var htmlId = 'provider' + provider_id;
|
||||
|
||||
// Append the new div containing the tab and add the tab to the list
|
||||
var html_tab_content = '<div id="' + htmlId + 'Tab" class="provider wizard_internal_tab content">' +
|
||||
var html_tab_content = '<div id="' + htmlId + 'Tab" class="provider wizard_internal_tab tabs-panel">' +
|
||||
'<div class="row">' +
|
||||
'<div class="large-12 columns">' +
|
||||
'<label>' + Locale.tr("Hybrid Cloud") + '</label>' +
|
||||
@@ -476,16 +457,37 @@ define(function(require) {
|
||||
'</div>'
|
||||
$(html_tab_content).appendTo($("#template_create_hybrid_tabs_content", context));
|
||||
|
||||
var a = $("<dd>\
|
||||
var a = $("<li class='tabs-title'>\
|
||||
<a id='provider_tab" + htmlId + "' href='#" + htmlId + "Tab'>" + Locale.tr("PROVIDER") + "</a>\
|
||||
</dd>").appendTo($("dl#template_create_hybrid_tabs", context));
|
||||
</li>").appendTo($("ul#template_create_hybrid_tabs", context));
|
||||
|
||||
$("dl#template_create_hybrid_tabs dd", context).each(function(index) {
|
||||
$("ul#template_create_hybrid_tabs li", context).each(function(index) {
|
||||
$("a", this).html(Locale.tr("Provider") + ' ' + index + " <i class='fa fa-times-circle remove-tab'></i>");
|
||||
})
|
||||
|
||||
Foundation.reInit($("ul#template_create_hybrid_tabs", context));
|
||||
|
||||
$("a", a).trigger("click");
|
||||
|
||||
// close icon: removing the tab on click
|
||||
a.on("click", "i.remove-tab", function() {
|
||||
var target = $(this).parent().attr("href");
|
||||
var li = $(this).closest('li');
|
||||
var ul = $(this).closest('ul');
|
||||
var content = $(target);
|
||||
|
||||
li.remove();
|
||||
content.remove();
|
||||
|
||||
if (li.hasClass('is-active')) {
|
||||
$('a', ul.children('li').last()).click();
|
||||
}
|
||||
|
||||
$("ul#template_create_hybrid_tabs li", context).each(function(index) {
|
||||
$("a", this).html(Locale.tr("Provider") + ' ' + index + " <i class='fa fa-times-circle remove-tab'></i>");
|
||||
})
|
||||
});
|
||||
|
||||
var providerSection = $('#' + htmlId + 'Tab', context);
|
||||
|
||||
providerSection.on("change", "input.hybridRadio", function() {
|
||||
|
||||
+11
-8
@@ -13,13 +13,16 @@
|
||||
{{! See the License for the specific language governing permissions and }}
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<dl class="tabs vertical" id="template_create_hybrid_tabs" data-tab>
|
||||
<dt class="text-center">
|
||||
<a href="" class="button tiny radius" id="tf_btn_hybrid">
|
||||
<div class="row collapse">
|
||||
<div class="medium-2 columns">
|
||||
<ul class="tabs vertical" id="template_create_hybrid_tabs" data-tabs>
|
||||
</ul>
|
||||
<button href="" type="button" class="button small" id="tf_btn_hybrid">
|
||||
<span class="fa fa-plus"></span>
|
||||
{{tr "Add another provider"}}
|
||||
</a>
|
||||
</dt>
|
||||
</dl>
|
||||
<div class="tabs-content vertical" id="template_create_hybrid_tabs_content"></div>
|
||||
</button>
|
||||
</div>
|
||||
<div class="medium-10 columns">
|
||||
<div class="tabs-content vertical" id="template_create_hybrid_tabs_content" data-tabs-content="template_create_hybrid_tabs"></div>
|
||||
</div>
|
||||
</div>
|
||||
+7
-7
@@ -18,7 +18,7 @@
|
||||
<div class="medium-6 columns graphics">
|
||||
<fieldset>
|
||||
<legend>{{tr "Graphics"}}</legend>
|
||||
<div class="row">
|
||||
<div class="">
|
||||
<div class="large-12 columns text-center">
|
||||
<input type="radio" name="graphics_type" ID="radioNoneType" value="">
|
||||
<label for="radioNoneType">{{tr "None"}}</label>
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="">
|
||||
<input type="hidden" wizard_field="TYPE" name="graphics_type" ID="TYPE">
|
||||
<div class="large-12 columns">
|
||||
<label for="LISTEN">
|
||||
@@ -41,7 +41,7 @@
|
||||
<input type="text" wizard_field="LISTEN" id="LISTEN" name="graphics_ip" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="">
|
||||
<div class="medium-6 columns">
|
||||
<label for="PORT">
|
||||
{{tr "Port"}}
|
||||
@@ -57,7 +57,7 @@
|
||||
<input type="text" wizard_field="KEYMAP" id="KEYMAP" name="keymap" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row hypervisor only_kvm only_vmware only_xen">
|
||||
<div class=" hypervisor only_kvm only_vmware only_xen">
|
||||
<div class="large-12 columns">
|
||||
<label for="PASSWD">
|
||||
{{tr "Password"}}
|
||||
@@ -66,7 +66,7 @@
|
||||
<input type="text" wizard_field="PASSWD" id="PASSWD" name="graphics_pw" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row hypervisor only_kvm only_vmware only_xen">
|
||||
<div class=" hypervisor only_kvm only_vmware only_xen">
|
||||
<div class="columns large-12">
|
||||
<input type="checkbox" name="RANDOM_PASSWD" id="RANDOM_PASSWD">
|
||||
<label for="RANDOM_PASSWD">
|
||||
@@ -80,7 +80,7 @@
|
||||
<div class="medium-6 columns inputs hypervisor only_kvm only_vmware only_xen">
|
||||
<fieldset>
|
||||
<legend>{{tr "Inputs"}}</legend>
|
||||
<div class="row">
|
||||
<div class="">
|
||||
<div class="medium-5 columns">
|
||||
<select id="INPUT_TYPE" name="input_type">
|
||||
<option id="no_type" name="no_type" value=""></option>
|
||||
@@ -100,7 +100,7 @@
|
||||
<a href="#" class="button small radius secondary" id="add_input">{{tr "Add"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="">
|
||||
<div class="large-12 columns">
|
||||
<table id="input_table" class="dataTable policies_table">
|
||||
<thead>
|
||||
|
||||
+34
-31
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.tab');
|
||||
// require('foundation.tab');
|
||||
var Config = require('sunstone-config');
|
||||
var Locale = require('utils/locale');
|
||||
var Tips = require('utils/tips');
|
||||
@@ -86,27 +86,7 @@ define(function(require) {
|
||||
that.numberOfNics = 0;
|
||||
that.nicTabObjects = {};
|
||||
|
||||
context.foundation('tab', 'reflow');
|
||||
|
||||
// close icon: removing the tab on click
|
||||
context.on("click", "i.remove-tab", function() {
|
||||
var target = $(this).parent().attr("href");
|
||||
var dd = $(this).closest('dd');
|
||||
var dl = $(this).closest('dl');
|
||||
var content = $(target);
|
||||
|
||||
dd.remove();
|
||||
content.remove();
|
||||
|
||||
var nicId = content.attr("nicId");
|
||||
delete that.nicTabObjects[nicId];
|
||||
|
||||
if (dd.attr("class") == 'active') {
|
||||
$('a', dl.children('dd').last()).click();
|
||||
}
|
||||
|
||||
that.renameTabLinks(context);
|
||||
});
|
||||
Foundation.reflow(context, 'tabs');
|
||||
|
||||
context.on("click", "#tf_btn_nics", function() {
|
||||
that.addNicTab(context);
|
||||
@@ -171,28 +151,51 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function _addNicTab(context) {
|
||||
this.numberOfNics++;
|
||||
var nicTab = new NicTab(this.numberOfNics);
|
||||
var that = this;
|
||||
that.numberOfNics++;
|
||||
var nicTab = new NicTab(that.numberOfNics);
|
||||
|
||||
var content = $('<div id="' + nicTab.nicTabId + '" class="active nic wizard_internal_tab content">' +
|
||||
var content = $('<div id="' + nicTab.nicTabId + '" class="nic wizard_internal_tab tabs-panel">' +
|
||||
nicTab.html() +
|
||||
'</div>').appendTo($("#" + CONTENTS_CONTAINER_ID, context));
|
||||
|
||||
var a = $("<dd class='active'>" +
|
||||
var a = $("<li class='tabs-title'>" +
|
||||
"<a href='#" + nicTab.nicTabId + "'>" + Locale.tr("NIC") + "</a>" +
|
||||
"</dd>").appendTo($("#" + LINKS_CONTAINER_ID, context));
|
||||
"</li>").appendTo($("#" + LINKS_CONTAINER_ID, context));
|
||||
|
||||
Foundation.reInit($("#" + LINKS_CONTAINER_ID, context));
|
||||
|
||||
$("a", a).trigger("click");
|
||||
|
||||
nicTab.setup(content);
|
||||
content.attr("nicId", this.numberOfNics);
|
||||
content.attr("nicId", that.numberOfNics);
|
||||
|
||||
this.renameTabLinks(context);
|
||||
this.nicTabObjects[this.numberOfNics] = nicTab;
|
||||
that.renameTabLinks(context);
|
||||
that.nicTabObjects[that.numberOfNics] = nicTab;
|
||||
|
||||
// close icon: removing the tab on click
|
||||
a.on("click", "i.remove-tab", function() {
|
||||
var target = $(this).parent().attr("href");
|
||||
var li = $(this).closest('li');
|
||||
var ul = $(this).closest('ul');
|
||||
var content = $(target);
|
||||
|
||||
li.remove();
|
||||
content.remove();
|
||||
|
||||
var nicId = content.attr("nicId");
|
||||
delete that.nicTabObjects[nicId];
|
||||
|
||||
if (li.hasClass('is-active')) {
|
||||
$('a', ul.children('li').last()).click();
|
||||
}
|
||||
|
||||
that.renameTabLinks(context);
|
||||
});
|
||||
}
|
||||
|
||||
function _renameTabLinks(context) {
|
||||
$("#" + LINKS_CONTAINER_ID + " dd", context).each(function(index) {
|
||||
$("#" + LINKS_CONTAINER_ID + " li", context).each(function(index) {
|
||||
$("a", this).html(Locale.tr("NIC") + ' ' + index + " <i class='fa fa-times-circle remove-tab'></i>");
|
||||
})
|
||||
}
|
||||
|
||||
+17
-14
@@ -13,22 +13,25 @@
|
||||
{{! See the License for the specific language governing permissions and }}
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<dl class="tabs vertical" id="{{linksContainerId}}" data-tab>
|
||||
<dt class="text-center">
|
||||
<button href="#" type="button" class="button tiny radius" id="tf_btn_nics">
|
||||
<div class="row collapse">
|
||||
<div class="medium-2 columns">
|
||||
<ul class="tabs vertical" id="{{linksContainerId}}" data-tabs>
|
||||
</ul>
|
||||
<button href="" type="button" class="button small" id="tf_btn_nics">
|
||||
<span class="fa fa-plus"></span>
|
||||
{{tr "Add another interface"}}
|
||||
</button>
|
||||
</dt>
|
||||
</dl>
|
||||
<div class="tabs-content vertical" id="{{contentsContainerId}}"></div>
|
||||
<div class="row">
|
||||
<div class="medium-6 columns">
|
||||
<label for="DEFAULT_MODEL">
|
||||
{{tr "Default model"}}
|
||||
{{{tip (tr "Default value for all NICs. Hardware that will emulate the network interface. With Xen this is the type attribute of the vif.")}}}
|
||||
</label>
|
||||
<input type="text" id="DEFAULT_MODEL" name="DEFAULT_MODEL"/>
|
||||
</div>
|
||||
<div class="medium-10 columns">
|
||||
<div class="tabs-content vertical" id="{{contentsContainerId}}" data-tabs-content="{{linksContainerId}}"></div>
|
||||
<div class="row">
|
||||
<div class="medium-6 columns">
|
||||
<label for="DEFAULT_MODEL">
|
||||
{{tr "Default model"}}
|
||||
{{{tip (tr "Default value for all NICs. Hardware that will emulate the network interface. With Xen this is the type attribute of the vif.")}}}
|
||||
</label>
|
||||
<input type="text" id="DEFAULT_MODEL" name="DEFAULT_MODEL"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
-2
@@ -14,7 +14,6 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div class="row">
|
||||
{{{vnetsTableSelectHTML}}}
|
||||
<br>
|
||||
{{#advancedSection (tr "Advanced Options") }}
|
||||
@@ -215,4 +214,3 @@
|
||||
</fieldset>
|
||||
</div>
|
||||
{{/advancedSection}}
|
||||
</div>
|
||||
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.tab');
|
||||
// require('foundation.tab');
|
||||
var Config = require('sunstone-config');
|
||||
var Locale = require('utils/locale');
|
||||
var Tips = require('utils/tips');
|
||||
@@ -186,7 +186,7 @@ define(function(require) {
|
||||
|
||||
function _setup(context) {
|
||||
var that = this;
|
||||
context.foundation('tab', 'reflow');
|
||||
Foundation.reflow(context, 'tabs');
|
||||
|
||||
var kernelDSContext = $(".kernel_ds", context);
|
||||
var kernelDSInputsContext = $("#kernel_path_inputs", context);
|
||||
|
||||
+258
-255
@@ -13,277 +13,280 @@
|
||||
{{! See the License for the specific language governing permissions and }}
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div id="tabs-bootos">
|
||||
<dl class="tabs vertical" data-tab>
|
||||
<dd class="active">
|
||||
<a href="#bootTab">{{tr "Boot"}}</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="#kernelTab">{{tr "Kernel"}}</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="#ramdiskTab">{{tr "Ramdisk"}}</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="#featuresTab">{{tr "Features"}}</a>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="tabs-content vertical">
|
||||
<div class="wizard_internal_tab active content" id="bootTab">
|
||||
<div class="row">
|
||||
<div class="medium-4 columns">
|
||||
<label for="ARCH">
|
||||
{{tr "Arch"}}
|
||||
<div id="tabs-bootos" class="row collapse">
|
||||
<div class="medium-2 columns">
|
||||
<ul class="tabs vertical" id="osTabs" data-tabs>
|
||||
<li class="tabs-title is-active">
|
||||
<a href="#bootTab">{{tr "Boot"}}</a>
|
||||
</li>
|
||||
<li class="tabs-title">
|
||||
<a href="#kernelTab">{{tr "Kernel"}}</a>
|
||||
</li>
|
||||
<li class="tabs-title">
|
||||
<a href="#ramdiskTab">{{tr "Ramdisk"}}</a>
|
||||
</li>
|
||||
<li class="tabs-title">
|
||||
<a href="#featuresTab">{{tr "Features"}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="medium-10 columns">
|
||||
<div class="tabs-content vertical" data-tabs-content="osTabs">
|
||||
<div class="wizard_internal_tab is-active tabs-panel" id="bootTab">
|
||||
<div class="row">
|
||||
<div class="medium-4 columns">
|
||||
<label for="ARCH">
|
||||
{{tr "Arch"}}
|
||||
{{{tip (tr "CPU architecture to virtualization")}}}
|
||||
</label>
|
||||
<select wizard_field="ARCH" id="ARCH" name="arch">
|
||||
<option id="no_arch" name="no_arch" value=""></option>
|
||||
<option value="i686">i686</option>
|
||||
<option value="x86_64">x86_64</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="medium-8 columns hypervisor only_kvm">
|
||||
<label for="MACHINE">
|
||||
{{tr "Machine type"}}
|
||||
{{{tip (tr "libvirt machine type, only for KVM")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="MACHINE" id="MACHINE" name="machine" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="medium-4 columns">
|
||||
<label for="ROOT">
|
||||
{{tr "Root"}}
|
||||
{{{tip (tr "Device to be mounted as root")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="ROOT" id="ROOT" name="root"/>
|
||||
</div>
|
||||
<div class="medium-8 columns hypervisor only_vmware">
|
||||
<label for="GUESTOS">
|
||||
{{tr "Guest OS"}}
|
||||
{{{tip (tr "Set the OS of the VM, only for VMware")}}}
|
||||
</label>
|
||||
<select wizard_field="GUESTOS" id="GUESTOS" name="GUESTOS">
|
||||
<option id="no_guestos" name="no_guestos" value=""></option>
|
||||
{{#each guestOS}}
|
||||
<option value="{{this}}">{{this}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="medium-4 columns">
|
||||
<label for="BOOT_0">
|
||||
{{tr "1st Boot"}}
|
||||
{{{tip (tr "1st Boot device type")}}}
|
||||
</label>
|
||||
<select id="BOOT_0" name="boot">
|
||||
<option id="no_boot" name="no_boot" value=""></option>
|
||||
<option value="hd">{{tr "HD"}}</option>
|
||||
<option value="fd">{{tr "FD"}}</option>
|
||||
<option value="cdrom">{{tr "CDROM"}}</option>
|
||||
<option value="network">{{tr "NETWORK"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="medium-4 columns">
|
||||
<label for="BOOT_1">
|
||||
{{tr "2nd Boot"}}
|
||||
{{{tip (tr "2nd Boot device type")}}}
|
||||
</label>
|
||||
<select id="BOOT_1" name="boot">
|
||||
<option id="no_boot" name="no_boot" value=""></option>
|
||||
<option value="hd">{{tr "HD"}}</option>
|
||||
<option value="fd">{{tr "FD"}}</option>
|
||||
<option value="cdrom">{{tr "CDROM"}}</option>
|
||||
<option value="network">{{tr "NETWORK"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="medium-4 columns">
|
||||
<label for="BOOT_2">
|
||||
{{tr "3rd Boot"}}
|
||||
{{{tip (tr "3rd Boot device type")}}}
|
||||
</label>
|
||||
<select id="BOOT_2" name="boot">
|
||||
<option id="no_boot" name="no_boot" value=""></option>
|
||||
<option value="hd">{{tr "HD"}}</option>
|
||||
<option value="fd">{{tr "FD"}}</option>
|
||||
<option value="cdrom">{{tr "CDROM"}}</option>
|
||||
<option value="network">{{tr "NETWORK"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="KERNEL_CMD">
|
||||
{{tr "Kernel cmd"}}
|
||||
{{{tip (tr "Arguments for the booting kernel")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="KERNEL_CMD" id="KERNEL_CMD" name="kernel_cmd" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="BOOTLOADER">
|
||||
{{tr "Bootloader"}}
|
||||
{{{tip (tr "Path to the bootloader executable")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="BOOTLOADER" id="BOOTLOADER" name="bootloader" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="kernelTab" class="wizard_internal_tab content">
|
||||
<div class="row">
|
||||
<div class="large-12 columns text-center">
|
||||
<input id="radioKernelDs" type="radio" name="kernel_type" value="kernel_ds" checked/>
|
||||
<label for="radioKernelDs">{{tr "Registered Image"}}</label>
|
||||
<input id="radioKernelPath" type="radio" name="kernel_type" value="kernel_path"/>
|
||||
<label for="radioKernelPath">{{tr "Remote PATH"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="kernel_ds">
|
||||
{{{kernelFilesTableHTML}}}
|
||||
<div id="kernel_ds_inputs" class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="KERNEL_DS">{{tr "KERNEL_DS"}}</label>
|
||||
<input type="text" wizard_field="KERNEL_DS" id="KERNEL_DS" name="KERNEL_DS"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="kernel_path_inputs" class="kernel_path hidden row">
|
||||
<div class="large-12 columns">
|
||||
<label for="KERNEL">
|
||||
{{tr "PATH"}}
|
||||
{{{tip (tr "Path to the OS kernel to boot the image")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="KERNEL" id="KERNEL" name="kernel" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ramdiskTab" class="wizard_internal_tab content">
|
||||
<div class="row">
|
||||
<div class="large-12 columns text-center">
|
||||
<input id="radioInintrdDs" type="radio" name="initrd_type" value="initrd_ds" checked>
|
||||
<label for="radioInintrdDs">{{tr "Registered Image "}}</label>
|
||||
<input id="radioInitrdPath" type="radio" name="initrd_type" value="initrd_path">
|
||||
<label for="radioInitrdPath">{{tr "Remote PATH"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="initrd_ds">
|
||||
{{{initrdFilesTableHTML}}}
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="INITRD_DS">{{tr "INITRD_DS"}}</label>
|
||||
<input type="text" wizard_field="INITRD_DS" id="INITRD_DS" name="initrd_id"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="initrd_path_inputs" class="initrd_path hidden">
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="INITRD">
|
||||
{{tr "PATH"}}
|
||||
{{{tip (tr "Path to the initrd image")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="INITRD" id="INITRD" name="initrd"/>
|
||||
<select wizard_field="ARCH" id="ARCH" name="arch">
|
||||
<option id="no_arch" name="no_arch" value=""></option>
|
||||
<option value="i686">i686</option>
|
||||
<option value="x86_64">x86_64</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="medium-8 columns hypervisor only_kvm">
|
||||
<label for="MACHINE">
|
||||
{{tr "Machine type"}}
|
||||
{{{tip (tr "libvirt machine type, only for KVM")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="MACHINE" id="MACHINE" name="machine" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="medium-4 columns">
|
||||
<label for="ROOT">
|
||||
{{tr "Root"}}
|
||||
{{{tip (tr "Device to be mounted as root")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="ROOT" id="ROOT" name="root"/>
|
||||
</div>
|
||||
<div class="medium-8 columns hypervisor only_vmware">
|
||||
<label for="GUESTOS">
|
||||
{{tr "Guest OS"}}
|
||||
{{{tip (tr "Set the OS of the VM, only for VMware")}}}
|
||||
</label>
|
||||
<select wizard_field="GUESTOS" id="GUESTOS" name="GUESTOS">
|
||||
<option id="no_guestos" name="no_guestos" value=""></option>
|
||||
{{#each guestOS}}
|
||||
<option value="{{this}}">{{this}}</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="medium-4 columns">
|
||||
<label for="BOOT_0">
|
||||
{{tr "1st Boot"}}
|
||||
{{{tip (tr "1st Boot device type")}}}
|
||||
</label>
|
||||
<select id="BOOT_0" name="boot">
|
||||
<option id="no_boot" name="no_boot" value=""></option>
|
||||
<option value="hd">{{tr "HD"}}</option>
|
||||
<option value="fd">{{tr "FD"}}</option>
|
||||
<option value="cdrom">{{tr "CDROM"}}</option>
|
||||
<option value="network">{{tr "NETWORK"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="medium-4 columns">
|
||||
<label for="BOOT_1">
|
||||
{{tr "2nd Boot"}}
|
||||
{{{tip (tr "2nd Boot device type")}}}
|
||||
</label>
|
||||
<select id="BOOT_1" name="boot">
|
||||
<option id="no_boot" name="no_boot" value=""></option>
|
||||
<option value="hd">{{tr "HD"}}</option>
|
||||
<option value="fd">{{tr "FD"}}</option>
|
||||
<option value="cdrom">{{tr "CDROM"}}</option>
|
||||
<option value="network">{{tr "NETWORK"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="medium-4 columns">
|
||||
<label for="BOOT_2">
|
||||
{{tr "3rd Boot"}}
|
||||
{{{tip (tr "3rd Boot device type")}}}
|
||||
</label>
|
||||
<select id="BOOT_2" name="boot">
|
||||
<option id="no_boot" name="no_boot" value=""></option>
|
||||
<option value="hd">{{tr "HD"}}</option>
|
||||
<option value="fd">{{tr "FD"}}</option>
|
||||
<option value="cdrom">{{tr "CDROM"}}</option>
|
||||
<option value="network">{{tr "NETWORK"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="KERNEL_CMD">
|
||||
{{tr "Kernel cmd"}}
|
||||
{{{tip (tr "Arguments for the booting kernel")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="KERNEL_CMD" id="KERNEL_CMD" name="kernel_cmd" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="BOOTLOADER">
|
||||
{{tr "Bootloader"}}
|
||||
{{{tip (tr "Path to the bootloader executable")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="BOOTLOADER" id="BOOTLOADER" name="bootloader" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wizard_internal_tab content" id="featuresTab">
|
||||
<div class="row">
|
||||
<div class="medium-6 columns">
|
||||
<label for="ACPI">
|
||||
{{tr "ACPI"}}
|
||||
<div id="kernelTab" class="wizard_internal_tab tabs-panel">
|
||||
<div class="row">
|
||||
<div class="large-12 columns text-center">
|
||||
<input id="radioKernelDs" type="radio" name="kernel_type" value="kernel_ds" checked/>
|
||||
<label for="radioKernelDs">{{tr "Registered Image"}}</label>
|
||||
<input id="radioKernelPath" type="radio" name="kernel_type" value="kernel_path"/>
|
||||
<label for="radioKernelPath">{{tr "Remote PATH"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="kernel_ds">
|
||||
{{{kernelFilesTableHTML}}}
|
||||
<div id="kernel_ds_inputs" class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="KERNEL_DS">{{tr "KERNEL_DS"}}</label>
|
||||
<input type="text" wizard_field="KERNEL_DS" id="KERNEL_DS" name="KERNEL_DS"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="kernel_path_inputs" class="kernel_path row" hidden>
|
||||
<div class="large-12 columns">
|
||||
<label for="KERNEL">
|
||||
{{tr "PATH"}}
|
||||
{{{tip (tr "Path to the OS kernel to boot the image")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="KERNEL" id="KERNEL" name="kernel" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="ramdiskTab" class="wizard_internal_tab tabs-panel">
|
||||
<div class="row">
|
||||
<div class="large-12 columns text-center">
|
||||
<input id="radioInintrdDs" type="radio" name="initrd_type" value="initrd_ds" checked>
|
||||
<label for="radioInintrdDs">{{tr "Registered Image "}}</label>
|
||||
<input id="radioInitrdPath" type="radio" name="initrd_type" value="initrd_path">
|
||||
<label for="radioInitrdPath">{{tr "Remote PATH"}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="initrd_ds">
|
||||
{{{initrdFilesTableHTML}}}
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="INITRD_DS">{{tr "INITRD_DS"}}</label>
|
||||
<input type="text" wizard_field="INITRD_DS" id="INITRD_DS" name="initrd_id"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="initrd_path_inputs" class="initrd_path" hidden>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="INITRD">
|
||||
{{tr "PATH"}}
|
||||
{{{tip (tr "Path to the initrd image")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="INITRD" id="INITRD" name="initrd"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="wizard_internal_tab tabs-panel" id="featuresTab">
|
||||
<div class="row">
|
||||
<div class="medium-6 columns">
|
||||
<label for="ACPI">
|
||||
{{tr "ACPI"}}
|
||||
{{{tip (tr "Add support in the VM for Advanced Configuration and Power Interface (ACPI)")}}}
|
||||
</label>
|
||||
<select wizard_field="ACPI" id="ACPI" name="acpi">
|
||||
<option id="no_apci" name="no_apci" value=""></option>
|
||||
<option value="yes">{{tr "Yes"}}</option>
|
||||
<option value="no">{{tr "No"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="medium-6 columns">
|
||||
<label for="PAE">
|
||||
{{tr "PAE"}}
|
||||
</label>
|
||||
<select wizard_field="ACPI" id="ACPI" name="acpi">
|
||||
<option id="no_apci" name="no_apci" value=""></option>
|
||||
<option value="yes">{{tr "Yes"}}</option>
|
||||
<option value="no">{{tr "No"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="medium-6 columns">
|
||||
<label for="PAE">
|
||||
{{tr "PAE"}}
|
||||
{{{tip (tr "Add support in the VM for Physical Address Extension (PAE)")}}}
|
||||
</label>
|
||||
<select wizard_field="PAE" id="PAE" name="pae">
|
||||
<option id="no_pae" name="no_pae" value=""></option>
|
||||
<option value="yes">{{tr "Yes"}}</option>
|
||||
<option value="no">{{tr "No"}}</option>
|
||||
</select>
|
||||
</label>
|
||||
<select wizard_field="PAE" id="PAE" name="pae">
|
||||
<option id="no_pae" name="no_pae" value=""></option>
|
||||
<option value="yes">{{tr "Yes"}}</option>
|
||||
<option value="no">{{tr "No"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="medium-6 columns">
|
||||
<label for="APIC">
|
||||
{{tr "APIC"}}
|
||||
<div class="row">
|
||||
<div class="medium-6 columns">
|
||||
<label for="APIC">
|
||||
{{tr "APIC"}}
|
||||
{{{tip (tr "Enables the advanced programmable IRQ management.")}}}
|
||||
</label>
|
||||
<select wizard_field="APIC" id="APIC" name="apic">
|
||||
<option id="no_apic" name="no_apic" value=""></option>
|
||||
<option value="yes">{{tr "Yes"}}</option>
|
||||
<option value="no">{{tr "No"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="medium-6 columns">
|
||||
<label for="HYPERV">
|
||||
{{tr "HYPERV"}}
|
||||
</label>
|
||||
<select wizard_field="APIC" id="APIC" name="apic">
|
||||
<option id="no_apic" name="no_apic" value=""></option>
|
||||
<option value="yes">{{tr "Yes"}}</option>
|
||||
<option value="no">{{tr "No"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="medium-6 columns">
|
||||
<label for="HYPERV">
|
||||
{{tr "HYPERV"}}
|
||||
{{{tip (tr "Add support in the VM for hyper-v features (HYPERV)")}}}
|
||||
</label>
|
||||
<select wizard_field="HYPERV" id="HYPERV" name="hyperv">
|
||||
<option id="no_hyperv" name="no_hyperv" value=""></option>
|
||||
<option value="yes">{{tr "Yes"}}</option>
|
||||
<option value="no">{{tr "No"}}</option>
|
||||
</select>
|
||||
</label>
|
||||
<select wizard_field="HYPERV" id="HYPERV" name="hyperv">
|
||||
<option id="no_hyperv" name="no_hyperv" value=""></option>
|
||||
<option value="yes">{{tr "Yes"}}</option>
|
||||
<option value="no">{{tr "No"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="medium-6 columns">
|
||||
<label for="LOCALTIME">
|
||||
{{tr "Localtime"}}
|
||||
<div class="row">
|
||||
<div class="medium-6 columns">
|
||||
<label for="LOCALTIME">
|
||||
{{tr "Localtime"}}
|
||||
{{{tip (tr "The guest clock will be synchronized to the hosts configured timezone when booted.")}}}
|
||||
</label>
|
||||
<select wizard_field="LOCALTIME" id="LOCALTIME" name="localtime">
|
||||
<option id="no_localtime" name="no_localtime" value=""></option>
|
||||
<option value="yes">{{tr "Yes"}}</option>
|
||||
<option value="no">{{tr "No"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="medium-6 columns hypervisor only_xen">
|
||||
<label for="DEVICE_MODEL">
|
||||
{{tr "Device model"}}
|
||||
</label>
|
||||
<select wizard_field="LOCALTIME" id="LOCALTIME" name="localtime">
|
||||
<option id="no_localtime" name="no_localtime" value=""></option>
|
||||
<option value="yes">{{tr "Yes"}}</option>
|
||||
<option value="no">{{tr "No"}}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="medium-6 columns hypervisor only_xen">
|
||||
<label for="DEVICE_MODEL">
|
||||
{{tr "Device model"}}
|
||||
{{{tip (tr "Used to change the IO emulator in Xen HVM. Only XEN.")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="DEVICE_MODEL" id="DEVICE_MODEL" name="device_model"/>
|
||||
</label>
|
||||
<input type="text" wizard_field="DEVICE_MODEL" id="DEVICE_MODEL" name="device_model"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="medium-6 columns hypervisor only_vmware">
|
||||
<label for="PCIBRIDGE">
|
||||
{{tr "PCI BRIDGE"}}
|
||||
<div class="row">
|
||||
<div class="medium-6 columns hypervisor only_vmware">
|
||||
<label for="PCIBRIDGE">
|
||||
{{tr "PCI BRIDGE"}}
|
||||
{{{tip (tr " Adds a PCI Controller that provides bridge-to-bridge capability, only for VMware.")}}}
|
||||
</label>
|
||||
<select wizard_field="PCIBRIDGE" id="PCIBRIDGE" name="PCIBRIDGE">
|
||||
<option id="no_pcibridge" name="no_pcibridge" value=""></option>
|
||||
<option value="0">0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
<option value="6">6</option>
|
||||
<option value="7">7</option>
|
||||
<option value="8">8</option>
|
||||
<option value="9">9</option>
|
||||
<option value="10">10</option>
|
||||
</select>
|
||||
</label>
|
||||
<select wizard_field="PCIBRIDGE" id="PCIBRIDGE" name="PCIBRIDGE">
|
||||
<option id="no_pcibridge" name="no_pcibridge" value=""></option>
|
||||
<option value="0">0</option>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
<option value="6">6</option>
|
||||
<option value="7">7</option>
|
||||
<option value="8">8</option>
|
||||
<option value="9">9</option>
|
||||
<option value="10">10</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+4
-4
@@ -14,11 +14,11 @@
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<div class="row">
|
||||
<div class="">
|
||||
<div class="large-12 columns">
|
||||
<fieldset class="hypervisor only_xen only_kvm only_vmware">
|
||||
<legend>{{tr "RAW data"}}</legend>
|
||||
<div class="row">
|
||||
<div >
|
||||
<div class="medium-4 columns">
|
||||
<label for="raw_type">{{tr "TYPE"}}</label>
|
||||
<select id="raw_type" name="raw_type">
|
||||
@@ -36,7 +36,7 @@
|
||||
<textarea rows="2" type="text" id="raw_data" name="raw_data" />
|
||||
</div>
|
||||
</div>
|
||||
<div id="data_vmx_div" class="row hidden">
|
||||
<div id="data_vmx_div" hidden>
|
||||
<div class="medium-4 columns"></div>
|
||||
<div class="medium-8 columns">
|
||||
<label class="" for="raw_data_vmx">
|
||||
@@ -49,7 +49,7 @@
|
||||
</fieldset>
|
||||
<fieldset class="hypervisor only_kvm">
|
||||
<legend>{{tr "PCI Devices"}}</legend>
|
||||
<div class="row">
|
||||
<div >
|
||||
<div class="large-12 columns">
|
||||
<table class="dataTable pci_devices">
|
||||
<thead>
|
||||
|
||||
+4
-4
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.tab');
|
||||
// require('foundation.tab');
|
||||
var Config = require('sunstone-config');
|
||||
var Locale = require('utils/locale');
|
||||
var Tips = require('utils/tips');
|
||||
@@ -89,15 +89,15 @@ define(function(require) {
|
||||
|
||||
function _setup(context) {
|
||||
var that = this;
|
||||
context.foundation('tab', 'reflow');
|
||||
Foundation.reflow(context, 'tabs');
|
||||
|
||||
context.on("change", "input[name='req_select']", function() {
|
||||
if ($("input[name='req_select']:checked").val() == "host_select") {
|
||||
$("div.host_select", context).toggle();
|
||||
$("div.host_select", context).show();
|
||||
$("div.cluster_select", context).hide();
|
||||
} else {
|
||||
$("div.host_select", context).hide();
|
||||
$("div.cluster_select", context).toggle();
|
||||
$("div.cluster_select", context).show();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
+106
-105
@@ -13,119 +13,120 @@
|
||||
{{! See the License for the specific language governing permissions and }}
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<dl class="tabs vertical" data-tab>
|
||||
<dd class="active">
|
||||
<a href="#placementTab">{{tr "Placement"}}</a>
|
||||
</dd>
|
||||
<dd>
|
||||
<a href="#policyTab">{{tr "Policy"}}</a>
|
||||
</dd>
|
||||
</dl>
|
||||
<div class="tabs-content vertical">
|
||||
<div class="requirements wizard_internal_tab active content" id="placementTab">
|
||||
<fieldset>
|
||||
<legend>{{tr "Host Requirements"}}</legend>
|
||||
<div class="row">
|
||||
<div class="large-12 columns text-center">
|
||||
<input type="radio" id="hosts_req" name="req_select" value="host_select">
|
||||
<label for="hosts_req">{{tr "Select Hosts "}}</label>
|
||||
<input type="radio" id="clusters_req" name="req_select" value="cluster_select">
|
||||
<label for="clusters_req">{{tr "Select Clusters "}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div id="req_type" class="host_select" hidden>
|
||||
{{{hostsTableSelectHTML}}}
|
||||
</div>
|
||||
<div id="req_type" class="cluster_select hidden">
|
||||
{{{clustersTableSelectHTML}}}
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="SCHED_REQUIREMENTS">
|
||||
{{tr "Expression"}}
|
||||
<div class="row collapse">
|
||||
<div class="medium-2 columns">
|
||||
<ul class="tabs vertical" id="schedulingTabs" data-tabs>
|
||||
<li class="tabs-title is-active">
|
||||
<a href="#placementTab">{{tr "Placement"}}</a>
|
||||
</li>
|
||||
<li class="tabs-title">
|
||||
<a href="#policyTab">{{tr "Policy"}}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="medium-10 columns">
|
||||
<div class="tabs-content vertical" data-tabs-content="schedulingTabs">
|
||||
<div class="requirements wizard_internal_tab is-active tabs-panel" id="placementTab">
|
||||
<fieldset>
|
||||
<legend>{{tr "Host Requirements"}}</legend>
|
||||
<div class="row">
|
||||
<div class="large-12 columns text-center">
|
||||
<input type="radio" id="hosts_req" name="req_select" value="host_select">
|
||||
<label for="hosts_req">{{tr "Select Hosts "}}</label>
|
||||
<input type="radio" id="clusters_req" name="req_select" value="cluster_select">
|
||||
<label for="clusters_req">{{tr "Select Clusters "}}</label>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div id="req_type" class="host_select" hidden>{{{hostsTableSelectHTML}}}</div>
|
||||
<div id="req_type" class="cluster_select" hidden>{{{clustersTableSelectHTML}}}</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="SCHED_REQUIREMENTS">
|
||||
{{tr "Expression"}}
|
||||
{{{tip (tr "Boolean expression that rules out provisioning hosts from list of machines suitable to run this VM")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="SCHED_REQUIREMENTS" id="SCHED_REQUIREMENTS" name="requirements" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="hypervisor only_kvm only_vmware only_xen">
|
||||
<legend>{{tr "Datastore Requirements"}}</legend>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="SCHED_DS_REQUIREMENTS">
|
||||
{{tr "Expression"}}
|
||||
</label>
|
||||
<input type="text" wizard_field="SCHED_REQUIREMENTS" id="SCHED_REQUIREMENTS" name="requirements" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="hypervisor only_kvm only_vmware only_xen">
|
||||
<legend>{{tr "Datastore Requirements"}}</legend>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="SCHED_DS_REQUIREMENTS">
|
||||
{{tr "Expression"}}
|
||||
{{{tip (tr "Boolean expression that rules out entries from the pool of datastores suitable to run this VM.")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="SCHED_DS_REQUIREMENTS" id="SCHED_DS_REQUIREMENTS" name="requirements" />
|
||||
</div>
|
||||
</label>
|
||||
<input type="text" wizard_field="SCHED_DS_REQUIREMENTS" id="SCHED_DS_REQUIREMENTS" name="requirements" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div id="policyTab" class="wizard_internal_tab content">
|
||||
<fieldset class="host_rank">
|
||||
<legend>{{tr "Host Rank"}}</legend>
|
||||
<div class="row">
|
||||
<div class="large-12 columns text-center">
|
||||
<input type="radio" id="packingRadio" name="rank_select" value="RUNNING_VMS">
|
||||
<label for="packingRadio">
|
||||
{{tr "Packing"}}
|
||||
<div id="policyTab" class="wizard_internal_tab tabs-panel">
|
||||
<fieldset class="host_rank">
|
||||
<legend>{{tr "Host Rank"}}</legend>
|
||||
<div class="row">
|
||||
<div class="large-12 columns text-center">
|
||||
<input type="radio" id="packingRadio" name="rank_select" value="RUNNING_VMS">
|
||||
<label for="packingRadio">
|
||||
{{tr "Packing"}}
|
||||
{{{tip (tr "Pack the VMs in the cluster nodes to reduce VM fragmentation")}}}
|
||||
</label>
|
||||
<input type="radio" id="stripingRadio" name="rank_select" value="-RUNNING_VMS">
|
||||
<label for="stripingRadio">
|
||||
{{tr "Stripping"}}
|
||||
</label>
|
||||
<input type="radio" id="stripingRadio" name="rank_select" value="-RUNNING_VMS">
|
||||
<label for="stripingRadio">
|
||||
{{tr "Stripping"}}
|
||||
{{{tip (tr "Spread the VMs in the cluster nodes")}}}
|
||||
</label>
|
||||
<input type="radio" id="loadawareRadio" name="rank_select" value="FREE_CPU">
|
||||
<label for="loadawareRadio">
|
||||
{{tr "Load-aware"}}
|
||||
</label>
|
||||
<input type="radio" id="loadawareRadio" name="rank_select" value="FREE_CPU">
|
||||
<label for="loadawareRadio">
|
||||
{{tr "Load-aware"}}
|
||||
{{{tip (tr "Maximize the resources available to VMs in a node")}}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="SCHED_RANK">
|
||||
{{tr "Expression"}}
|
||||
<span class="tip">
|
||||
{{tr "This field sets which attribute will be used to sort the suitable hosts for this VM"}}.
|
||||
</span>
|
||||
</label>
|
||||
<input type="text" wizard_field="SCHED_RANK" id="SCHED_RANK" name="RANK" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="ds_rank hypervisor only_kvm only_vmware only_xen">
|
||||
<legend>{{tr "Datastore Rank"}}</legend>
|
||||
<div class="row">
|
||||
<div class="large-12 columns text-center">
|
||||
<input type="radio" id="packingDSRadio" name="ds_rank_select" value="-FREE_MB">
|
||||
<label for="packingDSRadio">
|
||||
{{tr "Packing"}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="SCHED_RANK">
|
||||
{{tr "Expression"}}
|
||||
<span class="tip">
|
||||
{{tr "This field sets which attribute will be used to sort the suitable hosts for this VM"}}.
|
||||
</span>
|
||||
</label>
|
||||
<input type="text" wizard_field="SCHED_RANK" id="SCHED_RANK" name="RANK" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
<fieldset class="ds_rank hypervisor only_kvm only_vmware only_xen">
|
||||
<legend>{{tr "Datastore Rank"}}</legend>
|
||||
<div class="row">
|
||||
<div class="large-12 columns text-center">
|
||||
<input type="radio" id="packingDSRadio" name="ds_rank_select" value="-FREE_MB">
|
||||
<label for="packingDSRadio">
|
||||
{{tr "Packing"}}
|
||||
{{{tip (tr "Tries to optimize storage usage by selecting the DS with less free space")}}}
|
||||
</label>
|
||||
<input type="radio" id="stripingDSRadio" name="ds_rank_select" value="FREE_MB">
|
||||
<label for="stripingDSRadio">
|
||||
{{tr "Stripping"}}
|
||||
</label>
|
||||
<input type="radio" id="stripingDSRadio" name="ds_rank_select" value="FREE_MB">
|
||||
<label for="stripingDSRadio">
|
||||
{{tr "Stripping"}}
|
||||
{{{tip (tr "Striping. Tries to optimize I/O by distributing the VMs across datastores.")}}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="SCHED_DS_RANK">
|
||||
{{tr "Expression"}}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="row">
|
||||
<div class="large-12 columns">
|
||||
<label for="SCHED_DS_RANK">
|
||||
{{tr "Expression"}}
|
||||
{{{tip (tr "This field sets which attribute will be used to sort the suitable datastores for this VM")}}}
|
||||
</label>
|
||||
<input type="text" wizard_field="SCHED_DS_RANK" id="SCHED_DS_RANK" name="RANK" />
|
||||
</div>
|
||||
</label>
|
||||
<input type="text" wizard_field="SCHED_DS_RANK" id="SCHED_DS_RANK" name="RANK" />
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
+34
-31
@@ -19,7 +19,7 @@ define(function(require) {
|
||||
DEPENDENCIES
|
||||
*/
|
||||
|
||||
require('foundation.tab');
|
||||
// require('foundation.tab');
|
||||
var Config = require('sunstone-config');
|
||||
var Locale = require('utils/locale');
|
||||
var Tips = require('utils/tips');
|
||||
@@ -86,27 +86,7 @@ define(function(require) {
|
||||
that.numberOfDisks = 0;
|
||||
that.diskTabObjects = {};
|
||||
|
||||
context.foundation('tab', 'reflow');
|
||||
|
||||
// close icon: removing the tab on click
|
||||
context.on("click", "i.remove-tab", function() {
|
||||
var target = $(this).parent().attr("href");
|
||||
var dd = $(this).closest('dd');
|
||||
var dl = $(this).closest('dl');
|
||||
var content = $(target);
|
||||
|
||||
dd.remove();
|
||||
content.remove();
|
||||
|
||||
var diskId = content.attr("diskId");
|
||||
delete that.diskTabObjects[diskId];
|
||||
|
||||
if (dd.attr("class") == 'active') {
|
||||
$('a', dl.children('dd').last()).click();
|
||||
}
|
||||
|
||||
that.renameTabLinks(context);
|
||||
});
|
||||
Foundation.reflow(context, 'tabs');
|
||||
|
||||
context.on("click", "#tf_btn_disks", function() {
|
||||
that.addDiskTab(context);
|
||||
@@ -155,28 +135,51 @@ define(function(require) {
|
||||
}
|
||||
|
||||
function _addDiskTab(context) {
|
||||
this.numberOfDisks++;
|
||||
var diskTab = new DiskTab(this.numberOfDisks);
|
||||
var that = this;
|
||||
that.numberOfDisks++;
|
||||
var diskTab = new DiskTab(that.numberOfDisks);
|
||||
|
||||
var content = $('<div id="' + diskTab.diskTabId + '" class="active disk wizard_internal_tab content">' +
|
||||
var content = $('<div id="' + diskTab.diskTabId + '" class="disk wizard_internal_tab tabs-panel">' +
|
||||
diskTab.html() +
|
||||
'</div>').appendTo($("#" + CONTENTS_CONTAINER_ID, context));
|
||||
|
||||
var a = $("<dd class='active'>" +
|
||||
var a = $("<li class='tabs-title'>" +
|
||||
"<a href='#" + diskTab.diskTabId + "'>" + Locale.tr("DISK") + "</a>" +
|
||||
"</dd>").appendTo($("#" + LINKS_CONTAINER_ID, context));
|
||||
"</li>").appendTo($("#" + LINKS_CONTAINER_ID, context));
|
||||
|
||||
Foundation.reInit($("#" + LINKS_CONTAINER_ID, context));
|
||||
|
||||
$("a", a).trigger("click");
|
||||
|
||||
diskTab.setup(content);
|
||||
content.attr("diskId", this.numberOfDisks);
|
||||
content.attr("diskId", that.numberOfDisks);
|
||||
|
||||
this.renameTabLinks(context);
|
||||
this.diskTabObjects[this.numberOfDisks] = diskTab;
|
||||
that.renameTabLinks(context);
|
||||
that.diskTabObjects[that.numberOfDisks] = diskTab;
|
||||
|
||||
// close icon: removing the tab on click
|
||||
a.on("click", "i.remove-tab", function() {
|
||||
var target = $(this).parent().attr("href");
|
||||
var li = $(this).closest('li');
|
||||
var ul = $(this).closest('ul');
|
||||
var content = $(target);
|
||||
|
||||
li.remove();
|
||||
content.remove();
|
||||
|
||||
var diskId = content.attr("diskId");
|
||||
delete that.diskTabObjects[diskId];
|
||||
|
||||
if (li.hasClass('is-active')) {
|
||||
$('a', ul.children('li').last()).click();
|
||||
}
|
||||
|
||||
that.renameTabLinks(context);
|
||||
});
|
||||
}
|
||||
|
||||
function _renameTabLinks(context) {
|
||||
$("#" + LINKS_CONTAINER_ID + " dd", context).each(function(index) {
|
||||
$("#" + LINKS_CONTAINER_ID + " li", context).each(function(index) {
|
||||
$("a", this).html(Locale.tr("Disk") + ' ' + index + " <i class='fa fa-times-circle remove-tab'></i>");
|
||||
})
|
||||
}
|
||||
|
||||
+10
-7
@@ -13,13 +13,16 @@
|
||||
{{! See the License for the specific language governing permissions and }}
|
||||
{{! limitations under the License. }}
|
||||
{{! -------------------------------------------------------------------------- }}
|
||||
|
||||
<dl class="tabs vertical" id="{{linksContainerId}}" data-tab>
|
||||
<dt class="text-center">
|
||||
<button href="" type="button" class="button tiny radius" id="tf_btn_disks">
|
||||
<div class="row collapse">
|
||||
<div class="medium-2 columns">
|
||||
<ul class="tabs vertical" id="{{linksContainerId}}" data-tabs>
|
||||
</ul>
|
||||
<button href="" type="button" class="button small" id="tf_btn_disks">
|
||||
<span class="fa fa-plus"></span>
|
||||
{{tr "Add another disk"}}
|
||||
</button>
|
||||
</dt>
|
||||
</dl>
|
||||
<div class="tabs-content vertical" id="{{contentsContainerId}}"></div>
|
||||
</div>
|
||||
<div class="medium-10 columns">
|
||||
<div class="tabs-content vertical" id="{{contentsContainerId}}" data-tabs-content="{{linksContainerId}}"></div>
|
||||
</div>
|
||||
</div>
|
||||
Loaded 100 of 192 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user