Commit Graph

2627 Commits

Author SHA1 Message Date
Jessica Wang 9e352d5928 cloudstack 3.0 UI - listView widget - remove action - remove the corresponding row after action completes. 2012-03-20 15:15:27 -07:00
Jessica Wang 257997398e cloudstack 3.0 UI - infrastructure page - zone detail - rename "network" tab to "physical network" tab. 2012-03-20 14:39:27 -07:00
Jessica Wang 3d327c03be bug 14056: cloudstack 3.0 UI - infrastructure page - zone detail - physical network listView - provide delete action in listView. 2012-03-20 14:31:56 -07:00
bfederle 4a9155df1b Always render physical networks as list view first 2012-03-20 13:58:23 -07:00
Jessica Wang 464967294b Revert "bug 14376: cloudstack 3.0 UI - Add Network Offering - compute offering(service offering) dropdown - only populate service offerings whose systemvmtype is domainrouter."
This reverts commit 076617fbff.
2012-03-20 13:41:01 -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
Jessica Wang 59def829ca cloudstack 3.0 UI - code optimization - seperate code of Enabling Security Group provider code, Adding Netscaler provider, Creating guest network to different functions (to avoid repeating code and to give individual message for each action) 2012-03-20 11:55:09 -07:00
bfederle 8ec783866b Prevent dashboard from breaking if item value is null 2012-03-20 08:23:27 -07:00
Jessica Wang a4c332766d bug 14376: cloudstack 3.0 UI - Add Network Offering - compute offering(service offering) dropdown - only populate service offerings whose systemvmtype is domainrouter. 2012-03-19 16:31:10 -07:00
Jessica Wang 20acc4d315 bug 14377: cloudstack 3.0 UI - login - if login fails due to invalid username and password, show a generic error message instead of API returned error message. 2012-03-19 16:04:50 -07:00
Jessica Wang 794b0516a3 bug 14325: cloudstack 3.0 UI - add zone wizard - basic zone - cover the case that selected network offering has Netscaler provider, but no security group service. 2012-03-19 14:45:22 -07:00
Jessica Wang 04f54ed29e bug 14325: cloudstack 3.0 UI - add zone wizard - basic zone - show netscaler tab if selected network offering's provider is Netscaler. Hide netscaler tab otherwise. 2012-03-19 12:05:08 -07:00
Jessica Wang b867e3fe62 bug 14325: cloudstack 3.0 UI - add zone wizard - basic zone - retrieve provider of selected network offering 2012-03-19 10:48:54 -07:00
Jessica Wang 5079cb6a06 bug 14332: cloudstack 3.0 UI - Host page - make "Remove Host" action available when host state is Down, Alert, Disconnected or when resource state is Maintenance, Disabled. 2012-03-16 15:58:15 -07:00
Jessica Wang b8dae7c57c cloudstack 3.0 UI - XSS - global setting page - fix a bug that notification got hacked after saving a value that has script tag (XSS attack). 2012-03-16 13:12:23 -07:00
Jessica Wang 31274387fc cloudstack 3.0 UI - XSS - listView - editable field - fix a bug that editable field sanitized value twice. 2012-03-16 11:53:42 -07:00
Jessica Wang 8e2fc79174 cloudStack 3.0 UI - validation - apply new method "disallowSpecialCharacters" to all textfields in dialog widget. 2012-03-15 15:31:30 -07:00
Jessica Wang f0cb103a98 cloudStack 3.0 UI - validation - add new method "disallowSpecialCharacters" which will disallow < and > (to prevent XSS attack) - apply this method in Add Domain dialog. 2012-03-15 14:47:33 -07:00
bfederle 0b28b02e5e Sanitize input for domain section/tree view 2012-03-15 10:30:28 -07:00
Jessica Wang 4191d28753 cloudstack 3.0 UI - XSS - detailView in Edit mode - fix it to show original value instead of HTML-encoding value. 2012-03-14 16:45:22 -07:00
bfederle 504e90b7cc Sanitize input for multi-edit, notification widgets 2012-03-14 16:11:22 -07:00
bfederle 13864cc66a Add missing resource, max networks, to project resource tab 2012-03-14 16:11:22 -07:00
Jessica Wang 7f14bb70c5 cloudstack 3.0 UI - XSS - listView - fix it to show correct value. 2012-03-14 16:11:04 -07:00
bfederle afbf97465a Sanitize projects UI elements -- project selector, etc. 2012-03-14 14:59:15 -07:00
Jessica Wang c4c68e2995 cloudstack 3.0 UI - fix a JS error "str.replace is undefined". 2012-03-14 14:36:44 -07:00
Jessica Wang 4b4cba10c7 cloudstack 3.0 UI - replace old sanitizeXSS() with new cloudStack.sanitize(). 2012-03-14 14:03:28 -07:00
bfederle dd55f8ab99 Sanitize createForm input 2012-03-14 13:32:19 -07:00
bfederle d28de139b8 Sanitize detail view input rendering 2012-03-14 12:32:42 -07:00
bfederle 2c2e0accdd Sanitize list view input rendering 2012-03-14 12:19:38 -07:00
bfederle c5e726be90 Fix case where str is not present 2012-03-14 11:51:41 -07:00
bfederle f7524c22d4 Add helper function to sanitize user input strings
For any strings that require sanitization (i.e., strip
HTML/JavaScript), wrap the string around cloudStack.sanitize, or _s
for short. This currently will remove embedded HTML tags, which are
the main security issues present.

