summaryrefslogtreecommitdiff
path: root/UI/Admin
diff options
context:
space:
mode:
authoraurynn_cmd <aurynn_cmd@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-10 23:02:09 +0000
committeraurynn_cmd <aurynn_cmd@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-10 23:02:09 +0000
commit74afbb457aac6a1f6e2d4a2357768f710977a640 (patch)
treecc06c426397d05c5f1dc12eb40b0883f7d3b0854 /UI/Admin
parent928290e80924da702b9041a30dd776ad34d24ba9 (diff)
Creation of next-gen admin.pl, admin.pm, and admin.sql systems.
Admin.pm defines the new controller admin.pl is the direct view-backing software. POD is not completed, will be provided shortly. Full UI templates provided for the Reconciliation, Vendor, Customer, and Employee as well. UI/ is being delineated by subdirectories for Admin, Vendor, Customer and Employee, to date. Minor whitespace cleanup. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1557 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI/Admin')
-rw-r--r--UI/Admin/delete_group.html0
-rw-r--r--UI/Admin/delete_user.html0
-rw-r--r--UI/Admin/edit_group.html13
-rw-r--r--UI/Admin/edit_user.html0
-rw-r--r--UI/Admin/login.html11
-rw-r--r--UI/Admin/main.html55
6 files changed, 79 insertions, 0 deletions
diff --git a/UI/Admin/delete_group.html b/UI/Admin/delete_group.html
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/UI/Admin/delete_group.html
diff --git a/UI/Admin/delete_user.html b/UI/Admin/delete_user.html
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/UI/Admin/delete_user.html
diff --git a/UI/Admin/edit_group.html b/UI/Admin/edit_group.html
new file mode 100644
index 00000000..11eb98dc
--- /dev/null
+++ b/UI/Admin/edit_group.html
@@ -0,0 +1,13 @@
+<?lsmb import base.html?>
+
+<?lsmb if user.username ?>
+
+ <center><b>Edit User</b></center>
+
+<?lsmb else ?>
+
+ <center><b>Create User</b></center>
+
+<?lsmb endif ?>
+
+<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
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/UI/Admin/edit_user.html
diff --git a/UI/Admin/login.html b/UI/Admin/login.html
new file mode 100644
index 00000000..cf48b6ec
--- /dev/null
+++ b/UI/Admin/login.html
@@ -0,0 +1,11 @@
+<?lsmb include index.html ?>
+
+<?lsmb block 'main'?>
+
+ <div name="login" id="login">
+
+
+
+ </div>
+
+<?lsmb end ?> \ No newline at end of file
diff --git a/UI/Admin/main.html b/UI/Admin/main.html
new file mode 100644
index 00000000..56f4b2f8
--- /dev/null
+++ b/UI/Admin/main.html
@@ -0,0 +1,55 @@
+<?lsmb block main?>
+<div class="admin">
+
+ <!-- first, a list of all active users -->
+
+ <center>
+ <strong><font size="16"> Administration</font></strong>
+ </center>
+
+ <?lsmb if message?>
+ <strong><font color="red"><?lsmb message?></font></strong>
+ <?lsmb end?>
+ <form name="userlist" method="POST" action="admin.pl">
+ <table>
+ <tr>
+ <td></td>
+ <td>User ID</td>
+ <td>Username</td>
+ <td>Active</td>
+ <td>Date Added</td>
+ </tr>
+
+ <?lsmb FOREACH user = users.all ?>
+
+ <tr>
+ <td></td>
+ <td>
+ <a href="/admin.pl?action=edit_user&amp;user=<?lsmb user.id?>">
+ <?lsmb user.id?>
+ </a>
+ </td>
+ <td>
+ <?lsmb user.username?>
+ </td>
+ <td>
+ <?lsmb user.active?>
+ </td>
+ <td>
+ <?lsmb user.creation_date?>
+ </td>
+
+ </tr>
+ <?lsmb end?>
+ </table>
+
+ <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>
+ </div>
+ </form>
+</div>
+<?end?> \ No newline at end of file