Commit Graph

465 Commits

Author SHA1 Message Date
bfederle 2b2e491f27 CS-15572: Fix page index for list view filters
This fixes an issue where the page index is not reset back 1 when
activating the search or filter functionality, causing truncation when
trying to scroll down to later pages.
2012-07-17 11:41:53 -07:00
Pranav Saxena 374be31b63 CS-15572 : StartIndex handled incorrectly when switching between the various Filter by options while listing ISOs in the UI 2012-07-13 12:32:38 +05:30
Brian Federle 50373b99d6 Detail view: Fix layout of text actions 2012-07-12 15:29:15 -07:00
Brian Federle 2a971d7c1b Detail view UI: Support for text action buttons
Currently, only icons are rendered on detail view actions. This change
adds support for showing a text label next to specified actions, which
has a button appearance. This is to allow certain actions to be more
visible, in the case where an icon isn't clear enough.

To make an action have a text label, add a 'textLabel' attribute to
the action properties:

editVpc: {
  label: 'Edit VPC',

  // textLabel property
  textLabel: 'label.configure',

  action: {
    ...
  }
}
2012-07-12 15:29:15 -07:00
Brian Federle 9b039d9a8d List view UI: Support for text action buttons
Currently, only icons are rendered on list view actions. This change
adds support for showing a text label next to specified actions, which
has a button appearance. This is to allow certain actions to be more
visible, in the case where an icon isn't clear enough.

To make an action have a text label, add a 'textLabel' attribute to
the action properties:

editVpc: {
  label: 'Edit VPC',

  // textLabel property
  textLabel: 'label.configure',

  action: {
   ...
  }
}
2012-07-12 13:46:19 -07:00
Brian Federle 5b8f5d6ae3 multiEdit: Correctly pass context to header fields 2012-07-10 14:57:07 -07:00
Brian Federle dd52157f09 Add code to show/hide 'tiers' header fields 2012-07-10 14:57:07 -07:00
Brian Federle 5fa4f4cf37 Pass mulit-edit form data to add VM dialogs, as part of context 2012-07-10 14:57:06 -07:00
Brian Federle 04ac28202f Multi-edit: refactor form serialization
To support header-level form items, serialize every form within the
multi-edit div (not just the main table form). For reusability, make
data serialization handled in separate 'getMultiData' function.
2012-07-10 14:57:06 -07:00
Brian Federle 081f1e335d Add header fields 2012-07-10 14:57:05 -07:00
Jessica Wang d03fb2a7e2 cloudstack 3.0 UI - (1) to distinguish between getUpdatedItem() and getUpdatedData(), rename getUpdatedData() to getUpdatedItemWhenAsyncJobFails() since it's being called only when async job fails. (2) fix the space problem (tab size is not 2) from patch. 2012-06-27 10:57:29 -07:00
olgasmola 367e32adbc CS-15329: Instances with Error states appear in Instances list after creating. 2012-06-26 16:28:59 -07:00
bfederle cbe1f3e4c4 CS-15287
Support validation on edit detail view

Original patch by: olga.smola
reviewed-by: brian
2012-06-26 13:30:36 -07:00
bfederle 80b8515347 CS-15315: Fix overlay positioning
Original patch by: olga.smola
reviewed-by: brian
2012-06-26 10:24:54 -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 aac1ac555d CS-14854: cloudstack 3.0 UI - (1) extend detailView widget to take in dynamic isEditable value. (2) template page - edit template action - for regular user and domain admin: make Extractable field and Featured field non-editable. Do NOT send “isfeatured”, “isextractable” to updateTemplatePermission API when they are non-editable. 2012-06-21 13:43:04 -07:00
Brian Federle 237fd426e1 CS-14230
Add password confirm to add account/user forms

Original patch by: oyla.smola@gmail.com
Reviewed-by: brian
2012-06-14 11:33:28 -07:00
Brian Federle 1371764abd Update breadcrumb hover effect
-Use 1s interval (instead of 2s) until showing panel

-Use .fadeOut on panel focus, for smoother transition
2012-06-11 15:13:14 -07:00
Brian Federle 93e87a5b31 CS-14877: Focus browser panel on breadcrumb hover
When mouse is over a breadcrumb for a period of > 2s, show its
respective panel until mouseout. This allows a user to see the
contents of the panel without having to select it.

