Commit Graph

224 Commits

Author SHA1 Message Date
Brian Federle 441600f409 multiEdit widget: Support field pre-filter
If adding a 'fieldPreFilter' option to a multiEdit, the returned array
specifies field IDs to be hidden.
2012-07-30 16:08:41 -07:00
Brian Federle c10850e434 Add license header to tagger widget 2012-07-30 14:32:14 -07:00
Brian Federle 587189e302 CS-15726: Use custom validation for tagger widget
Show a generic dialog box for tagger validation, instead of using
jQuery validate

--it conflicted with the detail view's edit fields and prevented
submission unless the key and value fields were filled out.
2012-07-30 14:29:55 -07:00
Brian Federle c11aab3c7e Merge Autoscaler UI implemetation
This change includes the new dialog box for the CloudStack Autoscaler
implementation. It is accessible by a button ('Autoscaler') that
appears under each LB rule.

This also contains changes to the multiEdit widget to support features
required for Autoscaler:

-Fixes context/data passing to custom button widgets
-Fixes data retrieval for select fields
2012-07-30 11:08:04 -07:00
Brian Federle c30eb2fd75 Notifications widget: support custom interval
If 'interval' attribute is passed in notification object, use that
interval instead of the default.
2012-07-24 14:02:48 -07:00
Brian Federle c67ca89abc Fix tag widget being appended to all dialogs 2012-07-24 13:58:07 -07:00
Brian Federle cca7a2010c multiEdit: Pass context to tagger widget 2012-07-24 11:50:33 -07:00
Brian Federle 7ca481f4ea Always make tags editable 2012-07-24 11:21:58 -07:00
bfederle 9d3c694601 Tag UI: Make sure data is passed to remove action 2012-07-23 15:03:03 -07:00
bfederle d23a829c2e Fix tags widget overlap with long detail views 2012-07-23 13:59:20 -07:00
bfederle ebabb15105 Implement tag UI widget
Create UI for handling new tag API. This currently supports the detail view and multi-edit

To enable tags UI, add a 'tags' object to each detailView/multiEdit configuration:

tabs: {
...
details: {
...

tags: {
  actions: {
    add: function(args) {
      setTimeout(function() {
        args.response.success({
          notification: {
            desc: 'Add tags for instance',
            poll: testData.notifications.testPoll
          }
        });
      }, 500);
    },

    remove: function(args) {
      args.response.success({
        notification: {
          desc: 'Remove tags for instance',
          poll: testData.notifications.testPoll
        }
      });
    }
  },
  dataProvider: function(args) {
    args.response.success({
      data: [
        {
          id: '1',
          key: 'user',
          value: 'brian'
        },
        {
          id: '2',
          key: 'region',
          value: 'usa'
        }
      ]
    });
  }
}

...
2012-07-23 13:59:20 -07:00
Jessica Wang de4d5cdc94 cloudstack 3.0 UI - multiEdit widget - make headerFields hidden as default. 2012-07-18 11:40:09 -07:00
bfederle c69da45217 UI: Implement tagging widget
Implement a special form on input text field, for handling tag-based
fields. This will tags as a set of list items, which can be removed
and added to. This is for any comma-delimited field.

Currently, this is only supported on detail view widgets, by adding
'isTag: true' as a new attribute for any tag field. Tags are modified
when clicking the 'edit' action.
2012-07-18 11:33:12 -07:00
Jessica Wang e1e7780efc cloudstack 3.0 UI - multiEdit widget - make headerFields shown as default for now until "listPublicIpAddresses&id=N" API is fixed to return an object. 2012-07-17 15:51:51 -07:00
Jessica Wang 140768c82b cloudstack 3.0 UI - multiEdit widget - make headerFields hidden as default. 2012-07-17 15:42:01 -07:00
bfederle 843b3dceaf 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:38:56 -07:00
Jessica Wang dcea0a70f9 cloudstack 3.0 UI - listView widget - pass context from caller function. 2012-07-16 13:49:26 -07:00
Brian Federle 3267553af1 Detail view: Fix layout of text actions 2012-07-12 15:26:07 -07:00
Brian Federle 5af48ea6cf 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:18:06 -07:00
Brian Federle 35d93a66ad 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:43:54 -07:00
Brian Federle 9b1395ec0f List view widget: Pass $listView object to dataProvider 2012-07-11 16:19:57 -07:00
Brian Federle 2c13b82736 multiEdit: Correctly pass context to header fields 2012-07-10 14:54:10 -07:00
Brian Federle e4a00f1faf Add code to show/hide 'tiers' header fields 2012-07-10 14:17:38 -07:00
Brian Federle a42c837f95 Pass mulit-edit form data to add VM dialogs, as part of context 2012-07-10 14:01:56 -07:00
Brian Federle de3e9c7fcd 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:01:38 -07:00
Brian Federle d67d93da5d Add header fields 2012-07-10 13:40:55 -07:00
Brian Federle 1989dce8d0 Fix 'About' page for CloudPlatform 2012-07-06 12:07:32 -07:00
Jessica Wang a7f3c4ba20 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-26 15:07:13 -07:00
olgasmola efc45f9ee9 CS-15329: Instances with Error states appear in Instances list after creating. 2012-06-26 15:07:12 -07:00
bfederle a764c9a09d CS-15287
Support validation on edit detail view

Original patch by: olga.smola
reviewed-by: brian
2012-06-26 13:31:37 -07:00
bfederle 25e3f6cebc CS-15315: Fix overlay positioning
Original patch by: olga.smola
reviewed-by: brian
2012-06-26 10:23:33 -07:00
Jessica Wang 1656176971 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-18 13:25:42 -07:00
Brian Federle a9d1d13878 CS-14230
Add password confirm to add account/user forms

Original patch by: oyla.smola@gmail.com
Reviewed-by: brian
2012-06-14 11:34:10 -07:00
Brian Federle 5528cdd954 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:12:57 -07:00
Brian Federle d7f00f2c45 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:10 -07:00
bfederle 7b9b3c1e1d CS-14010
Add 'about' dialog to the CloudStack top header, showing current verison
information.

Patch submitted by: oyla.smola@gmail.com
Reviewed-by: brian
2012-06-11 11:11:20 -07:00
bfederle 94f7023457 CS-15120
Don't render action column if only header-level actions are present.
2012-06-05 13:26:57 -07:00
Brian Federle b3f5728ac3 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:31 -07:00
Brian Federle 5f4e45fbf2 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:56 -07:00
Jessica Wang 851e152dac CS-15015: cloudstack 3.0 UI - detailView widget - disable "pollAgainIfValueIsIn" function for now. 2012-05-21 16:10:56 -07:00
Jessica Wang 5501e85c2e 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:36:27 -07:00
Jessica Wang 3b51b1865f 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:03:10 -07:00
Brian Federle 296f52e3af CS-13861: Fix 'isChecked: false' not working on IE 2012-05-17 12:34:45 -07:00
Brian Federle d879d370e0 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:56 -07:00
Brian Federle d7cdd71ada CS-14715
Concatenate long user names, to prevent header bar from wrapping

Conflicts:

	ui/scripts/ui/utils.js
2012-05-14 12:44:00 -07:00
Jessica Wang 092b87aebe 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:05:49 -07:00
Jessica Wang 92dc870f3e 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:02:03 -07:00
Salvatore Orlando 4643e403ff Finishing merge with 3.0.x 2012-05-01 15:08:51 +01:00
Brian Federle 19ffa64980 Add field ID to list view <th>s 2012-05-01 13:48:41 +01:00
Brian Federle 0f4f1049a7 Add tests for navigation and homepage; basic fixes 2012-05-01 13:47:23 +01:00