236 Commits

Author SHA1 Message Date
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