reviewed-by: brian

Original commit:
commit 88be929e04826cd1159a2db7dbca220f7eadf5fd
Author: Pranav Saxena <pranav.saxena@citrix.com>
Date: Fri Jun 8 14:17:42 2012 +0530

    CS-14877: Expanded breadcrumb navigation on hover UI Requirement
2012-06-11 12:52:22 -07:00
bfederle 815f55d916 CS-14010
Add 'about' dialog to the CloudStack top header, showing current verison
information.

Patch submitted by: oyla.smola@gmail.com
Reviewed-by: brian

Conflicts:

	ui/scripts/ui/core.js
2012-06-11 11:40:55 -07:00
Brian Federle 70687e4b44 CS-14844: Fix edit action
Fix edit action by referring to the new td.value <span>, instead of
td.value
2012-05-25 12:24:19 -07:00
Brian Federle 96982933df CS-14844
-If value label in detail view gets too long, then add horizontal
 scrollbar to value, to avoid truncation

-Lower font size to 11px (-1px) to better fit longer data into UI

reviewed-by: sonny
2012-05-25 12:08:29 -07:00
Jessica Wang 5168995905 CS-15015: cloudstack 3.0 UI - detailView widget - disable "pollAgainIfValueIsIn" function for now. 2012-05-21 16:12:01 -07:00
Jessica Wang 0282f2d8c9 cloudstack 3.0 UI - Instance page - detail view - keep polling newest info from server if VM state is Starting or Stopping. 2012-05-21 15:37:46 -07:00
Jessica Wang 62c456501a CS-15015: cloudstack 3.0 UI - detailView widget - add new property "pollAgainIfValueIsIn" to keep polling newest info from server when a column has a specific value (e.g. volume state column has value 'UploadNotStarted') 2012-05-21 14:04:15 -07:00
Brian Federle cab83385b4 CS-13861: Fix 'isChecked: false' not working on IE 2012-05-17 12:34:33 -07:00
Brian Federle f3a73d722f UI proprietary build: rename 'CloudStack' -> 'CloudPlatform'
When EULA is present for a proprietary build, show 'CloudPlatform'
instead of 'CloudStack' in the logo for the login form and top header.
2012-05-16 10:43:36 -07:00
Brian Federle 418c900c87 CS-14715
Concatenate long user names, to prevent header bar from wrapping
2012-05-14 12:42:59 -07:00
Jessica Wang b8058e7a5e CS-14116: cloudstack 3.0 UI - (1) add guest network dialog: make vlan/gateway/netmask required when network offering is "Shared". (2) dialog widget: be able to change field to required or not-required after createForm is rendered. 2012-05-04 15:20:27 -07:00
Jessica Wang 90ec0a6300 cloudstack 3.0 UI - dialog widget - add new function cloudStack.dialog.createFormField.validation.required.add(), cloudStack.dialog.createFormField.validation.required.remove() 2012-05-02 14:03:13 -07:00
Jessica Wang 08daf9eee0 cloudstack 3.0 UI - XSS - detailView in Edit mode - fix it to show original value instead of HTML-encoding value. 2012-04-23 22:33:18 +01:00
bfederle d062c21cb2 Sanitize input for multi-edit, notification widgets 2012-04-23 22:33:18 +01:00
bfederle 25f57c3f59 Sanitize detail view input rendering 2012-04-23 22:33:08 +01:00
bfederle b04254220f Sanitize list view input rendering 2012-04-23 22:32:17 +01:00
Jessica Wang 2f36d60bde bug 12688: fix a bug in listView widget that didn't pass correct filterBy object to loadBody(). 2012-04-16 14:59:23 -07:00
Jessica Wang 757c3542e8 cloudstack 3.0 UI - dialog widget - remove a line that produced a bug that change event is trigger before data is populated in this dropdown in selectFn($.extend(selectArgs, dependsOnArgs)). Besides, selectFn($.extend(selectArgs, dependsOnArgs)) includes the line, $input.trigger('change'), already. 2012-04-12 16:24:53 -07:00
Brian Federle 711551e34f UI: detail view
Support dynamically updating context on detail view load, to support cases
where certain context items are required by other elements loaded, but may not
be present in the browser history.
2012-04-05 15:44:08 -07:00
Brian Federle fc0327677a Cleanup whitespace + indentation for UI widgets 2012-04-03 15:35:36 -07:00
Brian Federle 6263ae9944 Detail view UI fix
Fix case where detail view data does not update, after async action
2012-04-03 14:42:34 -07:00
Jessica Wang d983462558 cloudstack 3.0 UI - global settings page - fix a bug that "value" column turned blank when Save button is being clicked. 2012-04-03 14:13:57 -07:00
frank 2f634c0913 Switch to Apache license 2012-04-03 04:50:05 -07:00
Jessica Wang 3aed5ee830 bug 14586: cloudstack 3.0 UI - fix a bug that Download Template action didn't pop up a dialog box showing download URL. 2012-04-02 16:33:13 -07:00
Jessica Wang a62fb3a1f9 cloudstack 3.0 UI - domain page - fix a JS error that appears after a new domain is created - "context[$detailView.data('view-args').section] is undefined" 2012-03-30 17:26:48 -07:00
Jessica Wang 30dbea1ff7 bug 12421: cloudstack 3.0 UI - detailView widget - fix a bug that updated data returned by API call got lost, so failed to update detailView with updated data. 2012-03-30 13:32:49 -07:00
Pranav Saxena 3c0108ef58 Bug 14476: ESC causes UI to freeze 2012-03-28 12:42:13 -07:00
Jessica Wang 8fa7c114a6 bug 14488 - multiEdit widget - itemData[0] does not always have data. Only retrieve data when itemData[0] is not an empty object. 2012-03-26 10:56:29 -07:00
Sanjay Tripathi c796c86330 Bug 14067: Global config - clicking on Edit button twice gives javaScript error args.callback is not a function. 2012-03-26 11:41:38 +05:30
Brian Federle 5dccd91be1 Detail view: Always return true on args.response.success 2012-03-23 13:26:28 -07:00
Brian Federle 76528f37f1 bug 14240
Add VM details to name in PF/LB rule on click.

