summaryrefslogtreecommitdiffstats
path: root/install/ui/hbac.js
Commit message (Collapse)AuthorAgeFilesLines
* Fixed layout problem in permission adder dialog.Endi S. Dewata2011-09-091-1/+1
| | | | | | | | | | | | | In order to maintain consistent layout between details page and dialog boxes the IPA.details_list_section has been replaced with IPA.details_table_section which is based on table. The IPA.target_section and other subclasses of IPA.details_list_section have been converted to use IPA.details_table_section as well. The unit tests have been updated accordingly. Ticket #1648
* Fixed hard-coded UI messages.Endi S. Dewata2011-08-311-2/+2
| | | | | | | | | | | Some hard-coded messages in ipa.js have been moved into internal.py. The messages in internal.py have been rearranged to match the output (ipa_init.json). A new method IPA.get_message() has been added to take a message ID and return the translated message or a default message if not found. Ticket #1701
* Removed unnecessary HBAC/sudo rule category modification.Endi S. Dewata2011-08-231-20/+12
| | | | | | | | | | 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
* Updated add and delete association dialog titles.Endi S. Dewata2011-08-231-62/+48
| | | | | | | | | | The association table widget and facet have been modified to accept titles for the add and delete dialogs. The table and facet definitions have been modified to specify the appropriate titles. Some unused code have been removed. Ticket #1629
* Linked entries in HBAC/sudo details page.Endi S. Dewata2011-08-041-19/+5
| | | | | | | The association tables in HBAC/sudo details page have been modified to link the entries to the appropriate details page. Ticket #1535
* Added association facets for HBAC and sudo.Endi S. Dewata2011-07-281-11/+47
| | | | | | | The HBAC service, HBAC service group, sudo command and sudo command group have been modified to show the associations as facets. Ticket #1536
* removing setters setup and initAdam Young2011-07-281-295/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Removed custom layouts using HTML templates.Endi S. Dewata2011-07-211-112/+65
| | | | | | | The code for supporting custom layouts using HTML templates has been removed. If it's needed again in the future the code can be restored. Ticket #1501
* Removed HBAC access time code.Endi S. Dewata2011-07-211-344/+0
| | | | | | | | The HBAC access time is currently not supported, so the related UI code has been removed to reduce maintenance issue. When the feature becomes supported in the future the code may be restored/rewritten. Ticket #546
* Fixed problem loading data in HBAC/sudo details page.Endi S. Dewata2011-07-211-6/+21
| | | | | | | | In a recent change the details page was changed to create and locate field containers with 'details-field' CSS class. The HBAC and sudo custom details pages have been modified to use the same CSS class. Ticket #1508
* Entity select widget improvementsEndi S. Dewata2011-07-181-2/+2
| | | | | | | | 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-3/+2
| | | | | | | | 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
* Fixed dirty dialog problems in HBAC/Sudo rules.Endi S. Dewata2011-07-071-13/+23
| | | | | | | The update() in HBAC/Sudo details facet has been fixed to call the callback function which will show the dirty dialog properly. Ticket #1439
* HBAC deny warningAdam Young2011-07-061-1/+52
| | | | | | | | shows dialog if there are any HBAC deny rules. Dialog provides option to navigate to the HBAC page. Deny rules have their rule type value show up in red. Only shows up fro administrators, not for self service users. https://fedorahosted.org/freeipa/ticket/1421
* shorten url cache state in a javascript variable, and leave on information ↵Adam Young2011-06-281-4/+4
| | | | | | | | | | | | | | 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
* Converted entity header into facet header.Endi S. Dewata2011-06-231-0/+2
| | | | | | | | | | | 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-19/+2
| | | | | | | | | | | | 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-2/+1
| | | | | A new facet has been added to show entitlement status and download the registration certificate.
* Fixed problem deleting value in text field.Endi S. Dewata2011-05-271-22/+20
| | | | | | | | | | | | Previously deleting a value in a text field did not work because the field is not included in the modify operation when the value is empty. The details facet's update() method has been modified to update only dirty fields. The section lists in details facet and dialog have been converted into ordered maps. Ticket #1256
* Added Update and Reset buttons into Dirty dialog.Endi S. Dewata2011-05-271-3/+2
| | | | | | | | | | | | 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-4/+4
| | | | | | | The $.bbq.getState() invocations have been modified not to coerce URL parameter values to avoid parsing error. Ticket #1208
* 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
* Fixed problem disabling HBAC and SUDO rules.Endi S. Dewata2011-05-201-1/+1
| | | | | | The method names for disabling HBAC and SUDO rules have been fixed. Ticket #1237.
* 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-3/+2
| | | | | | | | | 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
* Use entity names for tab state.Endi S. Dewata2011-05-051-4/+1
| | | | | | | 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.
* Moved adder dialog box into entity.Endi S. Dewata2011-04-211-10/+17
| | | | | The adder dialog box definition has been moved from search facet into entity to make it accessible from other facets.
* Merged IPA.cmd() into IPA.command().Endi S. Dewata2011-04-131-28/+44
| | | | | | | The IPA.cmd() has been merged into IPA.command(). All invocations and test cases have been converted. Ticket #988
* Refactored builder interface.Endi S. Dewata2011-04-111-2/+3
| | | | | | | 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.
* code review fixesAdam Young2011-03-311-7/+7
| | | | this version includes using spec for detail_facets
* define entities using builder and more declarative syntaxAdam Young2011-03-311-0/+997
merged hbac and sudo in to single files associaton facet and table supports linking