Commit Graph

207 Commits

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