summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/field.js
Commit message (Collapse)AuthorAgeFilesLines
* webui: extract rpc value from object envelopePetr Vobornik2014-06-271-0/+1
| | | | | | | | adapt Web UI to a newer style of encapsulation object data https://fedorahosted.org/freeipa/ticket/4394 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: fix detection of RPC commandPetr Vobornik2014-06-271-2/+2
| | | | | | | | | old detection did not work with the static version used for test and demonstration purposes. https://fedorahosted.org/freeipa/ticket/4357 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: fix field's default valuePetr Vobornik2014-06-251-1/+1
| | | | | | | | Fields with default value, such as DNS Zone's idnsforwardpolicy, were marked as dirty when no value was loaded and when default value of input control was other than empty. Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: move RPC result extraction logic to AdapterPetr Vobornik2014-06-161-13/+61
| | | | | | | | | | | | | | | It enables declarative extraction of values from partial results of a batch commands and also further extensibility in custom adapters. The default adapter has detection logic for this extraction so it can use bare record or extract data from normal or batch RPC command. Minor change of user plugin fixed: https://fedorahosted.org/freeipa/ticket/4355 Reviewed-By: Endi Sukma Dewata <edewata@redhat.com>
* webui: field and widget binding refactoringPetr Vobornik2014-04-031-643/+499
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a Web UI wide change. Fields and Widgets binding was refactored to enable proper two-way binding between them. This should allow to have one source of truth (field) for multiple consumers - widgets or something else. One of the goal is to have fields and widget implementations independent on each other. So that one could use a widget without field or use one field for multiple widgets, etc.. Basically a fields logic was split into separate components: - adapters - parsers & formatters - binder Adapters - extract data from data source (FreeIPA RPC command result) - prepares them for commands. Parsers - parse extracted data to format expected by field - parse widget value to format expected by field Formatters - format field value to format suitable for widgets - format field value to format suitable for adapter Binder - is a communication bridge between field and widget - listens to field's and widget's events and call appropriate methods Some side benefits: - better validation reporting in multivalued widget Reviewed-By: Adam Misnyovszki <amisnyov@redhat.com>
* webui: replace IPA.command usage with rpc.commandPetr Vobornik2014-03-271-4/+5
| | | | | | | Replace all IPA.command, IPA.batch_command and IPA.concurrent_command usages by equivalents from rpc module. Reviewed-By: Adam Misnyovszki <amisnyov@redhat.com>
* webui: Datetime parsing and formattingPetr Vobornik2014-03-131-10/+106
| | | | | | | | | | | | | | | this patch implements: - output_formatter in field. It should be used in par with formatter. Formatter serves for datasource->widget conversion, output_formatter for widget->datasource format conversion. - datetime module which parses/format strings in subset of ISO 8601 and LDAP generalized time format to Date. - utc formatter replaced with new datetime formatter - datetime_validator introduced - new datetime field, extension of text field, which by default uses datetime formatter and validator Dojo was regenerated to include dojo/string module https://fedorahosted.org/freeipa/ticket/4194 Reviewed-By: Adam Misnyovszki <amisnyov@redhat.com>
* Web UI source code annotationPetr Vobornik2013-10-161-23/+545
| | | | Part of ongoing Web UI documentation effort. Source code is annotated in a way that it can be processed by documentation generator.
* Web UI: move ./_base/metadata_provider.js to ./metadata.jsPetr Vobornik2013-05-171-1/+1
| | | | | | Metadata provider is IPA specific object, not a framework object, so it should not be in _base directory. https://fedorahosted.org/freeipa/ticket/3604
* Allow metadata provider format for field metadata declarationPetr Vobornik2013-05-061-1/+5
| | | | https://fedorahosted.org/freeipa/ticket/3235
* Builder and registry for validatorsPetr Vobornik2013-05-061-2/+12
| | | | https://fedorahosted.org/freeipa/ticket/3235
* Registry and builder for formattersPetr Vobornik2013-05-061-1/+1
| | | | https://fedorahosted.org/freeipa/ticket/3235
* Replace build logic in widget and field builder by new builderPetr Vobornik2013-05-061-41/+25
| | | | https://fedorahosted.org/freeipa/ticket/3235
* Replace IPA.widget_factories and IPA_field_factories with registryPetr Vobornik2013-05-061-20/+41
| | | | https://fedorahosted.org/freeipa/ticket/3235
* Use IPA.object() as a base factory for framework objectsPetr Vobornik2013-05-061-4/+4
| | | | https://fedorahosted.org/freeipa/ticket/3235
* Rename factory to $factory in spec objects modificationsPetr Vobornik2013-05-061-2/+2
| | | | https://fedorahosted.org/freeipa/ticket/3235
* Replace IPA.get_message with text.getPetr Vobornik2013-05-061-1/+1
| | | | https://fedorahosted.org/freeipa/ticket/3235
* Replace remaining IPA.messages with text.get callsPetr Vobornik2013-05-061-4/+4
| | | | https://fedorahosted.org/freeipa/ticket/3235
* Replace IPA.messages with @i18n definition in spec objectsPetr Vobornik2013-05-061-1/+2
| | | | https://fedorahosted.org/freeipa/ticket/3235
* Use text.get for transforming values supplied by specPetr Vobornik2013-05-061-10/+10
| | | | https://fedorahosted.org/freeipa/ticket/3235
* get_primary_key function usages removedPetr Vobornik2013-05-061-2/+2
| | | | https://fedorahosted.org/freeipa/ticket/3236
* Remove IPA.current_entity usagePetr Vobornik2013-05-061-0/+1
| | | | https://fedorahosted.org/freeipa/ticket/3236
* Remove IPA.nav usage, obsolete entity.get_primary_keyPetr Vobornik2013-05-061-3/+5
| | | | https://fedorahosted.org/freeipa/ticket/3236
* Add ipakrbokasdelegate option to service and host Web UI pagesPetr Vobornik2013-04-041-1/+7
| | | | https://fedorahosted.org/freeipa/ticket/3329
* Web UI:Certificate pagesPetr Vobornik2013-03-181-1/+1
| | | | | | | | | | | | | | | | | Following pages were added to Web UI: * certificated details * certificate search Certificate is not regular object so it gets no metadata. Therefore artificial metadata were created for it to allow usage of search and details facet. Search and details facet were modified to allow removing of add/remove/update/ reset buttons - certificates have no mod operation and they are not added by standard means. User can revoke and restore certificated in details facet. https://fedorahosted.org/freeipa/ticket/3419
* Fix handling of no_update flag in Web UIPetr Vobornik2013-03-061-2/+2
| | | | | | There was an incorrect check for no_update flag. Check was performed as if the flag was an attribute of object not an item of array. Hence, the flag never caused any effect.
* Fix dirty state update of editable comboboxPetr Vobornik2013-03-061-22/+2
| | | | | | Editable combobox didn't update it's dirty state correctly. CB had it's own internal value changed event, which was incorrectly used. It was removed and widget's value_changed event was used instead.
* Change Web UI sources to simple AMD modulesPetr Vobornik2013-01-181-3/+5
| | | | | | | Web UI sources were wrapped by AMD definition. Listed dependencies were changed accordingly. https://fedorahosted.org/freeipa/ticket/112
* Move of core Web UI files to AMD directoryPetr Vobornik2013-01-181-0/+951
SSIA https://fedorahosted.org/freeipa/ticket/112