summaryrefslogtreecommitdiffstats
path: root/install/ui/search.js
Commit message (Collapse)AuthorAgeFilesLines
* Circular entity dependencyPetr Vobornik2011-10-181-5/+5
| | | | | | | | | | | | | | | | | https://fedorahosted.org/freeipa/ticket/1531 Each entity is created together with its dependent objects (e.g. facets and dialog boxes). This causes a circular dependency problem because some of the objects need to obtain a reference to another entity that has not been created. Currently this is handled by storing only the other entity name and resolve it when needed (e.g. during rendering stage). In IPA.search_facet this delays the creation of the table widget, making it more difficult to customize. One solution is to do the object creation in 2 steps: * create all entity objects only * create the dependent objects in each entity Implemented solution: * all entities are created on application start * dependant objects (facets and dialogs) are created at once on their first use in entity.
* Removed unnecessary HBAC/sudo rule category modification.Endi S. Dewata2011-08-231-5/+4
| | | | | | | | | | Since the Add/Delete links in the association table are disabled when the category is set to 'all', it's no longer necessary to check the category before showing the add/delete dialogs and modify the category before adding entries. Thus, the IPA.rule_association_table_widget is no longer needed. Ticket #1692
* Uncheck checkboxes in association after deletionPetr Vobornik2011-08-191-9/+12
| | | | https://fedorahosted.org/freeipa/ticket/1639
* error dialog for batch commandPetr Vobornik2011-08-171-1/+3
| | | | | | | https://fedorahosted.org/freeipa/ticket/1597 https://fedorahosted.org/freeipa/ticket/1592 Added option to show multiple errors in error dialog.
* removing setters setup and initAdam Young2011-07-281-23/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | change widget and widget unit tests to hold on to entity, not entity name. Replacing entity_name with entity.name in most places. The one exception is columns for table_widget. Widgets that refer to other entities have to have late resolution of the entity object, due to circular dependencies. cleanup entity assignment. removed template and layout, merged setup into create adder dialogs adjust height for external removed init from widget, isection, association, facet, host and service Make unit tests use factory. fix functional tests to click find link correctly. tweak to activation test, but still broken. moved initialization code to the end use --all for hbacrule find, so the type shows up now fixed dns exception code and exception handling for get_entity replace metadata look up with value from entity. fixed author lines removed duplicate columns in managed by facets. tweak to nav fix in order to initialize tab. more defensive code update metadata for true false one line init for entity_name in widget move init code to end of constructor functions moved constants to start of function for adder_dialog external fields for dialogs initialized at dialog creation sudo sections: move add fields and columns to widget definition. The parameter validation in IPA.column ...This is precondition checking. Note that it merely throws an exception if the entity_name is not set. I want this stuff at the top of the function so that it is obvious to people looking to use them what is required. I added a comment to make this clear, but I'd like to keep precondition checking at the top of the function. decreased the scope of the pkey_name and moved the initiailzation fof columns into the setup_column function for association_tables return false at the end of click handler removed blank labels in sudo command section fix radio buttons for sudo category fixed table side for adder dialogs with external fields comments for future direction with add_columns https://fedorahosted.org/freeipa/ticket/1451 https://fedorahosted.org/freeipa/ticket/1462 https://fedorahosted.org/freeipa/ticket/1493 https://fedorahosted.org/freeipa/ticket/1497 https://fedorahosted.org/freeipa/ticket/1532 https://fedorahosted.org/freeipa/ticket/1534
* Added checkbox to remove hosts from DNS.Endi S. Dewata2011-07-201-53/+74
| | | | | | | A custom deleter dialog for hosts has been added to provide an option whether to remove the hosts from DNS. Ticket #1470
* Entity select widget improvementsEndi S. Dewata2011-07-181-4/+7
| | | | | | | | The IPA.entity_select_widget has been modified into a searchable and editable drop down list. The base functionality has been extracted into IPA.combobox_widget. Ticket #1361
* Fixed label capitalizationEndi S. Dewata2011-07-141-1/+0
| | | | | | | | The CSS text-transform sometimes produces incorrect capitalization, so the code has been modified to use translated labels that already contain the correct capitalization. Ticket #1424
* dnsrecord-mod uiAdam Young2011-07-131-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | Brings the DNS record infrastructure in line with the other entities. Uses widgets, nested search, and a littel bit of overloading for dns specific behavior The records now have their own page. simplified link widget and use for dns links work for nested entities. change the field in the link widget to other_entity to avoid name collision. unit test for entity link. fixed reference to entity for getting pkeys work around lack of setattr for dns record mod. update wasn't deducing locked_field type correctly. don't overwrite param_info in init data is required on adder dialog delete works for multiple records use show instead of find for entity_link_widget. https://fedorahosted.org/freeipa/ticket/1038 https://fedorahosted.org/freeipa/ticket/1448 https://fedorahosted.org/freeipa/ticket/577 https://fedorahosted.org/freeipa/ticket/1460
* shorten url cache state in a javascript variable, and leave on information ↵Adam Young2011-06-281-7/+7
| | | | | | | | | | | | | | about the current entity in the URL hash params https://fedorahosted.org/freeipa/ticket/674 decrement depth for hidden tabs. Initialize state from url useing delete for removing state stricter attribute matching not incrementing depth for all hidden tabs. whitespace cleanup
* Fixed entity labels.Endi S. Dewata2011-06-271-3/+4
| | | | | | | | | | | | | | | | The entity labels in the following locations have been fixed: - search facet title: plural - details facet title: singular - association facet title: singular - breadcrumb: plural - adder dialog title: singular - deleter dialog title: plural Some entity labels have been changed into the correct plural form. Unused file install/ui/test/data/i18n_messages.json has been removed. Ticket #1249 Ticket #1387
* Added record count into association facet tabs.Endi S. Dewata2011-06-241-9/+1
| | | | | | The details and association facets have been modified to show the number of records in each association in the corresponding facet tab. Ticket #1386
* Added navigation breadcrumb.Endi S. Dewata2011-06-231-2/+2
| | | | | | | | Navigation breadcrumb has been added to the facet header. The breadcrumb will appear on details, association, and automount facets. Ticket #1323
* Converted entity header into facet header.Endi S. Dewata2011-06-231-17/+23
| | | | | | | | | | | The content and the size of entity header changes depending on the facet being displayed, so the entity header has been converted into a facet header to allow better control via CSS. The DNS record facet has been updated to use the same styling and support scrolling. To help styling and testing, all buttons have been assigned a name.
* Fixed self-service links.Endi S. Dewata2011-06-161-22/+6
| | | | | | | | | | | | In self-service mode the user's association facets have been modified such that the entries are not linked since the only available entity is the user entity. A 'link' parameter has been added to IPA.association_facet and IPA.column to control whether to link the entries. The link_handler() method can be used to define how to handle the link. Ticket #1072
* no redirect on searchAdam Young2011-06-151-0/+4
| | | | https://fedorahosted.org/freeipa/ticket/1281
* Search bar style and positioning changeskylebaker2011-06-141-4/+5
|
* Entitlement status.Endi S. Dewata2011-06-131-13/+20
| | | | | A new facet has been added to show entitlement status and download the registration certificate.
* Fixed resizing issues.Endi S. Dewata2011-06-131-16/+6
| | | | | | | | | | The UI has been modified to fix some resizing issues: Previously the height of facet content was roughly calculated using resize(). Now the height can be more accurately defined in CSS. Previously the UI width was fixed. The HTML layout and background images have been modified to support horizontal expansion if needed.
* dialog scrolling tableAdam Young2011-06-031-1/+0
| | | | Tables on the dialog page need to have the scrolling set but should not resize with the main window, since their window is a JQuery UI dialog.
* Temporary fix for indirect member tabs.Endi S. Dewata2011-06-021-11/+3
| | | | | | | | | | | | | Since the group-show command doesn't return indirect members, the tabs for group's indirect members have been reverted to call user-find with the --in-groups parameter to get the entries. However, this is only a temporary solution since the user-find command returns both direct and indirect members (ticket #1273). The Selenium test for groups has been modified to test nested groups and verify indirect members. The verification currently will fail due to the above issue.
* scrollable content areasAdam Young2011-06-021-0/+5
| | | | | | | | | | Turn off the side scroll bars for pages. Resizes the table when the browser resizes For stables, the rows scroll, but not the header. For details, the content area scrolls. Reserves 400 picesl for the header/ footer. Resize is only done on reload
* automount delete keyAdam Young2011-06-011-3/+20
| | | | | | | | | | | | | | | | | | indirect automount maps code review changes for automount: Removed: fields for mount and parentmap in maps details since they are not present in show or mod Hid undo link for adder dialog set up click handler for checkboxes when row does not have primary key removed add override in automountmap_adder_dialog moved 'var input...' in automount.js line 158 to start of method. changed logic in if statmenet ,dialog.js line 628 it if (!first) as suggested
* Fixed URL parameter parsing.Endi S. Dewata2011-05-261-8/+8
| | | | | | | The $.bbq.getState() invocations have been modified not to coerce URL parameter values to avoid parsing error. Ticket #1208
* automount UIAdam Young2011-05-261-33/+112
| | | | | | | | | | | | | | | | | | | | | | automount implemented using standard facets and containing_entity pkey generation sample data fixtures for automount. messages for automount and HBAC. modified form of the search facet used to nest the automount entities Add works for nested entities. Delete works for all but keys. Since the API for this is going to change, I'm not going to fix it pre-checkin. All the places the PKEY prefix is needed uses a single function. Added breadcrumb trail into title. update ipa_init sample data add redirect logic for pages without pkeys. add and delete link to appropriate entities for nested search facet. Using on demand entities. Fixed breadcrumbs.
* Fixed Ajax error handling.Endi S. Dewata2011-05-201-1/+0
| | | | | | | The IPA.command has been modified not to insert a title into the error object thrown by Ajax operation because the object could be immutable. Ticket #1240
* jQuery ordered map.Endi S. Dewata2011-05-201-2/+3
| | | | | | | | | The ordered map is a jQuery extension for creating a collection which can be accessed both as an ordered list and as a map. This collection can be used to store various objects including entities, fields, columns, and dialogs. A test suite for this class has been added as well. Ticket #1232
* Read-only association facet.Endi S. Dewata2011-05-161-2/+0
| | | | | | | | | The IPA.association_facet has been modified to take a read_only parameters. If the parameter is set to true, the Enroll and Delete buttons will not be shown. All facets under the memberindirect and memberofindirect facet groups are marked as read-only. Ticket #1030
* Updated DNS interface.Endi S. Dewata2011-05-111-3/+2
| | | | | | The IPA.records_facet has been converted into a subclass of IPA.search_facet. This helps remove duplicate table code and provide consistent DOM element attributes for Selenium tests.
* Added facet container.Endi S. Dewata2011-05-051-196/+69
| | | | | | | Facet container has been added to hold facet header (i.e. title, search fields, buttons, links) and facet content. Each facet now occupies separate container, so it can be shown/hidden without having to redraw the content.
* Use entity names for tab state.Endi S. Dewata2011-05-051-5/+2
| | | | | | | Previously the tab state is represented using numeric index such as navigation=0&identity=1 which is not very user friendly. Now the code has been modified to use entity names such as navigation=identity&identity=group.
* action panel to top tabsAdam Young2011-04-261-27/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | replacing the action panel with the Design for 2.1 Significantly cleaned up implementation of intra-entity navigation requires additional CSS work still need to integrate the search controls onto each page cleaning up interface between entity and facet simplified nested tabs logic Fixed role navigation select default tab from the search widget fixed unit tests and jsl keep tabs area allocated set default tab selected whenever the pkey changes. Removing styling that is changing positions of buttons. The logic for that was for action-panel, but does not translate to entity-header. change from metadata name to label for I18N set selected tab in entity_init. Default title for entities without search and pkeys associations in table now link. remove colon from title when not showing pkey added Managed by facet group. Removed entities that are, for some reason, invalid.
* Standardized action panel buttons creation.Endi S. Dewata2011-04-211-8/+3
| | | | | Action panel buttons are now created in facet's create_action_panel(). This is to allow a subclass to override and customize the buttons.
* Moved adder dialog box into entity.Endi S. Dewata2011-04-211-1/+1
| | | | | The adder dialog box definition has been moved from search facet into entity to make it accessible from other facets.
* Entitlement download.Endi S. Dewata2011-04-181-5/+8
| | | | A Download link has been added to download entitlement certificates.
* Merged IPA.cmd() into IPA.command().Endi S. Dewata2011-04-131-2/+4
| | | | | | | The IPA.cmd() has been merged into IPA.command(). All invocations and test cases have been converted. Ticket #988
* Refactored search facet.Endi S. Dewata2011-04-111-185/+185
| | | | | To simplify customization, the add(), remove(), and refresh() methods have been moved from IPA.search_widget into IPA.search_facet.
* Refactored builder interface.Endi S. Dewata2011-04-111-0/+10
| | | | | | | The IPA.entity_builder has been modified to take a 'factory' parameter in custom facet's and custom dialog's spec. The IPA.dialog has been modified to take an array of fields in the spec. The IPA.search_facet has been modified to take an array of columns in the spec.
* Refactored action panel and client area.Endi S. Dewata2011-04-111-4/+2
| | | | | | | To improve code readability and extensibility the containers for action panel and client area are now created in IPA.entity.setup(). The 'client area' has been renamed into 'content'. The IPA.facet.create() has been renamed to IPA.facet.create_content().
* default all falseAdam Young2011-03-311-5/+9
| | | | no longer default to all: true for searches, only specify it for user searches
* define entities using builder and more declarative syntaxAdam Young2011-03-311-0/+3
| | | | | | merged hbac and sudo in to single files associaton facet and table supports linking
* search filter focus afdter a search loads, focus moved to the search filter ↵Adam Young2011-02-211-1/+11
| | | | | | text box, tyhe most likely thing that the user will want to change on the page. https://fedorahosted.org/freeipa/ticket/983
* I18n update.Endi S. Dewata2011-02-211-14/+17
| | | | | Hard-coded messages through out the code have been replaced by i18n messages obtained from json_metadata and i18n_messages.
* Remove WebUI identifiers from global namespaceMartin Kosek2011-02-181-71/+0
| | | | | | | | | | | Many WebUI identifiers were defined in a global namespace. This is not a good programming practice and may result in name clashes, for example with other libraries. This patch moves these variables to IPA namespace or its sub-namespaces, when meaningful. https://fedorahosted.org/freeipa/ticket/212
* Fixed association facets.Endi S. Dewata2011-02-151-1/+1
| | | | | | | | The association config has been removed because it incorrectly assumes there is only one association between two entities. Now each association is defined separately using association facets. The service.py has been modified to specify the correct relationships. The API.txt has been updated. https://fedorahosted.org/freeipa/ticket/960
* Moved add dialog into search facet.Endi S. Dewata2011-02-091-34/+18
| | | | | Previously the add dialog is added into entity. The dialog is only used by the search facet, so it's now moved into the search facet.
* unmatched aciattrsAdam Young2011-01-281-4/+4
| | | | instead of reporting an error on unmatched aciattrs, append them to the table.
* default disable deleteAdam Young2011-01-281-1/+15
|
* declarative defintionsAdam Young2011-01-271-0/+9
| | | | | | | | | | | | | | Delay the creation of entities until after ipa init is called made the user and group entity definitions declarative removed unused facet from groups adjusted unit tests made review changes: factories are now in an associative array entity init called right after factory init dialogs in entity init fixed type on search
* rename static to uiAdam Young2011-01-201-0/+462
Directory rename