Commit Graph

301 Commits

Author SHA1 Message Date
Brian Federle 28513fa6c6 Autoscale UI actions: Support passing new actionFilter on complete
Conflicts:
	ui/scripts/ui-custom/autoscaler.js
2012-11-16 10:56:49 +05:30
Jessica Wang 08a73d1134 cloudstack 3.0 UI - autoscale -fix a bug that action bar was not refreshed after action was complete. 2012-11-16 10:56:48 +05:30
Jessica Wang f348fcfb0e cloudstack 3.0 UI - autoscale - implement enableAutoScaleVmGroup API, disableAutoScaleVmGroup API. 2012-11-16 10:56:48 +05:30
Brian Federle 2e4923a286 Autoscale UI: Add actions to top of dialog
Support performing actions via the autoscaler dialog. This adds
'autoscaleActions' and 'actionFilter' options to the autoscaler, which
specify and handle the actions appearing in the UI.

Performing these actions will cause a loading overlay to appear until
actions are finished, when the action bar is refreshed via the action
filter.
2012-11-16 10:56:46 +05:30
Jessica Wang 45891a9269 cloudstack 3.0 UI - autoscale - implement edit mode. 2012-11-16 10:56:46 +05:30
Brian Federle bbfb13a1d9 Merge Autoscaler UI implemetation
This change includes the new dialog box for the CloudStack Autoscaler
implementation. It is accessible by a button ('Autoscaler') that
appears under each LB rule.

This also contains changes to the multiEdit widget to support features
required for Autoscaler:

-Fixes context/data passing to custom button widgets
-Fixes data retrieval for select fields
2012-11-16 10:56:45 +05:30
Brian Federle 27fcb788e9 Instance wizard UI: Support conditional hide/show of add network box
Adds new function 'showAddNetwork' to instance wizard configuration,
which conditionally hides the 'add network form' on the select network
step. If it returns true, then show the box, otherwise false hides it.
2012-11-15 12:16:42 -08:00
Brian Federle 83229aa460 Zone wizard UI: Change isolation mode selection
-Remove VLAN + SG radio buttons; replace with 'Security groups'
checkbox

-Pass boolean 'zone.sgEnabled' to zoneWizard action handler, instead of
'zone.isolationMode' from before.
2012-11-15 11:42:00 -08:00
Brian Federle 29978bdb81 CS-16802: Add isolation mode drop-down to zone wizard
-Adds new radio button pair, 'isolation mode' under Advanced zone
select, allowing selection of isolation mode

-Isolation mode is disabled if 'Basic' zone is selected

-Pass isolation mode via new property 'zone.isolationMode'
2012-11-09 14:38:46 -08:00
Pranav Saxena 04c5d89f80 CS-16681:Inconsistent behavior in custom disk offering selection page in Add VM instance wizard - Fixed by adding a Jquery bind event 2012-11-03 13:01:32 +05:30
Jessica Wang 0d7ed63e20 CS-16573: cloudstack UI - VM Wizard - makeSelects() - sanitize output value. 2012-11-02 11:20:24 -07:00
Brian Federle 53072af8f7 CS-16295: Fix select project search box
Adds search functionality to 'select project' dialog's input box,
which was not sending value to the listProjects API
2012-11-01 12:17:39 -07:00
Brian Federle e6c3e59e39 UI custom actions/enable static NAT: fix loading state
Fixes a bug where the loading state is not immediataly set for the
detail view on performing certain custom UI actions, particularly
enable static NAT.

This passes a separate 'start' function to the custom widgets, which
triggers the loading state, and 'complete' when the action
completes (i.e., the server call is done)
2012-10-25 14:40:16 -07:00
Brian Federle 991557bfb6 UI: Add quick view to table list
For any list view that has a corresponding detail view, adds a tooltip
to display the compact overview of the detail view contents, including
all available actions. This avoids a user from having to click into a
new panel to see more details and actions for an item.

This will happen automatically for any list view with a 'detailView'
sub-option, and will append a new column to the end of each item
row. If 'noCompact: true' is specified in the detailView's options,
then the quick view will not be rendered.

