summaryrefslogtreecommitdiffstats
path: root/install/static/layouts/default
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
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')
-rwxr-xr-xinstall/static/layouts/default/hbac-details-accesstime.html67
-rwxr-xr-xinstall/static/layouts/default/hbac-details-general.html24
-rwxr-xr-xinstall/static/layouts/default/hbac-details-host.html15
-rwxr-xr-xinstall/static/layouts/default/hbac-details-service.html15
-rwxr-xr-xinstall/static/layouts/default/hbac-details-sourcehost.html15
-rwxr-xr-xinstall/static/layouts/default/hbac-details-user.html15
6 files changed, 89 insertions, 62 deletions
diff --git a/install/static/layouts/default/hbac-details-accesstime.html b/install/static/layouts/default/hbac-details-accesstime.html
index 4122c76a6..8d5e258b3 100755
--- a/install/static/layouts/default/hbac-details-accesstime.html
+++ b/install/static/layouts/default/hbac-details-accesstime.html
@@ -8,39 +8,42 @@
</head>
<body>
<div id="contents">
- Rule applies when access is being requested at:
- <input type="radio" name="accesstime" value="all"/>Any Time
- <input type="radio" name="accesstime" value=""/>Specified Times
- <br/>
+ <span name="accesstime">
+ <span name="text">Rule applies when access is being requested at:</span>
+ <input type="radio" name="accesstime" value="all"/>Any Time
+ <input type="radio" name="accesstime" value=""/>Specified Times
+ <span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
+ <br/>
- <div id="hbac-accesstime">
- <table class="search-table">
- <thead>
- <tr>
- <th style="width: 25px;">
- <input type="checkbox" name="select"/>
- </th>
- <th>
- <span style="float: left;">Access Time</span>
- <span name="buttons" style="float: right;">
- <input type="button" name="remove" value="Remove Access Times"/>
- <input type="button" name="add" value="Add Access Times"/>
- </span>
- </th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>
- <input type="checkbox" name="select" value="time"/>
- </td>
- <td>
- <span name="accesstime">time</span>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
+ <span name="table">
+ <table class="search-table">
+ <thead>
+ <tr>
+ <th style="width: 25px;">
+ <input type="checkbox" name="select"/>
+ </th>
+ <th>
+ <span style="float: left;">Access Time</span>
+ <span name="buttons" style="float: right;">
+ <input type="button" name="remove" value="Remove Access Times"/>
+ <input type="button" name="add" value="Add Access Times"/>
+ </span>
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>
+ <input type="checkbox" name="select" value="time"/>
+ </td>
+ <td>
+ <span name="accesstime">time</span>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </span>
+ </span>
</div>
</body>
</html> \ No newline at end of file
diff --git a/install/static/layouts/default/hbac-details-general.html b/install/static/layouts/default/hbac-details-general.html
index 81b2a4ae6..978369090 100755
--- a/install/static/layouts/default/hbac-details-general.html
+++ b/install/static/layouts/default/hbac-details-general.html
@@ -14,12 +14,18 @@
Name:
</td>
<td>
- <input type="text" name="cn" size="30"/>
+ <span name="cn">
+ <input type="text" name="cn" size="30"/>
+ <span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
+ </span>
</td>
<td style="text-align: right;">
Rule type:
- <input type="radio" name="accessruletype" value="allow"/>Allow
- <input type="radio" name="accessruletype" value="deny"/>Deny
+ <span name="accessruletype">
+ <input type="radio" name="accessruletype" value="allow"/>Allow
+ <input type="radio" name="accessruletype" value="deny"/>Deny
+ <span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
+ </span>
</td>
</tr>
<tr>
@@ -27,7 +33,10 @@
Description:
</td>
<td colspan="2">
- <textarea name="description" rows="5" style="width: 100%;" cols="40"></textarea>
+ <span name="description">
+ <textarea name="description" rows="5" style="width: 100%;" cols="40"></textarea>
+ <span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
+ </span>
</td>
</tr>
<tr>
@@ -35,8 +44,11 @@
Rule status:
</td>
<td colspan="2">
- <input type="radio" name="ipaenabledflag" value="TRUE"/>Active
- <input type="radio" name="ipaenabledflag" value="FALSE"/>Inactive
+ <span name="ipaenabledflag">
+ <input type="radio" name="ipaenabledflag" value="TRUE"/>Active
+ <input type="radio" name="ipaenabledflag" value="FALSE"/>Inactive
+ <span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
+ </span>
</td>
</tr>
</table>
diff --git a/install/static/layouts/default/hbac-details-host.html b/install/static/layouts/default/hbac-details-host.html
index a20e8115a..1ba386dab 100755
--- a/install/static/layouts/default/hbac-details-host.html
+++ b/install/static/layouts/default/hbac-details-host.html
@@ -9,11 +9,14 @@
<body>
<div id="contents">
Rule applies when access is requested to:
- <input type="radio" name="hostcategory" value="all"/>Any Host
- <input type="radio" name="hostcategory" value=""/>Specified Hosts and Groups
+ <span name="hostcategory">
+ <input type="radio" name="hostcategory" value="all"/>Any Host
+ <input type="radio" name="hostcategory" value=""/>Specified Hosts and Groups
+ <span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
+ </span>
<br/>
- <div id="hbac-memberhost_host">
+ <span name="memberhost_host">
<table class="search-table">
<thead>
<tr>
@@ -40,9 +43,9 @@
</tr>
</tbody>
</table>
- </div>
+ </span>
- <div id="hbac-memberhost_hostgroup">
+ <span name="memberhost_hostgroup">
<table class="search-table">
<thead>
<tr>
@@ -69,7 +72,7 @@
</tr>
</tbody>
</table>
- </div>
+ </span>
</div>
</body>
</html> \ No newline at end of file
diff --git a/install/static/layouts/default/hbac-details-service.html b/install/static/layouts/default/hbac-details-service.html
index 380cb1bb4..77e8420d3 100755
--- a/install/static/layouts/default/hbac-details-service.html
+++ b/install/static/layouts/default/hbac-details-service.html
@@ -9,11 +9,14 @@
<body>
<div id="contents">
Rule applies when access is requested via:
- <input type="radio" name="servicecategory" value="all"/>Any Service
- <input type="radio" name="servicecategory" value=""/>Specified Services and Groups
+ <span name="servicecategory">
+ <input type="radio" name="servicecategory" value="all"/>Any Service
+ <input type="radio" name="servicecategory" value=""/>Specified Services and Groups
+ <span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
+ </span>
<br/>
- <div id="hbac-memberservice_hbacsvc">
+ <span name="memberservice_hbacsvc">
<table class="search-table">
<thead>
<tr>
@@ -40,9 +43,9 @@
</tr>
</tbody>
</table>
- </div>
+ </span>
- <div id="hbac-memberservice_hbacsvcgroup">
+ <span name="memberservice_hbacsvcgroup">
<table class="search-table">
<thead>
<tr>
@@ -69,7 +72,7 @@
</tr>
</tbody>
</table>
- </div>
+ </span>
</div>
</body>
</html> \ No newline at end of file
diff --git a/install/static/layouts/default/hbac-details-sourcehost.html b/install/static/layouts/default/hbac-details-sourcehost.html
index 12e934c0d..aae1ef380 100755
--- a/install/static/layouts/default/hbac-details-sourcehost.html
+++ b/install/static/layouts/default/hbac-details-sourcehost.html
@@ -9,11 +9,14 @@
<body>
<div id="contents">
Rule applies when access is being initiated from:
- <input type="radio" name="sourcehostcategory" value="all"/>Any Host
- <input type="radio" name="sourcehostcategory" value=""/>Specified Hosts and Groups
+ <span name="sourcehostcategory">
+ <input type="radio" name="sourcehostcategory" value="all"/>Any Host
+ <input type="radio" name="sourcehostcategory" value=""/>Specified Hosts and Groups
+ <span name="undo" class="ui-state-highlight ui-corner-all" style="display: none;">undo</span>
+ </span>
<br/>
- <div id="hbac-sourcehost_host">
+ <span name="sourcehost_host">
<table class="search-table">
<thead>
<tr>
@@ -40,9 +43,9 @@
</tr>
</tbody>
</table>
- </div>
+ </span>
- <div id="hbac-sourcehost_hostgroup">
+ <span name="sourcehost_hostgroup">
<table class="search-table">
<thead>
<tr>
@@ -69,7 +72,7 @@
</tr>
</tbody>
</table>
- </div>
+ </span>
</div>
</body>
</html> \ No newline at end of file
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