freeipa/install/ui
Petr Vobornik 74b7c00365 webui: extract header and action logic from facet to separate mixins
Into:
* ActionMixin
* HeaderMixin

It is supposed to be used as a mixin classes to facet.Facets. In long
term it should replace/serve as a base class for facet.facet.

e.g:
var SomeFacet = declare([Facet, ActionMixin, HeaderMixin], {
	foo: function() {}
});

Then following spec can be used:

some_facet_spec = {
    name: 'some',
    label: 'Some Facet',
    tab_label: 'Some Facet',
    facet_groups: [foo.bar_facet_group],
    facet_group: 'search',
    actions: ['refresh'],
    control_buttons: [
        {
            name: 'refresh',
            label: '@i18n:buttons.refresh',
            icon: 'fa-refresh'
        }
    ],
	header_actions: [refresh]
};

reg.facet.register({
    type: 'some',
    ctor: SomeFacet,
    spec: some_facet_spec
});

prerequisite for: https://fedorahosted.org/freeipa/ticket/4286

Reviewed-By: Martin Babinsky <mbabinsk@redhat.com>
2015-11-27 15:50:56 +01:00
..
build install/ui/build: Build core.js 2014-06-30 18:17:28 +02:00
css webui: add boostrap-datepicker files 2015-05-20 14:36:09 +02:00
doc webui: extract header and action logic from facet to separate mixins 2015-11-27 15:50:56 +01:00
images Remove ico files from Makefile 2015-07-27 16:19:49 +02:00
js Web UI plugin loader 2013-05-06 16:22:20 +02:00
less webui: show multiple cert 2015-07-09 10:58:40 +02:00
src webui: extract header and action logic from facet to separate mixins 2015-11-27 15:50:56 +01:00
test Standardize minvalue for ipasearchrecordlimit and ipasesarchsizelimit for unlimited minvalue 2015-09-22 08:00:16 +02:00
util Unsaved changes dialog internally inconsistent 2015-05-07 10:38:26 +02:00
favicon.ico favicon 2011-02-03 15:04:23 -05:00
ie.css Fixed display of attributes_widget in IE9 2012-07-17 15:55:44 +02:00
index.html webui: add boostrap-datepicker files 2015-05-20 14:36:09 +02:00
ipa.css webui: stageusers, display page elements based on user state 2015-05-20 14:04:10 +02:00
jsl.conf webui: login page 2014-04-15 12:41:54 +02:00
Makefile.am webui: add sync_otp.html 2014-06-30 12:27:05 +02:00
README-LICENSE.txt webui: add boostrap-datepicker files 2015-05-20 14:36:09 +02:00
reset_password.html webui: adjust behavior of bounce url 2014-09-08 12:32:16 +02:00
reset_password.js webui: adjust behavior of bounce url 2014-09-08 12:32:16 +02:00
sync_otp.html webui: add sync_otp.html 2014-06-30 12:27:05 +02:00