freeipa/install/ui
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
..
ext Fixed rpm build warning - extension.js listed twice 2012-03-19 18:38:46 +01:00
images Added facet tabs coloring 2011-12-14 15:44:36 +00:00
test Action lists 2012-05-11 18:30:48 +02:00
aci.js Added permission field to delegation 2012-04-17 17:53:25 -04:00
add.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
association.js Facet expiration flag 2012-03-29 13:39:37 +02:00
automember.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
automount.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
browser.js Added cross browser support of Array.indexOf method 2011-12-02 18:35:59 +00:00
certificate.js Display serial number as HEX (DECIMAL) when showing certificates. 2012-03-14 04:40:35 -04:00
details.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
develop.js Removed develop.js. 2011-11-14 16:47:10 -05:00
dialog.js Better hbactest validation message 2012-03-15 16:08:16 +01:00
dns.js DNS forward policy: checkboxes changed to radio buttons 2012-04-10 15:44:05 +02:00
entitle.js Refactored facet.load(). 2011-12-06 22:08:07 +00:00
entity.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
facet.js Action lists 2012-05-11 18:30:48 +02:00
favicon.ico favicon 2011-02-03 15:04:23 -05:00
field.js Fixed evaluating checkbox dirty status 2012-03-15 16:08:02 +01:00
group.js Fixed evaluating checkbox dirty status 2012-03-15 16:08:02 +01:00
hbac.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
hbactest.js Show_content on refresh success 2012-03-19 18:37:39 +01:00
host.js Added mac address to host page 2012-03-20 17:32:23 +01:00
hostgroup.js Fixed entity metadata resolution. 2011-12-06 22:07:52 +00:00
index.html Fixed rpm build warning - extension.js listed twice 2012-03-19 18:38:46 +01:00
ipa.css Action lists 2012-05-11 18:30:48 +02:00
ipa.js Action lists 2012-05-11 18:30:48 +02:00
jquery-ui.css Fixed inconsistent image names. 2011-10-27 14:05:12 +00:00
jquery-ui.js rename static to ui 2011-01-20 14:12:47 +00:00
jquery.ba-bbq.js rename static to ui 2011-01-20 14:12:47 +00:00
jquery.js Upgrade to jquery 1.5.2 https://fedorahosted.org/freeipa/ticket/768 2011-04-23 03:25:45 +00:00
jquery.ordered-map.js Enabled paging on automount keys. 2012-01-23 15:38:25 +01:00
jsl.conf Better hbactest validation message 2012-03-15 16:08:16 +01:00
json2.js rename static to ui 2011-01-20 14:12:47 +00:00
login.html User is notified that password needs to be reset in forms-based login 2012-04-16 21:53:56 -04:00
login.js User is notified that password needs to be reset in forms-based login 2012-04-16 21:53:56 -04:00
logout.html Added logout button 2012-02-28 23:58:51 -05:00
Makefile.am Fixed rpm build warning - extension.js listed twice 2012-03-19 18:38:46 +01:00
navigation.js Content is no more overwritten by error message 2012-03-19 18:37:19 +01:00
net.js Added IP address validator to Host and DNS record adder dialog 2012-01-11 00:48:44 -06:00
netgroup.js Reworked netgroup Web UI to allow setting user/host category 2012-04-10 13:19:13 +02:00
overpass_bold-web.eot Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_bold-web.svg Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_bold-web.ttf Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_bold-web.woff Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.eot Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.svg Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.ttf Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
overpass_regular-web.woff Search bar style and positioning changes 2011-06-14 21:17:13 +00:00
policy.js Paging disable for password policies 2012-04-26 14:32:17 +02:00
rule.js Removed CSV creation from UI 2012-03-02 11:45:21 -06:00
search.js Facet expiration flag 2012-03-29 13:39:37 +02:00
selinux.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
serverconfig.js Added missing configuration options 2012-02-20 15:47:39 -06:00
service.js Multiple fields for one attribute 2012-02-29 13:01:16 +01:00
sudo.js Inter-facet expiration 2012-03-29 13:39:53 +02:00
user.js Show_content on refresh success 2012-03-19 18:37:39 +01:00
webui.js Added logout button 2012-02-28 23:58:51 -05:00
widget.js Action lists 2012-05-11 18:30:48 +02:00