summaryrefslogtreecommitdiffstats
path: root/base/tps-tomcat/shared/webapps/tps/users.html
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2013-12-10 10:38:24 -0500
committerEndi S. Dewata <edewata@redhat.com>2013-12-16 19:15:45 -0500
commita99a23e2866da950f267c7441c0f60be9ed136b9 (patch)
tree2f90fab1101205da1754a445d267dfbeb7f0f310 /base/tps-tomcat/shared/webapps/tps/users.html
parent017e14f93e376f7cbc20066f052a39c4552860d9 (diff)
downloadpki-a99a23e2866da950f267c7441c0f60be9ed136b9.tar.gz
pki-a99a23e2866da950f267c7441c0f60be9ed136b9.tar.xz
pki-a99a23e2866da950f267c7441c0f60be9ed136b9.zip
Added edit dialog boxes.
New dialog boxes have been added to provide interface for editing TPS resourcers. Ticket #654
Diffstat (limited to 'base/tps-tomcat/shared/webapps/tps/users.html')
-rw-r--r--base/tps-tomcat/shared/webapps/tps/users.html30
1 files changed, 29 insertions, 1 deletions
diff --git a/base/tps-tomcat/shared/webapps/tps/users.html b/base/tps-tomcat/shared/webapps/tps/users.html
index 3eeec8118..28ccf5924 100644
--- a/base/tps-tomcat/shared/webapps/tps/users.html
+++ b/base/tps-tomcat/shared/webapps/tps/users.html
@@ -25,9 +25,16 @@
<script src="/tps/js/user.js"></script>
<script>
$(function() {
+ var editDialog = new UserDialog({
+ el: $("#user-dialog"),
+ title: "Edit User",
+ readonly: ["id", "type"]
+ });
+
new TableView({
el: $("table[name='users']"),
- collection: new UserCollection({ size: 3 })
+ collection: new UserCollection({ size: 3 }),
+ editDialog: editDialog
});
});
</script>
@@ -67,5 +74,26 @@ $(function() {
</tfoot>
</table>
+<div id="user-dialog" class="rcue-dialog-background">
+ <div class="rcue-dialog">
+ <header>
+ <h1>User</h1>
+ <a class="rcue-button-close" href="#"></a>
+ </header>
+ <fieldset>
+ <label>User ID</label><input name="id" type="text"><br>
+ <label>Full Name</label><input name="fullName" type="text"><br>
+ <label>Email</label><input name="email" type="text"><br>
+ <label>Type</label><input name="type" type="text"><br>
+ <label>State</label><input name="state" type="text"><br>
+ <label>TPS Profiles</label><input name="tpsProfiles" type="text"><br>
+ </fieldset>
+ <footer>
+ <button name="save" class="primary">Save</button>
+ <button name="cancel">Cancel</button>
+ </footer>
+ </div>
+</div>
+
</body>
</html>