summaryrefslogtreecommitdiff
path: root/UI/Admin
diff options
context:
space:
mode:
authoraurynn_cmd <aurynn_cmd@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-18 21:16:17 +0000
committeraurynn_cmd <aurynn_cmd@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-18 21:16:17 +0000
commit0d4b0b2cf4be896167ff411d22125c378573b762 (patch)
tree3b20fed1e21741a53807e03c64f0e5c176c69b58 /UI/Admin
parent2e513eecb022613bfea6e040a4a21897316d5585 (diff)
Creation of Edit/Create user templates. Addition of a Cancel button to the admin.pl, which take one back to the initial page.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1634 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI/Admin')
-rw-r--r--UI/Admin/edit_group.html12
-rw-r--r--UI/Admin/edit_user.html143
-rw-r--r--UI/Admin/main.html10
3 files changed, 156 insertions, 9 deletions
diff --git a/UI/Admin/edit_group.html b/UI/Admin/edit_group.html
index 11eb98dc..94a795c1 100644
--- a/UI/Admin/edit_group.html
+++ b/UI/Admin/edit_group.html
@@ -1,13 +1,17 @@
<?lsmb import base.html?>
-<?lsmb if user.username ?>
+<?lsmb IF user.username ?>
<center><b>Edit User</b></center>
-<?lsmb else ?>
+<?lsmb ELSE ?>
<center><b>Create User</b></center>
-<?lsmb endif ?>
+<?lsmb ENDIF ?>
-<form name="submit_user" action="/admin.pl?"></form> \ No newline at end of file
+<form name="submit_user" action="/admin.pl?">
+
+
+
+</form> \ No newline at end of file
diff --git a/UI/Admin/edit_user.html b/UI/Admin/edit_user.html
index e69de29b..6bdcb8cf 100644
--- a/UI/Admin/edit_user.html
+++ b/UI/Admin/edit_user.html
@@ -0,0 +1,143 @@
+<div id="modify_user">
+ <font size="15">
+ <strong>
+ <?lsmb IF user.username ?>
+ Edit User <?lsmb user.username ?>
+ <?lsmb ELSE?>
+ New User
+ <?lsmb END?>
+ </strong>
+ </font>
+
+ <form method="POST" action="admin.pl?action=new_user">
+
+ <table>
+
+ <tr>
+ <td>
+ <select name="salutation">
+ <?lsmb FOREACH sal = salutations ?>
+ <option value="<?lsmb sal.id?>"><?lsmb sal.salutation?></option>
+ <?END?>
+ </select>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ First Name :<input type="textarea" name="first_name" value="<?lsmb user.first_name?>"/>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ Last Name :<input type="textarea" name="last_name" value="<?lsmb user.last_name?>"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Employee # :<input type="textarea" name="employeenumber" value="<?lsmb user.employeenumber?>"/>
+ </td>
+ </tr>
+ <hr/>
+ <?lsmb UNLESS user.username?>
+ <tr>
+ <td>
+ Username :<input type="textarea" name="username" value="<?lsmb user.last_name?>"/>
+ </td>
+ </tr>
+ <?lsmb END?>
+ <tr>
+ <td>Company Name</td>
+ <td>
+ <input type="textarea" name="companyname" value="<?lsmb user.companyname?>"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ Address
+ </td>
+ <td>
+ <input type="textarea" name="address1" value="<?lsmb user.address1?>"/>
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>
+ <input type="textarea" name="address2" value="<?lsmb user.address2?>"/>
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td>
+ <input type="textarea" name="address3" value="<?lsmb user.address3?>"/>
+ </td>
+ </tr>
+ <tr>
+ <td>City</td>
+ <td>
+ <input type="textarea" name="city" value="<?lsmb user.city?>"/>
+ </td>
+ </tr>
+ <tr>
+ <td>City</td>
+ <td>
+ <input type="textarea" name="city" value="<?lsmb user.city?>"/>
+ </td>
+ </tr>
+ <tr>
+ <td>State/Province</td>
+ <td>
+ <input type="textarea" name="state" value="<?lsmb user.state?>"/>
+ </td>
+ </tr>
+
+ <tr>
+ <td>Zip/Postal code</td>
+ <td>
+ <input type="textarea" name="zipcode" value="<?lsmb user.zipcode?>"/>
+ </td>
+ </tr>
+ <tr>
+ <td>Country</td>
+ <td>
+ <input type="textarea" name="country" value="<?lsmb user.city?>"/>
+ </td>
+ </tr>
+
+ <tr>
+ <td>Contact Information</td>
+ <td><hr/></td>
+ </tr>
+
+ <tr>
+ <td>Home Phone</td>
+ <td>
+ <input type="textarea" name="homephone" value="<?lsmb user.homephone?>"/>
+ </td>
+ </tr>
+
+ <tr>
+ <td>Work Phone</td>
+ <td>
+ <input type="textarea" name="workphone" value="<?lsmb user.workphone?>"/>
+ </td>
+ </tr>
+
+ <tr>
+ <td>Email</td>
+ <td>
+ <input type="textarea" name="e_mail" value="<?lsmb user.e_mail?>"/>
+ </td>
+ </tr>
+
+ </table>
+
+ <table>
+ <tr>
+ <td><button value="new_user">Submit</button></td>
+ <td><button name="method" value="cancel">Cancel</td>
+ </tr>
+ </table>
+ </form>
+</div> \ No newline at end of file
diff --git a/UI/Admin/main.html b/UI/Admin/main.html
index 2881878e..a7e07c73 100644
--- a/UI/Admin/main.html
+++ b/UI/Admin/main.html
@@ -9,7 +9,7 @@
<?lsmb IF message?>
<strong><font color="red"><?lsmb message?></font></strong>
<?lsmb END?>
- <form name="userlist" method="POST" action="admin.pl">
+ <form name="userlist" method="GET" action="admin.pl">
<table>
<tr>
<td></td>
@@ -44,10 +44,10 @@
<hr/>
<div class="buttons">
- <button name="method" value="new_user">New User</button>
- <button name="method" value="new_group">New Group</button>
- <button name="method" value="delete_user">Delete User</button>
- <button name="method" value="delete_group">Delete Group</button>
+ <button name="action" value="new_user">New User</button>
+ <button name="action" value="new_group">New Group</button>
+ <button name="action" value="delete_user">Delete User</button>
+ <button name="action" value="delete_group">Delete Group</button>
</div>
</form>
</div> \ No newline at end of file