Commit Graph

41 Commits

Author SHA1 Message Date
Rohit Yadav 74c34d797a quota;e2etesting
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-08-07 10:58:36 +05:30
Rohit Yadav e2c2e0696d quota: show ui balance if start/end balance are defined (any values)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-08-04 10:39:21 +05:30
Rohit Yadav 57bc5cb904 quota: minor credits ui fixes
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-08-03 15:33:48 +05:30
Rohit Yadav a39b6cddc9 quota ui: add min threshold and checkbox to enforce locking
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-08-03 11:36:37 +05:30
Rohit Yadav 40914ed0bb quota: improve css and element usage; align inputs below labels
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-30 17:31:02 +05:30
Rohit Yadav 53f3b3c304 quota: fix css of the ui, make element similar to other cloudstack UI elements
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-30 17:31:02 +05:30
Rohit Yadav 8483c4a3ce quota: add currency in case of users too
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-30 14:35:54 +05:30
Rohit Yadav 60125d3a4e quota: add quota monthly statement email template
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-29 12:04:23 +05:30
Rohit Yadav b2dd5e1374 quota: fix ui to grab currency from the response
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-29 11:45:31 +05:30
Rohit Yadav 7b562b0696 quota: add new template for sending unlocked email account 2015-07-29 11:26:59 +05:30
Rohit Yadav a4e8301941 quota ui: grab current date in the browser's tariff
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-28 17:10:23 +05:30
Rohit Yadav 247e539b6e ui: fix UI, API usage and display rendering; fix template saving to use POST
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-27 13:24:22 +05:30
Rohit Yadav 7617182294 quota: fix ui - statement, tariff and templates
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-24 14:35:09 +05:30
Rohit Yadav 355b2e6330 quota: implement quota email alert methods/classes and template engine to substitute variable options
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-24 12:40:33 +05:30
Rohit Yadav 6fedff6053 quota: fix UI's escaping quotes
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-23 18:51:36 +05:30
Rohit Yadav 6b11c83fca quota: add email template UI
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-23 18:45:19 +05:30
Rohit Yadav e2ab24a7bc ui: add effective from date in tariff list/table, add error handling dialogs
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-22 15:12:04 +05:30
Rohit Yadav 5c7befbd95 quota: assume start/end date in the balance API will be returned
enhances UI, to reflect balance api changes

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-21 15:37:52 +05:30
Rohit Yadav e38cd4566a quota: re-order date vs domain/account checking
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-21 15:24:30 +05:30
Rohit Yadav ab68f38fd1 quota: remove invalid ui code, add additional checks
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-21 14:24:02 +05:30
Rohit Yadav 02234778d7 quota: add quota balance/credit statement in the statement tab
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-21 12:34:59 +05:30
Rohit Yadav b3eeb6ce57 quota: remove console.log statement
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-21 11:37:23 +05:30
Rohit Yadav a9e8ceccdd quota: add quota currency on tarriff table
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-21 11:36:26 +05:30
Rohit Yadav 5397fc21c6 quota: add credit management in the ui
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-21 11:17:50 +05:30
Rohit Yadav 6f1736404e quota: fix quota statement api, db schema and implement UI tab for statement generation
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-20 17:21:01 +05:30
Rohit Yadav b13d2b955e quota: UI view for quota tariff
listing and editing supported; global settings removed

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-16 18:24:48 +05:30
Rohit Yadav 82b176b47d quota-ui: fix settings view
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-14 17:15:55 +05:30
Rohit Yadav 0b64910e09 ui/plugins: Add initial Quota plugin
- Adds a stub
- Adds a Quota tab on the user's page

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-14 11:35:52 +05:30
Rohit Yadav dec8928749 ui: Allow plugins to be shown on navigation bar, if they want to
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
2015-07-14 11:35:52 +05:30
Brian Federle 1a23d6ebab Remove file added by accident in previous commit. 2013-09-30 10:08:16 -07:00
Chris Suich 58f287c62f Commiting multi select stuff for inital review 2013-09-27 16:57:44 -07:00
Rohit Yadav 4364cb9784 rat: Fix license for file from recent ui-plugins merge
Signed-off-by: Rohit Yadav <bhaisaab@apache.org>
2013-02-14 17:18:22 +05:30
Brian Federle 48118a4f9c Add license headers to new JS files 2013-02-13 14:59:01 -08:00
Brian Federle 313b604fe1 Unload test plugin by default 2013-02-11 11:47:44 -08:00
Brian Federle 690dd66d3e UI plugin: Show custom icon
Show custom icon '<pluginName>/icon.png' on side nav bar (if plugin
added new section), and on plugin listing.
2013-01-29 16:05:48 -08:00
Brian Federle a065aabda7 UI plugins: Add more metadata
Add more metadata to plugin config.js:

- externalLink: Link to plugin/author's web site
- authorName: Author's full name
- authorEmail: Author's contact e-mail
2013-01-29 14:34:42 -08:00
Brian Federle 806105f9a1 UI plugins: Dynamically load CSS
Adds a CSS file <pluginName>.css to the plugin structure, which allows
developer to specify custom CSS to be loaded after their JS code.
2013-01-29 13:56:36 -08:00
Brian Federle 1a3ea28243 UI plugins API: addSection method
Adds 'addSection' method to UI plugins, which will add a new top-level
section. It follows the same syntax used by the existing sections in
the UI.
2012-12-20 13:27:37 -08:00
Brian Federle 347ac311a0 UI Plugin: Use new format
Define plugins as namespaced objects instead of as function calls. This
is easier to implement and manage by the framework.

New format changes for defining plugins:

Now create 2 JS files in plugin folder:
  -config.js
  -[pluginName].js

plugins.js (listing) format:

  cloudStack.plugins = [
    'testPlugin'
  ];

config.js format:

  cloudStack.plugins.testPlugin.config = {
    title: 'Test Plugin',
    desc: 'Sample plugin'
  };

[pluginName].js format:

  cloudStack.plugins.testPlugin = function(plugin) {
    //
    // Plugin code goes here
    //
  };
2012-12-20 11:55:44 -08:00
Brian Federle 59c77b4850 Add plugin loading functionality and basic framework
Dynamically load UI plugins via require.js

Plugin code uses the following format:

(function (cloudStack) {
  var testPlugin1 = function(plugin) {
    // Plugin code goes here
  };

  cloudStack.plugin({
    id: 'testPlugin1',
    title: 'Test Plugin 1',
    desc: 'Sample plugin 1',
    load: testPlugin1
  });
}(cloudStack));
2012-12-19 15:47:25 -08:00
Brian Federle f0a6e86e14 Add/style basic plugin listing 2012-12-19 15:04:47 -08:00