Note that the details panel now maximizes, to prevent additional panels
from accumulating by the user trying to click on multiple VMs when the
detail pane is present.
2012-03-21 12:13:19 -07:00
Brian Federle f82aa63815 bug 14380: Add cancel button to detail view edit action 2012-03-21 11:44:30 -07:00
Jessica Wang 995a338e3c cloudstack 3.0 UI - listView - fix a bug that table row was not removed from listView after Remove action on listView completed. 2012-03-21 11:20:02 -07:00
Brian Federle 07f6c0b337 Fix multi-edit when item data is not present 2012-03-21 11:03:50 -07:00
Brian Federle 6ef16cb79f bug 14351: Show VM name in PF, instead of UUID 2012-03-21 10:26:48 -07:00
Brian Federle a1099e34c2 UI: Better load balancer / multi-edit item naming
Currently, the items listed under the load balancer always use .name as
the field to display for the VM name.

Since 'instancename' is now used for the user-friendly name field,
_itemName metadata attribute can be specified in the rule's data
provider to tell which field should be rendered as the name field in the
list.
2012-03-21 09:56:40 -07:00
Brian Federle f9a7619ae5 Error handling for multiEdit remove action 2012-03-21 09:28:50 -07:00
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 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
Jessica Wang 7f14bb70c5 cloudstack 3.0 UI - XSS - listView - fix it to show correct value. 2012-03-14 16:11:04 -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
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 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
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 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 a601ef4c11 bug 14023: extend dialog widget to support textarea field. 2012-03-07 10:04:17 -08:00
Brian Federle c0c80432a8 Add field ID to list view <th>s 2012-03-06 14:58:00 -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 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
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
Brian Federle 7f6d6c6b87 bug 13974
Fix table not including reorder column when switching filter
2012-02-23 16:17:14 -08:00
Brian Federle db435eb324 Domain/tree view UI fix
Render details only after panel is fully transitioned in, to prevent
lag from server calls while animation is happening.
2012-02-22 12:14:15 -08:00
Brian Federle 84b18473e7 bug 13922
-Fix enable static NAT never completing if detail view was not visible
 -- caused by JS error in widget

-If detail view isn't visible anymore, don't show post-enable/disable
 NAT dialog which refreshes list view
2012-02-22 12:04:18 -08:00
Brian Federle 99b49117b9 UI: Browser widget fix
Fix elems.undefined error, which happens when destroyed panel
continues to animate.