** Note: This also removes the existing list actions for the instances
         and zones tables.

Example, to show a quick view:

listView: {
  detailView: {
    // Specify noCompact: true to not render a quick view
    //
    // noCompact: true
    ...
  },
  ...
}

Conflicts:
	ui/scripts/ui/widgets/detailView.js
2012-10-10 11:18:02 -07:00
Brian Federle 93c84c8291 CLOUDSTACK-85: Fix instance wizard review hypervisor
Fix hypervisor type not being shown in instance wizard review step
2012-09-18 14:18:48 -07:00
Pranav Saxena 330c89ce59 CS-16328:UI not calling the listCapacity correctly 2012-09-13 14:21:52 -07:00
Brian Federle eb0caf10a2 CS-16218: Only show VPC router details for ROOT admin 2012-08-30 11:01:02 -07:00
Jessica Wang 05fef0fb25 cloudstack 3.0 UI - VPC - localize Configure VPC Chart (Reviewed-by: Brian) 2012-08-29 13:29:44 -07:00
Jessica Wang bbf8bed8ee cloudstack 3.0 UI - VPC widget - localize text (Reviewed-by: Brian) 2012-08-28 15:59:46 -07:00
Brian Federle a52889bb6a CS-16196: Fix VM wizard network selects
-Fixes case where 1 existing network is present, but cannot be
 unchecked when 'add new network' is checked

-Fixes regression with multiple networks and VPC tiers present, where
 unchecking all regular networks will select the hidden VPC network

reviewed-by: jessica
2012-08-28 13:52:15 -07:00
Brian Federle e6ef6985f8 CS-16138: Fix instance wizard 'add network' radio button
When no guest networks are present but VPC tier is, fix 'add new
network' radio button being unselected.

reviewed-by: jessica
2012-08-22 15:24:58 -07:00
Jessica Wang 57d95d27f1 cloudstack 3.0 UI - VPC feature - fix a bug that shortLabel was not localizable. (Reviewed-by: Brian) 2012-08-21 16:51:22 -07:00
Brian Federle 5d94a8de8c VPC UI: Network ACL: Only show 'acl' tab on detail view
reviewed-by: jessica
2012-08-21 13:12:52 -07:00
Brian Federle 7d934d1039 CS-16085: Fix networks checkboxes
When both VPC and isolated networks are present, fix case where
unchecking first isolated networks triggers checkbox for VPC tier
network, thus making it appear as if no network is selected.

reviewed-by: jessica
2012-08-20 15:00:44 -07:00
Brian Federle 9394e838a5 CS-16001: Show router details on click of 'virtual router'
Clicking the 'Virtual Router' button will show the same router tab as seen on
the VPC detail view.

 -- Note that this is only clickable for admins, as users cannot view router
      details in the API.
2012-08-16 12:36:03 -07:00
Jessica Wang 78b3b1ad83 CS-15977: cloudstack 3.0 UI - VM Wizard - select network step (5th step) - if there is no visible network in Existing Networks Area, check checkbox in Add Network Area. 2012-08-14 15:53:18 -07:00
Mice Xia 29459549ba Fix a bug: zoneWizard uses incorrect vlan parameter to create storage network 2012-08-14 13:43:09 +08:00
Pranav Saxena 94d8eb71fb ACL restructuring label renaming 2012-08-13 14:29:21 +05:30
Pranav Saxena f285ce4ef0 ACL restructuring UI changes 2012-08-13 14:22:32 +05:30
Brian Federle 42a9fd641e VPC UI: New ACL flow
-Remove the ACL action from the tier chart item

-Adds an ACL overview list view under the VPC configure menu which
 displays each tier and their total # of ACLs.

-Add ACL edit to tier detail view

