mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-28 01:41:14 -06:00
8c3eadf978
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 |
||
---|---|---|
.. | ||
bin | ||
conf | ||
data | ||
functional | ||
lib | ||
aci_tests.html | ||
aci_tests.js | ||
all_tests.html | ||
association_tests.html | ||
association_tests.js | ||
certificate_tests.html | ||
certificate_tests.js | ||
details_tests.html | ||
details_tests.js | ||
entity_tests.html | ||
entity_tests.js | ||
index.html | ||
ip_tests.html | ||
ip_tests.js | ||
ipa_tests.html | ||
ipa_tests.js | ||
jsl.conf | ||
navigation_tests.html | ||
navigation_tests.js | ||
ordered_map_tests.html | ||
ordered_map_tests.js | ||
qunit.css | ||
qunit.js | ||
README | ||
widget_tests.html | ||
widget_tests.js |
http://www.freeipa.org/page/UI_Unit_Tests