summaryrefslogtreecommitdiffstats
path: root/install/ui/widget.js
Commit message (Collapse)AuthorAgeFilesLines
* Fixed hard-coded messages.Endi S. Dewata2011-06-301-14/+18
| | | | | | Hard-coded messages in the UI have been replaced with I18n messages. Ticket #1396
* Fixed undo all problem.Endi S. Dewata2011-06-271-23/+36
| | | | | | | The IPA.multivalued_text_widget has been modified such that the 'undo all' will appear only if at least one of the values is dirty. Ticket #1109
* validate required fields https://fedorahosted.org/freeipa/ticket/1329Adam Young2011-06-271-0/+8
| | | | overides required with optional.
* tooltips for host addAdam Young2011-06-221-1/+2
| | | | | https://fedorahosted.org/freeipa/ticket/1363 https://fedorahosted.org/freeipa/ticket/1361
* editable entity_selectAdam Young2011-06-201-2/+49
| | | | | | | | jsl fixes https://fedorahosted.org/freeipa/ticket/1043 remove redundant call to focus.
* entity select undoAdam Young2011-06-201-2/+2
| | | | | | | Tests for dirty after the RPC call has completed and the select has updated Passes the original value to the RPC completion, so it isn't lost upon RPC completion https://fedorahosted.org/freeipa/ticket/1340
* Storing page number in URL.Endi S. Dewata2011-06-171-18/+33
| | | | | | | | The association facet has been modified to store the current page number in the browser's URL. This way page changes are stored in browser's history allowing the back button to work properly. Ticket #1264
* test dirty onchangeAdam Young2011-06-161-6/+6
| | | | | | instead of blindly setting dirty, check if the filed has a different value than it originally did. https://fedorahosted.org/freeipa/ticket/1337
* test dirty multivalue test the multivalue widgets for changes before showing ↵Adam Young2011-06-161-1/+22
| | | | the undo link. https://fedorahosted.org/freeipa/ticket/1337
* test dirty textareaAdam Young2011-06-161-1/+1
| | | | runs the testdirty check before setting the undo tag for a textarea
* test for dirtyAdam Young2011-06-161-1/+47
| | | | | | instead of always setting dirty, we do the original test, and then set the flag and show the link. https://fedorahosted.org/freeipa/ticket/1337
* Fixed self-service links.Endi S. Dewata2011-06-161-10/+24
| | | | | | | | | | | | 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
* Entitlement status.Endi S. Dewata2011-06-131-0/+1
| | | | | A new facet has been added to show entitlement status and download the registration certificate.
* Added selectable option for table widget.Endi S. Dewata2011-06-131-31/+44
| | | | | | | A selectable option has been added to the table widget to show/hide the checkbox column for selecting table rows. By default it's set to true. The indirect association facet has been modified to hide the column because it is non-editable.
* Fixed resizing issues.Endi S. Dewata2011-06-131-12/+8
| | | | | | | | | | 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-8/+6
| | | | 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.
* scrollable content areasAdam Young2011-06-021-4/+29
| | | | | | | | | | 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-7/+8
| | | | | | | | | | | | | | | | | | 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
* Added pagination for associations.Endi S. Dewata2011-05-311-41/+90
| | | | | | | | | The association facet has been modified to support pagination. The UI will show 20 members per page. There are buttons to go to a previous or next page. There is also an input text to jump directly to a certain page. Ticket #1011
* Added Update and Reset buttons into Dirty dialog.Endi S. Dewata2011-05-271-83/+51
| | | | | | | | | | | | The Dirty dialogs have been combined into IPA.dirty_dialog. It provides the Update and Reset buttons with customizable callback. Previously the widget's dirty status is computed by comparing the old values with the new values. This method is sometimes inaccurate, so the is_dirty() method has been modified to simply return a flag which is set to true if the widget is changed. Ticket #896.
* Fixed URL parameter parsing.Endi S. Dewata2011-05-261-23/+0
| | | | | | | The $.bbq.getState() invocations have been modified not to coerce URL parameter values to avoid parsing error. Ticket #1208
* automount UIAdam Young2011-05-261-5/+14
| | | | | | | | | | | | | | | | | | | | | | 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-21/+26
| | | | | | | | | 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
* Updated DNS interface.Endi S. Dewata2011-05-111-3/+4
| | | | | | 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.
* Entitlement quantity validation.Endi S. Dewata2011-04-271-29/+57
| | | | | | The widget base class has been modified to validate integer value if the type is specified in the metadata. This is used to validate entitlement quantity.
* Remove unwanted trimming in text fieldsMartin Kosek2011-04-211-4/+4
| | | | | | | | | | | UI trims whitespace at the beginning or at the end when user data are being saved. This confuses is_dirty function which incorrectly recognizes given field as modified. This patch fixes this issue for both general text fields and ACI filter field. https://fedorahosted.org/freeipa/ticket/1096
* Entitlement download.Endi S. Dewata2011-04-181-3/+1
| | | | A Download link has been added to download entitlement certificates.
* Entitlement registration.Endi S. Dewata2011-04-141-1/+2
| | | | | | The entitlement facet will show buttons according to the entitlement status. If it's unregistered, the facet will show a Register button. If it's registered, the facet will show a Consume button.
* Merged IPA.cmd() into IPA.command().Endi S. Dewata2011-04-131-2/+10
| | | | | | | The IPA.cmd() has been merged into IPA.command(). All invocations and test cases have been converted. Ticket #988
* I18n update.Endi S. Dewata2011-02-211-11/+11
| | | | | Hard-coded messages through out the code have been replaced by i18n messages obtained from json_metadata and i18n_messages.
* Fixed add service dialog box.Endi S. Dewata2011-02-111-0/+1
| | | | | | Previously the add service dialog box shows a 'Principal:' label with no text field next to it. It now has been removed. The dialog box has been widened to avoid line wrapping of the buttons.
* column formatting Allow optional formatting for columns Provide Data formate ↵Adam Young2011-02-111-0/+8
| | | | | | for host modificaiton date format
* target section without radio buttons ACI target section refactored into an ↵Adam Young2011-02-111-13/+11
| | | | array of widget-like objects. The radio buttons have been replaced by a select box. THe select is not visible on the details page.
* Read-only text widget's save() should return null.Endi S. Dewata2011-02-071-1/+2
|
* Restructuring details page.Endi S. Dewata2011-02-071-76/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the IPA.details_list_section can only be used with widgets that generates <dd> tag because it uses the following structure: <dl> <dt>Telephone Number:</dt> <span name="teleponenumber"> <dd>111-1111</dd> <dd>222-2222</dd> </span> </dl> The <dd> tag was previously used to handle multi-valued attributes. Since multi-valued attributes are now handled by the recently added IPA.multivalued_text_widget, the structure can be changed as follows: <dl> <dt>Telephone Number:</dt> <dd> <span name="telephonenumber"> <div>111-1111</div> <div>222-2222</div> </span> </dd> </dl> This allows IPA.details_list_section to be used with any widgets without requiring the <dd> tag.
* Added multi-valued text widget.Endi S. Dewata2011-02-031-8/+294
| | | | | | | | | | | | | | | | | | A multi-valued text widget has been created to replace the old IPA.details_field. The old code was designed to handle all data types, and it uses one <dd> tag for each value, so the code is still incomplete and complex. The new code was designed to handle only multi-valued text attributes, and it uses one <dd> tag for all values, so it's easier to maintain. There are already other widgets that can be used to handle other data types. The new code supports line-level undo and line-out for removal like the old code, but there are some changes: - Undoing a newly added line will remove the entire line. - Editing the value of a removed line will cancel the removal. - It provides 'undo all' link to reset the entire attribute. The old code will be cleaned up in a subsequent patch.
* Added undo for permission target.Endi S. Dewata2011-02-021-10/+29
| | | | https://fedorahosted.org/freeipa/ticket/885
* core widget unit tests baseline set of unit tests for checking that each ↵Adam Young2011-02-021-36/+33
| | | | widget conforms to the contract
* undo entity widget adds line level undo for the entity-select-widget now ↵Adam Young2011-02-011-2/+13
| | | | shows the undo link on filter change does JSON queries on keyup instead of keypress https://fedorahosted.org/freeipa/ticket/886
* use entity select widget for permissionsAdam Young2011-02-011-0/+91
| | | | https://fedorahosted.org/freeipa/ticket/879
* Added undo for permission rights.Endi S. Dewata2011-02-011-30/+17
| | | | https://fedorahosted.org/freeipa/ticket/884
* Fixed IPA.widget's load, save, and is_dirty.Endi S. Dewata2011-01-301-10/+27
| | | | This patch fixes the problem leaving the user details page.
* Fixed permission reset and is_dirty.Endi S. Dewata2011-01-291-4/+178
| | | | | | The reset and is_dirty functionality for permission has been fixed. New widgets have been created for select and a collection of checkboxes. New test data files have been added for each target type.
* Add permission dialog adjustments.Endi S. Dewata2011-01-291-475/+0
| | | | | | | | | | | | The IPA.dialog has been modified to support sections. The add dialog for permission has been modified to include the target section. The base dialog classes have been moved from widget.js into a new file called dialog.js. This patch also includes ayoung's fix for parameter name and format for the permission attributes. https://fedorahosted.org/freeipa/ticket/791
* services listAdam Young2011-01-281-0/+1
| | | | | | | | Declaritive Service definition Fixed a problem with multiple calls to create breaking the link between the select box and the text box swapped the select and the text https://fedorahosted.org/freeipa/ticket/442
* Fixed delegation UI issuesEndi S. Dewata2011-01-281-17/+20
| | | | | | | | | | | | | | | | | | This patch fixes several issues in delegation UI: When adding a new delegation, only the first attribute selected was saved. Now all attributes will be saved properly. When loading the details page, the custom widgets did not store the original values properly so is_dirty() did not work correctly. Now this has been fixed except for the memberof attribute because of these issues: - https://fedorahosted.org/freeipa/ticket/869 - https://fedorahosted.org/freeipa/ticket/870 When saving the details page, the attrs were saved as an array which was rejected by the server. Now it is stored as comma- separated list.
* dirtyAdam Young2011-01-271-5/+31
| | | | | If a page is dirty, do not allow additional navigation until changes are saved or committed https://fedorahosted.org/freeipa/ticket/726
* declarative defintionsAdam Young2011-01-271-1/+6
| | | | | | | | | | | | | | 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
* Check field's validity before executing add.Endi S. Dewata2011-01-261-4/+7
|