summaryrefslogtreecommitdiffstats
path: root/install/static/layouts/default/hbac-details-user.html
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-11-15 11:10:55 -0600
committerEndi Sukma Dewata <edewata@redhat.com>2010-11-15 12:48:45 -0500
commit9c502641b5f7bf613eb9dbd4be21fbaf92312267 (patch)
tree9421ac0faa0dd3bbd2dac71c6b0a4a94ec3fd6b1 /install/static/layouts/default/hbac-details-user.html
parent629e9520e0b5ce1ae6138d4e2c69ac52927c044a (diff)
downloadfreeipa-9c502641b5f7bf613eb9dbd4be21fbaf92312267.tar.gz
freeipa-9c502641b5f7bf613eb9dbd4be21fbaf92312267.tar.xz
freeipa-9c502641b5f7bf613eb9dbd4be21fbaf92312267.zip
HBAC details page enhancement
The HBAC details page has been enhanced to support Undo and Reset operations. The functionality is implemented in the base widget class so the behavior will be more consistent across widgets. A <span> tag now used to define the field boundary in the HTML doc. The tag contains the visual representation of the field which include the input tag and optionally the undo link. The Update method on HBAC details page has been modified so that it executes several operations using a batch command. The operations being executed depends on the changes made to the fields. These operations may include: - removing access time if access time is changed to any time - removing memberships if member category is changed to all - modifying rule attributes if description or rule type is changed - enabling/disabling the rule if rule status is changed The behavior of the Add & Remove buttons also has been changed such that it adjust the category attribute properly in addition to adding the memberships using batch command. For example, if category is initially set to all, adding a new member will also change the category to empty. The ipa_command have been modified to store the on_success and on_error handlers as properties. When the command is executed as a part of batch operation, the result of each command will be passed to the appropriate handler. The unit tests and test data have been updated as well.
Diffstat (limited to 'install/static/layouts/default/hbac-details-user.html')
-rwxr-xr-xinstall/static/layouts/default/hbac-details-user.html15
1 files changed, 9 insertions, 6 deletions
diff --git a/install/static/layouts/default/hbac-details-user.html b/install/static/layouts/default/hbac-details-user.html
index ef41b6f8d..1b58848fe 100755
--- a/install/static/layouts/default/hbac-details-user.html
+++ b/install/static/layouts/default/hbac-details-user.html
@@ -9,11 +9,14 @@
<body>
<div id="contents">
Rule applies when access is requested by:
- <input type="radio" name="usercategory" value="all"/>Anyone
- <input type="radio" name="usercategory" value=""/>Specified Users and Groups
+ <span name="usercategory">
+ <input type="radio" name="usercategory" value="all"/>Anyone
+ <input type="radio" name="usercategory" value=""/>Specified Users and Groups
+ <span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
+ </span>
<br/>
- <div id="hbac-memberuser_user">
+ <span name="memberuser_user">
<table class="search-table">
<thead>
<tr>
@@ -40,9 +43,9 @@
</tr>
</tbody>
</table>
- </div>
+ </span>
- <div id="hbac-memberuser_group">
+ <span name="memberuser_group">
<table class="search-table">
<thead>
<tr>
@@ -69,7 +72,7 @@
</tr>
</tbody>
</table>
- </div>
+ </span>
</div>
</body>
</html> \ No newline at end of file