- (misc) Also add IP address tab to tier detail view
2012-08-10 13:04:20 -07:00
Brian Federle 41afde3207 CS-15902: Remove loading overlay from VPC actions
For add VPN and add gateway actions: remove loading overlay to allow
user to perform other actions. The overlay is replaced with a set of
notification messages indicating the status of the job.
2012-08-09 16:15:29 -07:00
Jessica Wang cd5b79414b CS-15773: cloudstack 3.0 UI - VPC - create private gateway dialog - add Physical Network dropdown. 2012-08-08 15:52:55 -07:00
Pranav Saxena 8f34776dd8 CS-15851:Intervlan - VMware - Enable Static NAT > if no tier selected> Apply> Status should display 'Please select a tier' 2012-08-08 18:02:39 +05:30
Pranav Saxena dd7a0da9a7 CS-15901:InterVlan - UI - Site-to-Site VPN Gateway - Confirmation Message should mention Site-to-Site VPN Gateway instead of just VPN Gateway 2012-08-08 15:00:48 +05:30
Pranav Saxena feaea413c7 CS-15844:InterVlan - UI - Remove ACL Icon is not displayed properly for ACL Rules 2012-08-06 16:06:30 +05:30
Brian Federle 26a4132b11 CS-15841: Better add VPC gateway flow
- Because only 1 gateway can exist per VPC, remove 'add' button from
  list view and immediately show create form on click if no gateway is
  present; show list view on successful creation. If there is a
  gateway, go to list view immediately.

- Rename "Gateways" -> "Private Gateway"
2012-08-03 12:26:34 -07:00
Brian Federle 5cb356024f CS-15802: Add VPC filter to instance wizard network select
Adds drop-down select to filter networks by VPC.

-If no VPC is selected, only show non-VPC isolated networks

-If VPC is selected, show tiers from specified VPC. Note that only one
 tier/network can be checked at a time in this mode, and 'add network'
 text field is hidden
2012-08-03 11:42:40 -07:00
Brian Federle 2cb141e6ae VPC: Update site-to-site VPN creation flow
If no VPN gateway exists for a VPC, then immediately show a dialog box
asking if user wants to add. If so, create VPN gateway and show list
view afterwards.

- This removes the 'add' button from the list view, moving the code up
  a level in the object to siteToSiteVPN.add

- In addition there is a new function, siteToSiteVPN.preCheck, which
  returns true/false. If true, then show list view immediately; if
  false, show dialog and go through creation process, showing list
  view afterwards.

Conflicts:
	ui/scripts/vpc.js
2012-08-02 11:34:51 -07:00
Brian Federle 1c7e68aa49 VPC widget: fix missing $browser reference 2012-07-31 14:37:55 -07:00
Alena Prokharchyk a39fd61249 Merge branch 'master' into vpc
Conflicts:
	server/src/com/cloud/network/rules/RulesManagerImpl.java
	server/src/com/cloud/vm/UserVmManagerImpl.java
	server/src/com/cloud/vm/VirtualMachineGuru.java
2012-07-27 13:47:46 -07:00
olgasmola b7d68ac5d5 CS-15325: Fix selected name of user from the drop down list overlay. 2012-07-27 16:27:59 +03:00
olgasmola b10a619635 CS-15518: Fix password field garbling on login screen. 2012-07-27 15:36:58 +03:00
Brian Federle 4a38f2be17 Cleanup formatting/whitespace
Conflicts:
	ui/scripts/vpc.js
2012-07-26 15:40:24 -07:00
Brian Federle ae45ed65c6 VPC tier UI: Fix loading state for other actions
Fix actions other than the add VM action, whose loading state was
never removed
2012-07-26 14:41:37 -07:00
Brian Federle 1ba451b65f VPC UI: Better launch VM loading state for tiers
When launching a VM via the 'add VM' button on a VPC tier, show
loading icon to the side of the VM count, so that the tier area isn't
blocked, allowing the user to add more VMs or do other actions to the
tier.
2012-07-26 14:33:14 -07:00
olgasmola 1075344f03 CS-15353: Larger click boxes in UI. 2012-07-25 11:54:45 +03:00
olgasmola dc19c86fde CS-15533: Add instance/Review tab fix empty value. 2012-07-25 10:42:43 +03:00
Jessica Wang dc847ed832 cloudstack 3.0 UI - VPC - tier - implement "Add VM to tier" action. 2012-07-20 15:44:45 -07:00
bfederle 71bfeae487 Update VPC UI 2012-07-20 11:02:28 -07:00
Hugo Trippaers 79c7da07ab Phase 1 of Nicira integration 2012-07-11 17:16:06 -07:00
Brian Federle 262bbbe800 Add block to show/hide tier select
-- Hidden by default, needs real conditional code
2012-07-10 15:41:23 -07:00
Brian Federle 9f093817f3 Implement static NAT tier select UI
Adds a new drop-down to the enable static NAT dialog to allow selecting a tier to be associated with the VM. This is in the header of the list view.