-- This happened particularly in the domain section, when clicking
to/from another section while the details panel was sliding in.
2012-02-21 16:20:44 -08:00
Brian Federle a16f5a1237 Use newer format for addPanel for nav items 2012-02-21 16:20:44 -08:00
Brian Federle dcd7ebe8f1 bug 13828
Fix add VM button disappearing if no VMs are present under LB rule
2012-02-21 15:22:27 -08:00
Brian Federle 9d954fa815 bug 13675
Hide unused text fields for ICMP vs TCP selection
2012-02-21 13:44:34 -08:00
Jessica Wang 65d9b60d42 bug 13648: fix a bug in listView widget - $listView.length is 0 after calling $(window).trigger('cloudStack.fullRefresh'), calling $listView.listView will encounter an error when $listView.length is 0. 2012-02-20 14:44:57 -08:00
Brian Federle ab16c765a7 UI: fix broken multiEdit context on actions 2012-02-17 15:03:06 -08:00
Jessica Wang dd62086b4b bug 13862: change detailView widget to show error text returned in API response. 2012-02-17 14:00:47 -08:00
Brian Federle 380689be88 bug 12253: Allow editing of LB rule name/algorithm
-- This also introduced a new capability -- edit rule -- into the
   multiEdit widget. If isEditable: true is set for any fields, then a
   dialog will popup allowing editing of those properties.

status 12253: resolved fixed
2012-02-17 13:39:20 -08:00
Brian Federle 2e82439a53 Hide Citrix logo if no EULA is present (i.e., is OSS version) 2012-02-16 16:22:23 -08:00
Brian Federle 667d8188e2 More UI widget localization 2012-02-14 16:00:52 -08:00
Brian Federle c1e976cba4 bug 13717
Rename 'Cancel' -> 'No' for confirm dialog

status 13717: resolved fixed
2012-02-14 14:46:20 -08:00
Brian Federle 53126cdf9d Localize header bar drop-down 2012-02-14 13:06:43 -08:00
Brian Federle c721344752 Missing detail view widget localization 2012-02-14 12:54:39 -08:00
Brian Federle 6136a598e7 Add missing labels to list view widget 2012-02-14 12:01:05 -08:00
Brian Federle b8757034b4 Add missing localization for dialogs 2012-02-14 12:01:04 -08:00
Brian Federle 8246aff812 Add missing localization for notifications labels 2012-02-14 12:01:04 -08:00
Brian Federle 744cd902d1 Localize domains section 2012-02-13 15:11:11 -08:00
Brian Federle fbf47f2f4c IE7 list view/table fixes 2012-02-10 15:52:12 -08:00
Brian Federle 4c05adaac0 Error appearance for notifications corner alert 2012-02-10 15:00:29 -08:00
Brian Federle 0625839920 multiEdit localization 2012-02-09 16:04:33 -08:00
Brian Federle 6fed8f102a Localization for network->networks section 2012-02-09 15:58:00 -08:00
Brian Federle 2f26cf87b6 Fix some message labels 2012-02-09 14:52:15 -08:00
Brian Federle 9d4437e089 UI localization for core.js 2012-02-09 11:49:31 -08:00
Brian Federle d2284e4439 UI: localization
-Put localization wrappers around listView, detailView widgets

-Add initial localization for instances section
2012-02-09 10:39:59 -08:00
bfederle c094c1a6db bug 13115
Show project name in header when project is active

status 13115: resolved fixed
2012-02-07 16:14:39 -08:00
bfederle e30c346017 Better handling for list view header actions 2012-02-07 12:36:15 -08:00
bfederle 093d37ddf9 Don't hide thead 2012-02-07 12:15:54 -08:00
bfederle 995589b479 Add invitation check; dialog for pending invites; misc. fixes 2012-02-06 16:50:08 -08:00
bfederle 99fe55e385 Add updated invite form 2012-02-06 16:05:11 -08:00
bfederle 572b44fb29 UI form dialog fix
Fix form elements not being removed from DOM after closing dialog on
save/cancel -- this may cause issues with conditional fields if
re-launching the form dialog.
2012-02-06 09:23:15 -08:00
bfederle b57c72d98b Fix detail view UI destroy action 2012-02-03 15:41:27 -08:00
bfederle 701fff934d Fix detail view action if no args are present 2012-02-02 16:14:23 -08:00
Jessica Wang c7460ae962 bug 12966: domain page (tree-view) - remove search box since no place to show searching results in a tree. 2012-02-01 14:06:47 -08:00
Jessica Wang e8d7220ff3 bug 12728: extend listView widget to take in preFilter. filter Destroyed option from listView filters for regular user. 2012-02-01 13:29:35 -08:00
bfederle ea512c2829 List view: fix for header actions 2012-02-01 10:39:00 -08:00
bfederle 8b55d8b1b0 Fix multiEdit string concat for LB name 2012-01-30 17:21:38 -08:00
bfederle d6ef879b44 bug 13148
Concatenate LB rule name if length too long