Example:

var str = '<script>Hello</script>My String';

_s(str) = '&lt;script&gt;Hello&lt;/script&gt;My String'
2012-03-14 10:54:41 -07:00
Jessica Wang ad74b396dc cloudstack 3.0 UI - network page, infrastructure page - guest network - restart network action - Hide "clean up" checkbox if it's Basic zone. Show "clean up" checkbox if it's Advanced zone. 2012-03-13 16:56:08 -07:00
Jessica Wang b46a2340be cloudstack 3.0 UI - network page - IP Address detail page - remove duplicate info - network name and network type are already in parent page (network page). 2012-03-13 16:30:25 -07:00
Jessica Wang 13a9a98ef4 cloudstack 3.0 UI - network page, infrastructure page - guest network - restart network action - uncheck and gray out "clean up" checkbox if it's Basic zone. Check and enable the checkbox if it's Advanced zone. 2012-03-13 16:17:40 -07:00
Jessica Wang 1c4f580a85 cloudstack 3.0 UI - guest network - show Edit action for Isolated network. Show Restart action for all networks. 2012-03-13 15:15:54 -07:00
Jessica Wang 3f86fe78f2 cloudstack 3.0 UI -infrastructure page - remove obsolete code. 2012-03-13 14:31:45 -07:00
Jessica Wang af06038b9d infrastructure page - zone detail - guest traffic type - networks tab - pass listAll=true to 2nd listNetworks API. 2012-03-12 14:48:48 -07:00
Jessica Wang 11b4e2c37e cloudstack 3.0 UI - IP Address page - retrieving data for detailView - no need to pass listAll parameter to listPublicIpAddresses API. Passing id parameter is enough. 2012-03-12 14:13:14 -07:00
Jessica Wang 6558f66239 bug 14238: create network offering dialog - remove traffic type dropdown since it includes only one choice. Hardcode it in API call. 2012-03-12 11:37:36 -07:00
Jessica Wang 008fcb8a27 cloudstack 3.0 UI - listView - when clicking fast between different rows, JS error "args.context.xxx is undefined" appears. e.g. "args.context.instances is undefined" appears when clicking fast between different rows in listView in instance page. Because when clicking fast, users might click another row before API response for this current row is back => which causes the JS error. The fix is to overlay the whole listView by loading image (spinning wheel image) until click-handling for this row is done (e.g. API response is back). 2012-03-09 16:48:14 -08:00
bfederle ae1858d1cd bug 14191
-Only show domains under logged in user's domain

