freeipa/install/ui/test
Petr Vobornik 8c3eadf978 Action lists
This patch add support fo Action Lists.

Action list is a select widget with actions as options located in facet header. Action can be selected and then executed by clickin on 'apply' button.

Actions lists are defined on facet level. Facet header takes them from facet.

Action list options
  actions: list of actions
  state_evaluator: a state evaluator which is needed for enabling/disabling options. Can encapsulate more evaluators.

State evaluator object
----------------------
State evaluator is resposible for evaluating a state from result set. State is a array of strings. Each evaluator should inherit from IPA.state_evaluator and override evaluate method.
Methods:
 evaluate(record): should return string array which represents the state
 get_description(): human readable representation of a state

Action
------
Action is a object which can perform certain action on a facet. Action has enabling and disabling conditions.

action options:
  name: string, required, name of the option
  label: string, required, human readable name of the option
  enable_cond: string array, states which need to be present in order to run this action
  disable_cond: string array, states which must not be present in order to run this action
  handler: function, contains action's logic
  needs_confirm: boolean, default false, indicates if action needs user confirmation
  confirm_msg: string, default generic message, human readable confirmation message.

Action list should contain logic which enables/disables action based on facet state and action's enabling/disabling conditions. It should also enforce presence of confirmation.

In this patch is also slightly modified facet header, mostly title part. It was revised to contain status icon, title and action list on single line. Facet header is using state evaluator's get_description method to properly set tooltip for state icon.

https://fedorahosted.org/freeipa/ticket/2247
2012-05-11 18:30:48 +02:00
..
bin Show password expiration date. 2012-02-01 15:51:50 +01:00
conf Added functional test runner. 2011-04-05 21:21:54 +00:00
data Action lists 2012-05-11 18:30:48 +02:00
functional Fixed resizing issues. 2011-06-13 09:23:29 -04:00
lib Added functional test runner. 2011-04-05 21:21:54 +00:00
aci_tests.html Refactored entity object resolution. 2011-12-21 14:59:49 +01:00
aci_tests.js Added attrs field to permission for target=subtree 2012-04-10 13:19:36 +02:00
all_tests.html Parsing of IPv4 and IPv6 addresses 2011-12-21 13:13:06 -06:00
association_tests.html Refactored entity object resolution. 2011-12-21 14:59:49 +01:00
association_tests.js Refactored entity object resolution. 2011-12-21 14:59:49 +01:00
certificate_tests.html jQuery ordered map. 2011-05-20 12:11:47 -04:00
certificate_tests.js Fixed unit tests after widget refactoring 2011-12-05 16:02:01 +00:00
details_tests.html Refactored entity object resolution. 2011-12-21 14:59:49 +01:00
details_tests.js Parsing of IPv4 and IPv6 addresses 2011-12-21 13:13:06 -06:00
entity_tests.html Moved facet code into facet.js. 2011-11-04 16:51:43 +01:00
entity_tests.js Fixed entity metadata resolution. 2011-12-06 22:07:52 +00:00
index.html Parsing of IPv4 and IPv6 addresses 2011-12-21 13:13:06 -06:00
ip_tests.html Parsing of IPv4 and IPv6 addresses 2011-12-21 13:13:06 -06:00
ip_tests.js Fixed IPv6 validation special case: single colon 2012-01-03 21:28:53 -06:00
ipa_tests.html Refactored entity object resolution. 2011-12-21 14:59:49 +01:00
ipa_tests.js Fixed unit tests after widget refactoring 2011-12-05 16:02:01 +00:00
jsl.conf Parsing of IPv4 and IPv6 addresses 2011-12-21 13:13:06 -06:00
navigation_tests.html Moved facet code into facet.js. 2011-11-04 16:51:43 +01:00
navigation_tests.js Fixed entity metadata resolution. 2011-12-06 22:07:52 +00:00
ordered_map_tests.html Refactored entity object resolution. 2011-12-21 14:59:49 +01:00
ordered_map_tests.js jQuery ordered map. 2011-05-20 12:11:47 -04:00
qunit.css rename static to ui 2011-01-20 14:12:47 +00:00
qunit.js rename static to ui 2011-01-20 14:12:47 +00:00
README rename static to ui 2011-01-20 14:12:47 +00:00
widget_tests.html Refactored entity object resolution. 2011-12-21 14:59:49 +01:00
widget_tests.js Fixed evaluating checkbox dirty status 2012-03-15 16:08:02 +01:00

http://www.freeipa.org/page/UI_Unit_Tests