status 13148: resolved fixed
2012-01-30 15:45:08 -08:00
bfederle f940c542a0 Multi-edit: Increase length of poll interval, to prevent choppy UI 2012-01-30 14:55:46 -08:00
bfederle 59bd048b56 bug 13356
Clear out sticky/custom data drop-down after adding policy

status 13356: resolved fixed
2012-01-30 14:53:59 -08:00
bfederle 3b4676d384 bug 12091
UI support for adding/removing of VMs from LB rules

status 12091: resolved fixed
2012-01-27 16:27:05 -08:00
bfederle 203cdedf87 Fix missing <tr> from list view thead (broke IE7) 2012-01-26 15:00:41 -08:00
bfederle 55b4cfc82a Support custom action after new panel is selected 2012-01-25 13:58:33 -08:00
bfederle 8156842ae6 -LB sticky policy fixes
-StaticNat refresh fixes
2012-01-24 16:38:59 -08:00
bfederle eff786bcad bug 13242
-Map allowed sticky session params to network capabilities, to only
 show fields relevant to selected network

-Move sticky rules to separate JS file
2012-01-24 13:28:06 -08:00
bfederle 3a0886f891 Add documentation copy for zone wizard steps 2012-01-23 16:38:30 -08:00
bfederle bc3eef9223 Add 'field required asterisk' 2012-01-23 15:26:03 -08:00
bfederle 3f3e69b842 Add help link to top user drop-down 2012-01-23 15:06:23 -08:00
bfederle 24c14006d2 Updated zone wizard / details
Rework zone wizard:

-Support creation of multiple physical networks via drag-and-drop UI

-Support configuration of traffic types

-Allow creation of complete zone resources -- pods, clusters, hosts,
 storage -- in a similar fashion to the quick install

-Add requirements to support elastic load balancer

Rework zone details page:

-Convert old zone chart into a regular zone details pane, split into
 multiple tabs

-Add zone-specific resources dashboard

-Allow display of multiple physical networks
2012-01-23 10:53:36 -08:00
bfederle 3e365ad8c2 bug 11798 (WIP)
-Add UI for sticky policy

-Create sticky policy functionality
2012-01-20 14:33:16 -08:00
bfederle 58e937acc1 Show zone details on dashboard capacity items 2012-01-05 10:24:46 -08:00
bfederle b2824af586 List view UI
-Support preFilter to show/hide add action
2012-01-04 15:50:54 -08:00
bfederle bd552356b6 Fix wrong set of actions being passed for list view selects 2012-01-04 13:05:50 -08:00
bfederle aac2ce7cd9 bug 12520
Hide specific sections when in project view:

-Projects (list view)
-Accounts
-Domains
-System
-Global Settings
-Configuration

status 12520: resolved fixed
2011-12-22 15:47:37 -08:00
bfederle deef431cc7 bug 12569
Disable system navigation item when in project mode
2011-12-22 15:39:11 -08:00
bfederle 46ebc1e032 List view, error handling
Fix list view error handling, where addRow == 'true' but no createForm
is present -- properly remove row
2011-12-22 15:35:55 -08:00
bfederle 27a552278f Fix validation for <select> 2011-12-22 12:27:35 -08:00
bfederle e348b25ad6 bug 12698
Fix detail view error handling for async actions

status 12698: resolved fixed
2011-12-22 11:04:43 -08:00
bfederle 3650861cb1 Refactor notification handling
-Move 'addNotification' function from list view and detail view
 widgets to a central location, cloudStack.ui.notifications.add, in
 notifications.js, to avoid redundant code.

