Commit Graph

207 Commits

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