It is defined as follows:

enableStaticNAT: {
  ...
    action: {
      noAdd: true,
      custom: cloudStack.uiCustom.enableStaticNAT({
        // VPC
        tierSelect: function(args) {
          args.response.success({
            data: [
              { id: '1', description: 'VPC 1' },
              { id: '2', description: 'VPC 2' }
            ]
          });
        },
    ...
2012-07-10 15:41:23 -07:00
Brian Federle 49c3c8b2e3 VPC UI: Add link to site-to-site VPN
Add link in tooltip for site-to-site VPN, which opens a new panel
showing the list view. This draws from the existing 'siteToSiteVpn'
network subsection, so no modification should be required to the
existing list view.
2012-06-29 13:36:07 -07:00
Brian Federle 683b7d7822 Add configure VPC tooltip and links 2012-06-29 13:13:59 -07:00
Brian Federle f026387103 Add configure icon to VPC 2012-06-29 13:13:59 -07:00
Brian Federle 4c6738266d Fix add tier UI
Properly pass context for add tier dialog, which broke due to recent
changes that requires context to be present, for the action filter.
2012-06-28 15:34:22 -07:00
Brian Federle b1a5ec13cd VPC tier UI: Update state after performing actions
After performing an action that changes state, namely starting and
stopping a tier, run through the action pre-filter again, to make sure
that the allowable actions are properly refreshed.

Conflicts:
	ui/scripts/ui-custom/vpc.js
2012-06-28 15:23:37 -07:00
Brian Federle 28e49e8880 VPC UI: Refactor tier action filter handling
For reusability, move action filter handling for VPC tier actions to a
separate function. This allows for easier refreshing of actions after a
tier's state has changed.
2012-06-28 15:22:41 -07:00
Brian Federle 9bbbc4e356 Pass _custom correctly to VPC tier add VM action 2012-06-28 14:21:08 -07:00
Brian Federle 6d78cc4000 Add Apache license to new JS files 2012-06-28 13:40:19 -07:00
Brian Federle 808a3d75d9 Instance wizard: Don't try to add a new row if list view isn't present 2012-06-28 11:14:02 -07:00
Brian Federle c347c6bd09 Add base VPC UI
** Note: this is a work-in-progress, and only contains dummy content

Implement UI for managing VPC tiers, via a custom chart-like UI list
tiers and allowing the management of VMs associated with the VPCs.
2012-06-28 10:51:56 -07:00
Brian Federle e6a6f84361 Pass context to instance wizard 2012-06-28 10:51:56 -07:00
David Nalley 9687520712 applying Chip Childer's patches for license headers in the ui directory 2012-06-26 10:46:53 -04:00
Jessica Wang 3ee3e4122a cloudstack 3.0 UI - add zone wizard - (1) When sdn.ovs.controller is true and when the physical network is in Advanced zone, show isolation method dropdown with two options (VLAN, GRE). VLAN is the default option in the dropdown.
(2) When sdn.ovs.controller is false: hide isolation method dropdown. isolationmethods parameter won’t be passed to createPhysicalNetwork API.
(3) When the physical network is in Basic zone (regardless of sdn.ovs.controller) : hide isolation method dropdown. isolationmethods parameter won’t be passed to createPhysicalNetwork API.
2012-06-22 16:07:12 -07:00
Jessica Wang 791986268a (1) CS-15311: cloudstack 3.0 UI - Add Zone Wizard - add physical network step - no isolation method dropdown if network type is Basic.
(2) CS-15312 - cloudstack 3.0 UI - Add Zone Wizard - add physical network - remove "L3" option from isolation method.
2012-06-21 13:48:11 -07:00
Jessica Wang a00c21686f (1) CS-15057: Remove jquery.timer.js from source code. Replace it with native JavaScript functions.
(2) CS-14604: cloudstack 3.0 UI - Add Zone Wizard - skip Guest Traffic step if OVS tunnel manager is enabled.
(3) CS-15311: cloudstack 3.0 UI - Add Zone Wizard - add physical network step - no isolation method dropdown if network type is Basic.
(4) CS-14769:  Don't pass subdomainaccess param when scope=project.
(5) CS-15157: cloudstack 3.0 UI - infrastructure page - physical network - network service providers - reset nspMap before populating listNetworkServiceProviders response to nspMap.
2012-06-21 12:13:41 -07:00
Brian Federle 9f2a823d6e CS-13091: Enable/disable physical network UI actions 2012-05-24 12:17:58 -07:00
Jessica Wang 89f704d88c CS-13739: localize more labels 2012-05-23 17:21:39 -07:00
Brian Federle 4b88f454a3 CS-14953: 'CloudStack' -> 'CloudPlatform'
reviewed-by: brian

commit 4488f0a66766286e960a47d34cd2e5148162bcab
Author: Pranav Saxena <pranav.saxena@citrix.com>
Date:   Tue May 22 15:15:40 2012 +0530

    Renaming CloudStack to CloudPlatform for Proprietary builds
2012-05-22 11:45:58 -07:00
Brian Federle eb6392d48c CS-12462: no close button on select project list view popup 2012-05-21 10:29:29 -07:00
Brian Federle cf4ef95e9a CS-13123: Hide diagram parts on change password form 2012-05-15 11:56:45 -07:00
Brian Federle 0bc65768b7 CS-14339, CS-14241
In instance wizard, use configuration value for max. custom disk
offering size, instead of hardcoding the max size to 100 GB
2012-05-14 11:45:21 -07:00
Jessica Wang 89ee1b4814 cloudstack 3.0 UI - login page - add a blank option to language dropdown. When this blank option is selected, browser's default language will be used. 2012-05-03 15:41:38 -07:00
bfederle 57cc1ea378 WIP: Upload volume UI
Adds new action, upload volume, to the storage->volumes list view
header. This will present a dialog to specify URL & name of volume,
and select a VM to attach the volume to.

Server API calls are still incomplete and rely on hardcoded values.
2012-05-02 14:29:29 -07:00
bfederle 898952479e CS-14461: Add more infrastructure page shortcuts
-Add additional shortcuts for:
  -Primary storage
  -Secondary storgage
  -Virtual routers
  -System VMs

-Replace host stats with the new shortcuts

-Add 'zone' dropdown to create form for the newly added-shortcuts'
 sections, to support creating these items without a zone context
2012-04-30 10:32:43 -07:00
Jessica Wang 8d92440ec2 CS-14272: cloudstack 3.0 UI - Add Zone Wizard - physical networks step - add Isolation Method dropdown. 2012-04-26 16:19:46 -07:00
Jessica Wang b7b77cea5c CS-14559: cloudstack 3.0 UI - VM Wizard - last step - screen doesn't change, but user-entered VM name will be passed as hostname and displayname to deployVirtualMachine API. Add validation of user-entered name field to match naming rule of hostname. 2012-04-18 17:45:41 -07:00
pranav ee0f3e898c Bug 12833 addition of Fetch Latest Button on the Dashboard
Conflicts:

	client/WEB-INF/classes/resources/messages.properties
	ui/css/cloudstack3.css

reviewed-by: brian
2012-04-12 15:15:31 -07:00
Brian Federle 3a5a60c0be Add 'view all' shortcuts for common zone resources
On the physical resources dashboard, add a button to view all
resources for pods, clusters, and hosts. This will compile a
list view containing the resources across all zones.

In order to be able to add resources when in this zone-inspecific mode,
a zone drop-down had to be added to the create forms for
pods, clusters, and hosts.
2012-04-09 13:26:08 -07:00
Brian Federle 0194ca1954 Projects UI: fix dialog
Remove closeOnEscape from $(':ui-dialog') option calls, as they cause
JS errors breaking the projects UI. closeOnEscape is already defined
when the dialog is initialized, so these don't need to be defined
again.
2012-04-05 13:39:48 -07:00
Pranav Saxena 65ecbcae0b Bug : 13582 UI freezes because of pressing Escape key 2012-04-05 13:39:41 -07:00
Brian Federle fc0327677a Cleanup whitespace + indentation for UI widgets 2012-04-03 15:35:36 -07:00
Pranav Saxena c85daa95c9 Bug 12343: Multiple Clicks on View More buttons adding extra tab in the bread crum bar 2012-04-03 15:26:17 -07:00
frank 2f634c0913 Switch to Apache license 2012-04-03 04:50:05 -07:00
bfederle 608cbd266f Instance wizard: show loading overlay on launch
When clicking the launch VM button, immediately show a loading overlay,
preventing multple clicks which can accidentally launch multiple VMs.
2012-03-29 13:49:55 -07:00
Jessica Wang 297ec02dea bug 14532: cloudstack 3.0 UI - IP Address page - StaticNAT IP - configuration - clicking Firewall - show Firewall multiEdit screen instead of NAT Port Range screen because createIpForwardingRule/deleteIpForwardingRule/listIpForwardingRules API are obsolete in cloudstack 3.0 2012-03-29 11:53:10 -07:00
bfederle 97d8941a54 bug 14057
Rename 'label' -> 'traffic label' in configure traffic type dialog.
2012-03-28 10:24:52 -07:00
Brian Federle 0db22e44e8 bug 14375
Use 'Management IP Addresses' in place of 'Private IP Addresses' for
label on system dashboards
2012-03-21 11:15:03 -07:00
bfederle 4a9155df1b Always render physical networks as list view first 2012-03-20 13:58:23 -07:00
bfederle c23f1b8882 UI: Zone wizard update
-Allow for editing of traffic labels within the zone wizard; visible
 by going to the create physical network(s) step and clicking the
 'edit' button under each traffic type.

-Make hypervisor selection part of the create zone step, instead of
 the add cluster step -- this is to allow the physical network UI to
 have the selected hypervisor for the edit traffic labels dialog.

-Show drag-and-drop UI for basic zone setup, so that user can edit
 traffic labels for a basic zone. Note that user can only have one
 physical network here.

-Allow creation of storage traffic in a basic zone configuration, by
 optionally dragging storage traffic type icon to first physical
 network
2012-03-20 13:27:28 -07:00
bfederle 8ec783866b Prevent dashboard from breaking if item value is null 2012-03-20 08:23:27 -07:00
bfederle afbf97465a Sanitize projects UI elements -- project selector, etc. 2012-03-14 14:59:15 -07:00
Jessica Wang 4b4cba10c7 cloudstack 3.0 UI - replace old sanitizeXSS() with new cloudStack.sanitize(). 2012-03-14 14:03:28 -07:00
Jessica Wang 5c12161123 cloudstack 3.0 UI - infrastructure page - update SSL Certificate - overlay loading image during action. 2012-03-08 14:11:27 -08:00
Jessica Wang a601ef4c11 bug 14023: extend dialog widget to support textarea field. 2012-03-07 10:04:17 -08:00
Jessica Wang 58add196be bug 14023: add "update SSL Certificate" button in the first screen in Infrastructure page. 2012-03-06 16:00:10 -08:00
Jessica Wang 377fa4361f bug 12981: login screen - show explicit error messages when login fails. 2012-03-02 16:43:14 -08:00
Brian Federle ea7ea4ce6f bug 12767
Hide previous button on first step of instance wizard

status 12767: resolved fixed
2012-02-23 14:45:56 -08:00
Jessica Wang b815424948 Revert "bug 13924: IP Address page - Static NAT IP always support "Firewall - Port Range" regardless whether network offerings includes Firewall service or not. [reviewed-by: Brian]"
This reverts commit 0d430d0cd810542e4885487b78afccec422360e2.

[reviewed-by: Brian]
2012-02-22 18:29:52 -08:00