-Add helper method for triggering CloudStack-specific UI events
2011-12-22 09:00:28 -08:00
bfederle 577d0e6982 Code cleanup 2011-12-22 08:41:47 -08:00
bfederle c60501e950 UI widgets: support event-based notifications
Triggering 'cloudStack.addNotification' adds a new UI notification, to
avoid having to specify DOM element containing the jQuery widget every
time. This event accepts same args as .notifications('add', ...)

Example:

$(window).trigger('cloudStack.addNotification', {
  desc: 'Description',
  interval: 1000,
  poll: function(args) {
    ...
    args.complete();
  }
});
2011-12-22 08:41:40 -08:00
bfederle d2b99d33ef Move multi-edit to widgets folder (as it is a jQuery widget) 2011-12-21 15:28:32 -08:00
bfederle b4ca2c1a13 bug 7883
Support sorting of templates/isos and offerings

status 7883: resolved fixed
2011-12-21 13:32:46 -08:00
bfederle 890928f3c4 Pass context to editable selects 2011-12-19 10:31:58 -08:00
bfederle 62b571a528 bug 12612: Implement 'view all' pre-filter
Example:

detailView: {
  ...

  viewAll: {
    ...

    preFilter: {
      // Return true to show button; false to hide
      return false;
    }
  }
}
2011-12-19 09:47:53 -08:00
Brian Federle 5439073bcd Fix error handling and context passing 2011-12-15 19:31:37 -08:00
Brian Federle dd384fc9d7 Zone details update
-Make zone list view open up basic zone details

-Show chart by clicking view all button

-Update UI widgets to support 'custom' view all actions, to support
 above changes

-Add system VM list view tab to zone details
2011-12-15 19:31:05 -08:00
Brian Federle 40e3960b20 bug 12431: Remove instance row correctly when error occurs 2011-12-15 15:00:14 -08:00
Brian Federle 3a1202cf96 bug 12551
-Add configure swift dialog, which shows when swift is enabled in
 config

-Enable support for toolbar actions in list view

status 12551: resolved fixed
2011-12-15 14:02:04 -08:00
Brian Federle 1ea5c6466c bug 12419
Fix context not being passed to infinite scrolling load, causing error

status 12419: resolved fixed
2011-12-13 11:21:03 -08:00
Brian Federle b30ae76b67 bug 12492
-Fix error handling for list view actions

-Add error handlers for all Configuration section actions/data calls

status 12492: resolved fixed
2011-12-12 17:26:49 -08:00
Brian Federle 254e8394ee Rename 'Create' to 'OK' to apply more generally to actions 2011-12-12 17:08:55 -08:00
Brian Federle 6a72aab25c bug 12405: Hitting 'Enter' causes create from to submit
status 12405: resolved fixed
2011-12-12 17:08:18 -08:00
Brian Federle f6883d0e2a Restore error message popup 2011-12-12 15:34:23 -08:00
Brian Federle 68e002294f Use 'on' (true) or null (false) for edit values of checkbox 2011-12-12 15:34:09 -08:00
Brian Federle 81b011771d bug 12474
Implement isBoolean field support, on detail view edit action. This is
specified like this:

fields: {
  ...

  isPasswordEnabled: {
    ...

    isBoolean: true,
    editable: true,

    ...

  }
}
2011-12-12 11:25:24 -08:00
Brian Federle 314a6361a1 bug 12475
Implement preAction handler for list view/detail view actions. If the
function returns false, then do not proceed further on the action. It
is specified like this:

actions: {
  ...
  preAction: function(args) {
    cloudStack.dialog.notice({ message: "You can't do that!" });

    return false;
  },

  action: function(args) { ... },
  ...
}

It currently passes in the standard args.context that you would get
with a standard action; note that this currently does not support
async server calls, so try to use current state data as much as
possible.
2011-12-12 10:45:08 -08:00
Brian Federle 21c2979341 bug 12151
Concatenate breadcrumb width & text label if the total size of
breadcrumbs exceeds the width of the container, to avoid wrapping
2011-12-09 12:14:55 -08:00
Brian Federle 314c1f90c4 Clean up handling for UI refresh events
-Always unbind event if object isn't visible

