diff options
author | alee <alee@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2009-01-27 19:06:40 +0000 |
---|---|---|
committer | alee <alee@c9f7a03b-bd48-0410-a16d-cbbf54688b0b> | 2009-01-27 19:06:40 +0000 |
commit | ea85f54a756ff1e6603cdee28a90785b3f8db08d (patch) | |
tree | edc4f707f1746f9b6a600611d0ad5fd60147b5e3 /pki/dogtag/tps-ui/shared/docroot/tokendb/newUser.template | |
parent | 54caba2ba7ffbfa451a1cc92e0c5096968ff20ba (diff) | |
download | pki-ea85f54a756ff1e6603cdee28a90785b3f8db08d.tar.gz pki-ea85f54a756ff1e6603cdee28a90785b3f8db08d.tar.xz pki-ea85f54a756ff1e6603cdee28a90785b3f8db08d.zip |
Bugzilla BZ# 479092: TPS roles enhancements
git-svn-id: svn+ssh://svn.fedorahosted.org/svn/pki/trunk@198 c9f7a03b-bd48-0410-a16d-cbbf54688b0b
Diffstat (limited to 'pki/dogtag/tps-ui/shared/docroot/tokendb/newUser.template')
-rw-r--r-- | pki/dogtag/tps-ui/shared/docroot/tokendb/newUser.template | 180 |
1 files changed, 180 insertions, 0 deletions
diff --git a/pki/dogtag/tps-ui/shared/docroot/tokendb/newUser.template b/pki/dogtag/tps-ui/shared/docroot/tokendb/newUser.template new file mode 100644 index 000000000..f434ba388 --- /dev/null +++ b/pki/dogtag/tps-ui/shared/docroot/tokendb/newUser.template @@ -0,0 +1,180 @@ +<!-- --- BEGIN COPYRIGHT BLOCK --- + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301 USA + + Copyright (C) 2008 Red Hat, Inc. + All rights reserved. + --- END COPYRIGHT BLOCK --- --> +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> +<HTML> +<meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=UTF-8"> +<HEAD> +<TITLE>TPS</Title> +</HEAD> + +<table border="0" width="100%" cellspacing="0" cellpadding="6"> + <tr bgcolor="#666699"> + <td width=25%> + <table border="0" cellspacing="0" cellpadding="6"> + <tr> + <td nowrap><font size="-1" face="PrimaSans BT, Verdana, sans-serif" color="white">Dogtag<b>®<br> + Certificate<br>System</b></font> </td> + </tr> + </table> + </td> + <td align=right width=65% nowrap><font size="+1" face="PrimaSans BT, Verdana, sans-serif" color="white">TPS Services</font></td> + <td width="10%"> </td> + </tr> +</table> +<p> + +<BODY> + +<CMS_TEMPLATE> + +<SCRIPT type="text/JavaScript"> +<!-- +var uri0 = ""; +if (typeof(uriBase) == "undefined") { + uri0 += "/tus"; +} else { + uri0 += uriBase; +} + +document.write("<font face=\"PrimaSans BT, Verdana, sans-serif\" size=\"+1\">"+ + "<a href=\""+uri0+"\">Main Menu</a> : Admin Operations : Add New User</font>\n"); +document.write("<table width=\"100%\"><tr><td align=\"right\">" + + "<b>UID:</b>" + + userid + "</td></tr></table>\n"); +document.write("<HR NOSHADE SIZE=1>\n"); + +function validate_required(field,alerttxt) { + with (field) { + if (value==null||value=="") { + alert(alerttxt); + return false; + } + else { + return true; + } + } +} + +function validate_form(thisform) { + with (thisform) { + if (validate_required(userid,"Userid is required")==false) { + userid.focus(); + return false; + } + if (validate_required(firstName,"First Name is required")==false) { + firstName.focus(); + return false; + } + if (validate_required(lastName,"Last Name is required")==false) { + lastName.focus(); + return false; + } + if (validate_required(groupid,"Group ID is required")==false) { + groupid.focus(); + return false; + } + + } +} + +function doAdd(form) { + var uri = ""; + if (typeof(uriBase) == "undefined") { + uri += "/tus" + } else { + uri += uriBase; + } + if (validate_form(this)) { + document.addUserForm.action = uri; + return true; + } else { + return false; + } +} + + +//--> +</SCRIPT> + +<FORM NAME ="addUserForm" METHOD="POST" onSubmit="return doAdd(this)" > +<input TYPE="hidden" NAME="query" VALUE="op=addUser"> +<table BORDER=0 CELLSPACING=2 CELLPADDING=0 width=100%> + <tr> + <td ALIGN=LEFT width=30%> + <font size=-1 face="PrimaSans BT, Verdana, sans-serif"> + User ID: + </font> + </td> + <td> + <input TYPE=TEXT NAME=userid SIZE=20> + </td> + </tr> + <tr> + <td ALIGN=LEFT width=30%> + <font size=-1 face="PrimaSans BT, Verdana, sans-serif"> + User First Name: + </font> + </td> + <td> + <input TYPE=TEXT NAME=firstName SIZE=20> + </td> + </tr> + <tr> + <td ALIGN=LEFT width=30%> + <font size=-1 face="PrimaSans BT, Verdana, sans-serif"> + User Last Name: + </font> + </td> + <td> + <input TYPE=TEXT NAME=lastName SIZE=20> + </td> + </tr> + <tr> + <td ALIGN=LEFT width=30%> + <font size=-1 face="PrimaSans BT, Verdana, sans-serif"> + Role: + </font> + </td> + <td> Operator + <input TYPE=CHECKBOX NAME=opOperator value="Officers" CHECKED> + Agent + <input TYPE=CHECKBOX NAME=opAgent value="Agents" > + Admin + <input TYPE=CHECKBOX NAME=opAdmin value="Administrators" > + </td> + </tr> + <tr> + <td ALIGN=LEFT width=30%> + <font size=-1 face="PrimaSans BT, Verdana, sans-serif"> + Certificate: + </font> + </td> + <td> + <textarea name="cert" cols="40" rows="10" > +Paste the base 64 user certificate here (without the header and footer) + </textarea> + </td> + </tr> +</table> +<HR NOSHADE SIZE=1> +<DIV ALIGN=RIGHT> +<input TYPE=submit VALUE="Add User" > +</form> +</BODY> +</HTML> |