-Allow domain admins to add accounts from 'Accounts' section
2012-03-09 14:12:49 -08:00
Jessica Wang 64a61f5ccb bug 13112: cloudstack 3.0 UI - host page - add Statistics tab. 2012-03-09 13:49:23 -08:00
Jessica Wang 078cd90ad9 bug 14190: not refresh embedded data in corresponding list view row because data here is partial (e.g. if it's from Nics tab in instance page instead of details tab in instance page, data is just an array of Nic object, not an array of Instance object). 2012-03-09 13:02:52 -08:00
bfederle 35765419d1 Disable notification interval if in 'debug' mode (for unit tests) 2012-03-09 11:27:39 -08:00
Jessica Wang 595b7e5c04 cloudstack 3.0 UI - delete zone, delete pod, delete clouster in detailView - after action is finished, remove detailView and remove corresponding row from listView. 2012-03-09 11:26:06 -08:00
Jessica Wang 70fa9f0188 bug 14206: ISO page - listView - show name instead of description. 2012-03-08 15:06:25 -08:00
Jessica Wang 89af00eaee bug 14196: infrastructure page - add guest network - pass subdomainaccess=false to API when Subdomain Access is unchecked. 2012-03-08 14:44:47 -08: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 4761b9ec58 cloudstack 3.0 UI - (1) listView widget - add PreFilter() to exclude fields that shouldn't show upon conditions. (2) Instance page - add new field "Internal name" (e.g. "i-3-5-JW") that only shows for root-admin. 2012-03-08 13:30:06 -08:00
Jessica Wang 346e543582 Network page - Add guest network dialog - network offering dropdown - pass guestiptype instead of type to listNetworkOfferings API. 2012-03-08 10:03:41 -08:00
Jessica Wang 174329468e bug 14194: Infrastructure page - guest traffic type - set traffic labels regardless of what vlan's value is. 2012-03-07 16:48:57 -08:00
Jessica Wang 998a598026 Infrastructure page - guest traffic - details tab - move Tags field up from lower pane(traffic type) to upper pane (physical network) since tags is at physical network level, not at traffic type level. 2012-03-07 16:20:39 -08:00
Jessica Wang 1a952affbc bug 14193: system - guest traffic - edit action - not pass vlan to updatePhysicalNetwork when vlan field is blank. 2012-03-07 16:20:21 -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
Brian Federle c0c80432a8 Add field ID to list view <th>s 2012-03-06 14:58:00 -08:00
Brian Federle cefe07c337 bug 14124: Fix remove host confirm dialog 2012-03-06 14:08:26 -08:00
Brian Federle 39b74a6df2 bug 14093
Uncheck conditional fields to be hidden, to avoid hidden services from
accidentally being enabled
2012-03-06 13:58:11 -08:00
Brian Federle fb141dd5ef bug 14093
Don't show specific provider fields on add network offering if in
Advanced/Shared configuration:

-Source NAT
-Static NAT
-PF
-LB
2012-03-06 13:22:22 -08:00
Brian Federle 46ad531a1e bug 14088:
Fix Citrix log / EULA not rendering due to missing language cookie;
specify default language variable, set to English, if no 'lang' cookie
is present.

status 14088: resolved fixed
2012-03-05 16:13:31 -08:00
Jessica Wang 6eec3d3377 bug 13386: System page - Virtual Router page - hide Public IP field when its zone's network type is Basic. 2012-03-05 16:13:05 -08:00
Jessica Wang 1955997fee ISO page - wrong value, "labelc.community", in Filter by dropdown 2012-03-05 15:04:19 -08:00
Jessica Wang 1dbd10e5e9 cloudstack 3.0 UI - Make Account page/User page available to normal-user role. 2012-03-05 11:34:02 -08:00
Jessica Wang 377fa4361f bug 12981: login screen - show explicit error messages when login fails. 2012-03-02 16:43:14 -08:00
Jessica Wang be9ca30ffb Delete User action - fix a bug that loading image didn't disappear after action was finished. 2012-03-02 11:53:03 -08:00
Jessica Wang d1e2b2fcb6 Account page - account detail view - implement Refresh button. [reviewed-by: Brian] 2012-03-02 11:29:36 -08:00
Jessica Wang 27bfd62e0e delete template action, delete ISO action - use 'remove' instead of 'destroy' since their definitions have been switched. 2012-03-02 11:08:23 -08:00
bfederle 9f260fb37b UI: Networks section fix
Fix broken detail view when viewing other users' networks as admin
2012-03-02 11:06:47 -08:00
Jessica Wang 7e9393ec2f delete account, delete network offeirng, delete guest network - use 'remove' instead of 'destroy' since their definitions have been switched. 2012-03-01 16:59:40 -08:00
Jessica Wang bddbd30e11 delete volume action, delete snapshot action, delete router action - use 'remove' instead of 'destroy' since their definitions have been switched. 2012-03-01 16:41:43 -08:00
Jessica Wang 6cf6820a3f switch definition of 'destroy' action with definition of 'remove' action. i.e. 'remove' action will hide detailView and remove corresponding row from listView after action is done. 2012-03-01 16:31:55 -08:00
Jessica Wang 41cab515ee cloudstack 3.0 UI - After destroy action is finished, remove the row from listView. 2012-03-01 15:36:03 -08:00
Jessica Wang db7e262181 Network page - detail view - make API call to refresh data when Refresh button is clicked. 2012-03-01 11:36:49 -08:00
Jessica Wang c390826359 Snapshot page - detail view - make API call to refresh data when Refresh button is clicked. 2012-03-01 11:13:57 -08:00
Jessica Wang 708c7d2168 Volume page - detail view - make API call to refresh data when Refresh button is clicked. 2012-03-01 11:13:29 -08:00
Jessica Wang 26e45b2b24 fix a JS error: $detailView.data("list-view-row") is undefined 2012-03-01 10:13:18 -08:00
Jessica Wang 389b981532 cloudstack 3.0 UI - detailView widget - refresh embedded data in corresponding list view row when dataProvider is called. 2012-02-29 17:23:36 -08:00
Jessica Wang e6d43e157e bug 14073: Quick Installer - make zones created from Quick Installer to be public (not dedicated to any domain) 2012-02-29 15:22:36 -08:00
Brian Federle 541b18a0f4 Add tests for navigation and homepage; basic fixes 2012-02-29 11:54:40 -08:00
Brian Federle 6d9928ba32 Only show invitations if projects UI is initialized 2012-02-29 10:33:05 -08:00
Jessica Wang 2e479ff240 cloudstack 3.0 new UI - support single-sign-on. 2012-02-28 14:54:17 -08:00
Jessica Wang 1136cd7cf1 remove g_type that is no longer in use. 2012-02-28 13:34:47 -08:00
Brian Federle 2022cd2dea Use user.role instead of user.type 2012-02-28 12:09:45 -08:00
Jessica Wang 43570f9898 cloudstack 3.0 new UI - check whether session is valid or not before sending API request. If session is invalid, pop up "session expired" dialog instead of send API request. 2012-02-28 11:34:24 -08:00
Jessica Wang b7b9b096a2 cloudstack 3.0 new UI - clean up global variable and session cookie when logging out. 2012-02-27 17:32:05 -08:00
Brian Federle c4e5ce36c5 bug 13072: Remove host 'type' field
status 13072: resolved fixed
2012-02-27 16:45:37 -08:00
Jessica Wang a2962c0f59 Add Network Offering dialog - trigger change event to show/hide fields when the dialog box is opened. 2012-02-27 12:43:26 -08:00
Jessica Wang 2f69ec34cc bug 14030: ISO page - download ISO action - fix to show correct message ("url: ~~~") after ISO is downloaded. 2012-02-27 12:24:16 -08:00
Brian Federle a4197874c4 bug 14012
Fix typo in shutdown provider message code

status 14012: resolved fixed
reviewed-by: jessica
2012-02-27 10:45:25 -08:00
Brian Federle b0f038c421 bug 14011
Fix to show install wizard when re-loading the page, so that the EULA
is always shown until installation is completed.
2012-02-27 10:27:41 -08:00
Jessica Wang 9ff7056820 bug 13971: network page - create network - pass new API parameter zoneId to listNetworkOfferings API. [Reviewed-by: Brian] 2012-02-23 17:18:50 -08:00
Jessica Wang a12f30e539 bug 13971: deployVM wizard - select network step - pass new API parameter zoneId to listNetworkOfferings API. 2012-02-23 17:18:22 -08:00
Brian Federle 7f6d6c6b87 bug 13974
Fix table not including reorder column when switching filter
2012-02-23 16:17:14 -08:00
Brian Federle 2d08583682 bug 13972
Properly refresh data for users detail view
2012-02-23 15:30:13 -08:00
Brian Federle 856f41bdf8 System, secondary storage UI fixes
-Add state field ('resourcestate') to list view

-Fix destroy action to have proper UI feedback
2012-02-23 15:07:43 -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
Brian Federle 152e58c444 Fix destroy system VM action 2012-02-23 14:42:29 -08:00
Brian Federle 3c61e205a1 bug 13965
Remove listPhysicalNetworks API altogether from network step
2012-02-23 13:47:17 -08:00
Brian Federle ee6dc038f2 bug 13965
For regular user, don't do list physical networks API call on instance
wizard
2012-02-23 12:14:47 -08:00
Jessica Wang 9d6fc8090f bug 13949: fix a localization label 2012-02-22 19:05:58 -08:00