summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* API browser pluginplugin-apibrowserPetr Vobornik2014-06-112-0/+371
| | | | | | | | | | This is a crude example of a plugin which: - adds custom dropdown menu to utility area of navigation - have it's own structure of hash part of URL - custom route+handler - have a custom facet with custom widget NOTE: this is ONLY an EXAMPLE. Never add plugins which should be part of core server to this directory.
* webui: plugin APIPetr Vobornik2014-06-111-0/+76
| | | | | | | new `extend` module should serve as a stable API for plugin authors. It should expose the most commonly used global calls. https://fedorahosted.org/freeipa/ticket/4345
* webui: add parent link to widgets in ContainerMixinPetr Vobornik2014-06-112-0/+3
| | | | | | Standard facets sets `facet` attribute to widgets. This one adds similar, more generic `parent` attribute which should be used for going through the hierarchy up to top.
* webui: create hash for generic facetPetr Vobornik2014-06-111-2/+3
| | | | | | | | Router is not able to create hash from facet state for custom routes/facets. This patch allows facets to have their own hash serialization logic. Also fixes state serialization issue for non-entity facets.
* webui: support standalone facets in navigation modulePetr Vobornik2014-06-111-4/+18
| | | | | | | One can access standard standalone facets with: `navigation.show('facet_name')` and completely custom facets with low level call: `navigation.show_generic('/custom/hash', facet)``
* webui: fix excessive registration of state change event listenersPetr Vobornik2014-06-111-1/+1
| | | | | | `Facet` descendants don't have `container` attribute as opposite to `facet.facet`. Therefore the registration will happen on every facet visit.
* webui: handle back button when unauthenticatedPetr Vobornik2014-06-116-21/+52
| | | | | | | | | | | | | | using browser history when unauthenticated causes transition to the original and/or preceding facets. But nothing works since all commands fail due to expired credentials in session. These changes make sure that user stays on login screen if he misses valid session credentials while he wants to switch to facet which requires authentication. https://fedorahosted.org/freeipa/ticket/4353 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: display only dialogs which belong to current facetPetr Vobornik2014-06-112-15/+144
| | | | | | | | | | | | | | Dialog instances no longer directly call IPA.opened_dialog methods. It's handled through events (decoupled from dialog's POV). IPA.open_dialogs with assistance of ApplicationController makes sure that there is only one dialog opened at the same time. It also makes sure to hide all dialogs, which are not global dialogs and did not originate from current facet, when switching facets. https://fedorahosted.org/freeipa/ticket/4348 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* Make sure member* attrs are always granted together in read permissionsPetr Viktorin2014-06-1113-20/+43
| | | | | | | | | | | | | | Memberofindirect processing of an entry doesn't work if the user doesn't have rights to any one of these attributes: - member - memberuser - memberhost Add all of these to any read permission that specifies any of them. Add a check to makeaci that will enforce this for any future permissions. Reviewed-By: Martin Kosek <mkosek@redhat.com>
* Make 'permission' the default bind type for managed permissionsPetr Viktorin2014-06-119-23/+1
| | | | | | | | | | | This reduces typing (or copy/pasting), and draws a bit of attention to any non-default privileges (currently 'any' or 'anonymous'). Leaving the bindtype out by mistake isn't dangerous: by default a permission is not granted to anyone, since it is not included in any priviliges. Reviewed-By: Martin Kosek <mkosek@redhat.com>
* Add ACI.txtPetr Viktorin2014-06-113-0/+234
| | | | | | | | | | | | | The ACI.txt file is a list all managed permissions in ACI form. Similarly to API.txt, it ensures that changes are not made lightly, since modifications must be reflected in ACI.txt and committed to Git. Add a script, makeaci, which parallels makeapi: it recreates or validates ACI.txt. Call makeaci --validate before the build, just after API.txt is validated. Reviewed-By: Martin Kosek <mkosek@redhat.com>
* Add method to enumerate managed permission templatesPetr Viktorin2014-06-111-15/+30
| | | | | | This will ease writing audit and management scripts for managed permissions. Reviewed-By: Martin Kosek <mkosek@redhat.com>
* permission plugin: Sort rights when writing the ACIPetr Viktorin2014-06-111-1/+1
| | | | | | This makes the ACI independent on set/dict iteration order. Reviewed-By: Martin Kosek <mkosek@redhat.com>
* webui: simplify self-service menuPetr Vobornik2014-06-111-8/+2
| | | | | | | | there is only one top level item -> no point of having this level. This patch replaces top level with second menu level Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: add idnsSecInlineSigning option to DNS zone details facetPetr Vobornik2014-06-111-0/+4
| | | | | | https://fedorahosted.org/freeipa/ticket/3801 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: fix regression: enabled gid field on group addPetr Vobornik2014-06-113-3/+37
| | | | | | | | | | | | GID field should be enabled by default since the default group is posix. Was caused by option_widget_base not properly reporting value change while selecting the default value. It has to be notified with delay otherwise the event is consumed by FieldBinder. https://fedorahosted.org/freeipa/ticket/4325 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* Update all remaining plugins to the new Registry APINathaniel McCallum2014-06-1131-274/+333
| | | | Reviewed-By: Petr Vobornik <pvoborni@redhat.com>
* Make zonenames absolute in host pluginMartin Basti2014-06-111-2/+3
| | | | | | | This is fix for regression caused by IDNA patch, zone names must be absolute. Reviewed-By: Nathaniel McCallum <npmccallum@redhat.com>
* Add missing attributes to User managed permissionsPetr Viktorin2014-06-101-2/+3
| | | | | | | | | | - Add nsAccountLock to the Unlock user accounts permission - Add member to Read User Membership - Add userClass and preferredLanguage to Modify Users https://fedorahosted.org/freeipa/ticket/3697 Reviewed-By: Martin Kosek <mkosek@redhat.com>
* Convert User default permissions to managedPetr Viktorin2014-06-104-94/+91
| | | | | | Part of the work for: https://fedorahosted.org/freeipa/ticket/4346 Reviewed-By: Martin Kosek <mkosek@redhat.com>
* managed perm updater: Handle case where we changed default ACIs in the pastPetr Viktorin2014-06-101-2/+18
| | | | | | | | | | | This handles the case where IPA's default ACIs changed in something else than just attribute lists. In this case we can narrow the set of ACIs we think the user might be upgrading from. Part of the work for: https://fedorahosted.org/freeipa/ticket/4346 Reviewed-By: Martin Kosek <mkosek@redhat.com>
* Split long docstrings that were recently modifiedPetr Viktorin2014-06-104-52/+52
| | | | | | | | When the strings are changed again, translators will only need to re-translate the modified parts. See: https://fedorahosted.org/freeipa/ticket/3587 Reviewed-By: Martin Kosek <mkosek@redhat.com>
* webui: break long text in a code element in a modalPetr Vobornik2014-06-101-0/+5
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: fix layout of QR code on wide screensPetr Vobornik2014-06-101-0/+1
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: fix search box overlap in mobile modePetr Vobornik2014-06-101-0/+1
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: use propert alerts in header notification areaPetr Vobornik2014-06-103-22/+5
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: proper alerts in dialogsPetr Vobornik2014-06-103-6/+11
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: move radius proxy action panel commands to header actionsPetr Vobornik2014-06-101-8/+3
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: use normal buttons instead of link buttons in multivalued widgetPetr Vobornik2014-06-102-5/+4
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: move service action panel actions to action dropdownPetr Vobornik2014-06-102-29/+22
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: move host action panel actions to action dropdownPetr Vobornik2014-06-105-32/+23
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui-ci: assert_action_list_actionPetr Vobornik2014-06-101-1/+24
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: use dark color for facet titles without pkeyPetr Vobornik2014-06-102-1/+6
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: association adder dialog - change find label to filterPetr Vobornik2014-06-103-1/+10
| | | | | | also add filter placeholder Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: certificate search - select search attribute only when definedPetr Vobornik2014-06-101-1/+1
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: change control buttons to normal buttonsPetr Vobornik2014-06-104-101/+33
| | | | | | | | Now buttons have normal button appearance instead of link button. Partially fixes: https://fedorahosted.org/freeipa/ticket/4258 since the disabling is done through button's disabled attribute. Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: add search box placeholder textPetr Vobornik2014-06-103-1/+4
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: adjust header controls alignmentPetr Vobornik2014-06-105-56/+64
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: remove old css for standalone pagesPetr Vobornik2014-06-101-100/+0
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui-ci: select search table item - chrome issuePetr Vobornik2014-06-101-1/+7
| | | | | | | | Sometimes Chrome dirver has issues with clicking on items. This patch is making it more solid. Better error reporting added for cases where it doesn't help. Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: use BS alerts in validation_summary_widgetPetr Vobornik2014-06-104-54/+149
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: adjust login page to PatternFlyPetr Vobornik2014-06-109-171/+142
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: preload automember default group select listPetr Vobornik2014-06-101-0/+1
| | | | | | | - the reload also fixes vertical align in Firefox (input gets display='inline' style). Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: restyle automember default groupPetr Vobornik2014-06-102-13/+14
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: do not show empty table footerPetr Vobornik2014-06-105-4/+19
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: improve paginationPetr Vobornik2014-06-105-36/+110
| | | | | | | | pagination now support: - styles updated to PatternFly + DataTables - added 'First' and 'Last' button Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: activity indicatorsPetr Vobornik2014-06-1016-77/+148
| | | | | | | https://fedorahosted.org/freeipa/ticket/4177 https://fedorahosted.org/freeipa/ticket/4255 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: adjust association adder dialog to PatternFlyPetr Vobornik2014-06-102-184/+84
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: patternFly dialogPetr Vobornik2014-06-107-143/+68
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: move user reset password action to action dropdownPetr Vobornik2014-06-102-7/+2
| | | | Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>