-Use widget-specific refresh event for multi-edit actions, to prevent
 other widgets from being refreshed unecessarily.
2011-12-09 09:12:48 -08:00
Brian Federle 77ee3cedd5 Clean up UI error handling
Restore error messages for widgets -- as the default error handler
will be overridden if an error fn is specified, thus rendering no
message
2011-12-09 08:04:23 -08:00
Brian Federle 1a524de689 bug 12396: Put apply button on bottom of detail view
-In order to have the 'Apply' button always visible when editing data,
 only put the main fields (i.e., everything except action bar and
 apply button) into a scrollable container.

-Move apply button to bottom of detail view pane
2011-12-08 14:33:30 -08:00
Brian Federle c2bfc51b2b bug 12396
Fix list view columns not aligning with header, in some cases where
there are 2 columns and the data provider returns quickly.
2011-12-07 18:58:21 -08:00
Brian Federle 5ad44760e1 bug 12400
Show notice if no VMs are selected in port forwarding/load balancing

 -- prevent server call from being performed and 'infinite list' from
    being generated
2011-12-07 15:53:47 -08:00
Brian Federle b45cfdc21e bug 12352
-Don't refresh detail view after destroy action
2011-12-07 15:46:58 -08:00
Brian Federle 103ede0793 bug 12410
Bug was caused by a 'cloudStack.fullRefresh' event being triggered on
a non-existent edit widget, for a non-existent project. I changed the
widget to only refresh if the current instance is visible (i.e., most
likely the user still has active data for it)
2011-12-07 15:36:37 -08:00
Brian Federle 2ae4e50a9a Fixes list view/detail view
-Fix list view ID references, which was causing args.context undefined
 errors
2011-12-07 15:11:04 -08:00
Brian Federle 30ed5fc381 Fix list view
-Add label if only one section select option is present

-Fix for broken context variable for accounts, security groups list
 view -- broke detail and list views
2011-12-07 14:02:39 -08:00
Brian Federle 4abc367525 Fix list view section switcher
-List view switcher now selects the first item from the select list,
 not the first in the section object; this prevents a filtered-out
 section from being displayed by default
2011-12-07 13:26:08 -08:00
Brian Federle be1c0d9923 List view widget: update create action
-Support adding a new row if there is no createForm, but
 addRow == true
2011-12-07 13:26:08 -08:00
Brian Federle 6e61334bdd Hide section select if only one entry exists 2011-12-07 12:22:45 -08:00
Brian Federle d43cb5cc8c bug 12368
Ability to select new project, by clicking on 'Project View' again,
after an existing project is active.
2011-12-06 11:06:00 -08:00
Brian Federle 8086e9abc7 bug 12362: List view error handling 2011-12-05 19:29:13 -08:00
Brian Federle e7c4bc48fd bug 12266
- Show 'delete' instead of 'create' in dialog
- Select domain's parent upon deletion, for UI consistency
2011-12-02 15:39:28 -08:00
Brian Federle c067758a34 bug 12309: Implement generic error handling 2011-12-02 14:59:06 -08:00
Brian Federle f8f1e538f8 bug 12249
Correctly filter VM list for port forwarding and load balancing, to
only allow for stopped/running VMs, and only VMs within the specified
network
2011-12-02 12:48:39 -08:00
Brian Federle 8fd57ef20c Fix multi-edit refresh 2011-12-02 12:12:03 -08:00
Brian Federle bc12d1a1ac Only show pointer on first <td> in list view 2011-12-02 11:32:28 -08:00
Brian Federle cf42939508 bug 12089
Fix search button click causing list view to be populated twice
2011-12-02 11:27:53 -08:00
Brian Federle d64a988574 IE8 Fixes:
-Minor CSS fix for horiz. scrollbar in list view
-Fix breadcrumb click event not triggering
2011-12-02 10:41:58 -08:00
Brian Federle 21cd27a8ed bug 12271
-Show status field for project user management
-Properly refresh multi-edit widget
2011-12-02 08:00:04 -08:00
Brian Federle 24264f7d9d Move detail view apply button to the top 2011-12-02 08:00:03 -08:00
Brian Federle 5af364f5c9 Error handling for list view notifications 2011-11-29 19:40:45 -08:00
Brian Federle f253be7715 Fix to make edit guest network details async 2011-11-29 19:33:03 -08:00
Brian Federle d955564ce1 Fix list view action filter specified in success 2011-11-29 14:32:20 -08:00
Brian Federle e9b1ff2848 Misc. fixes for error handling:
-Add error handling to multi-edit widget
-Add error handling for projects UI actions
2011-11-29 14:02:32 -08:00
Brian Federle 9237e91344 -bug 12153: Properly refresh list view after performing actions in detail view
-Fix clicking too fast to add panel breaking browser
-Add install wizard copy
2011-11-23 14:02:54 -08:00
Brian Federle a7c8c618a3 -Add example network section
-Move example VPN section to detail view
-Support reordering of list view items
-Example reorder actions for service offerings
2011-11-22 15:40:33 -08:00
Brian Federle cfcda326e5 -Fix args.context for zone host details panel
-Fix list view edit action
-Support range input for create form
2011-11-21 14:22:35 -08:00
Brian Federle 85f1e56ce1 -Add provider-wide action support
-Support defaultValue for create forms
-Fix formatting on panel create forms (for providers)
2011-11-18 14:59:42 -08:00
Brian Federle 3ac7fb889b Add error handling to notifications widget 2011-11-17 16:21:19 -08:00
Brian Federle ed176cf3c9 -Fix zone chart -- $browser is undefined error
-Support dynamic generation of create form fields (for add network offering)
-Add example add network offering form
2011-11-17 14:16:42 -08:00
Brian Federle edc2df1d73 -Correctly refresh properties on detail view action
-Support async edit action
-Make action notification section optional
-Add save button to apply detail view edit
-Fix indentation, button spacing for multi-edit items
2011-11-16 16:19:17 -08:00
Brian Federle 8f9a06fb41 Always show disabled list view actions 2011-11-16 13:22:02 -08:00
Brian Federle 97bc2c3769 Update install wizard widget 2011-11-11 13:08:48 -08:00
Brian Federle b911cd7df5 Merge branch 'master' into ui-install-wizard
Conflicts:
	ui/index-test.html
	ui/index.jsp
	ui/scripts-test/system.js
	ui/scripts/ui-custom/installWizard.js
2011-11-11 12:00:56 -08:00
Brian Federle 1848079bcd Add embedded table to detail view, for guest network configuration 2011-11-11 11:31:06 -08:00
Brian Federle 8e12c9aa21 Update dialog appearance; add UI support for zone network providers 2011-11-11 10:29:27 -08:00
Jessica Wang 449c6dda33 cloudStack 3.0 new UI - NaaS - Public network - IP Addresses tab - Add action - Make VLAN ID optional. 2011-11-10 16:49:11 -08:00
Brian Federle 49970f6daf Merge branch 'master' into ui-install-wizard
Conflicts:
	ui/index-test.html
	ui/scripts/ui-custom/installWizard.js
2011-11-10 11:17:20 -08:00
Brian Federle a594369d93 Updated zone chart 2011-11-10 11:02:24 -08:00
Brian Federle 3dfe5b15e0 Merge branch 'master' into ui-install-wizard 2011-11-10 08:28:52 -08:00
Brian Federle cbf212844d Allow custom data to be passed to detail view actions, via dataProvider 2011-11-09 19:25:11 -08:00
Brian Federle 3a2c6e76bc Add install wizard JS 2011-11-09 12:28:07 -08:00
Jessica Wang f8945168ae cloudStack 3.0 new UI - listView widget - (1) remove default option "All". (2) fix a bug that args.filterBy.kind got value from wrong dropdown when selectView dropdown and filterBy dropdown both exist on the same page. 2011-11-08 16:36:28 -08:00
Brian Federle d9a5f851b5 Updated zone page; update detail view edit notification 2011-11-08 16:25:33 -08:00
Brian Federle 28521a3819 Updated header/project appearance; add new system chart view 2011-11-08 12:43:57 -08:00
Brian Federle c14e0362d1 Implement new project flow 2011-11-04 16:09:17 -07:00
Brian Federle dda9b0bea3 Add additional project management actions; add project list view 2011-11-04 11:00:49 -07:00
Brian Federle 6152cdb36b Add updated projects UI 2011-11-03 15:13:07 -07:00
Brian Federle 29f510772c Add new UI; move old UI to old/ 2011-11-03 10:59:57 -07:00