summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--UI/Admin/main.html10
-rw-r--r--scripts/admin.pl40
2 files changed, 24 insertions, 26 deletions
diff --git a/UI/Admin/main.html b/UI/Admin/main.html
index 56f4b2f8..2881878e 100644
--- a/UI/Admin/main.html
+++ b/UI/Admin/main.html
@@ -1,4 +1,3 @@
-<?lsmb block main?>
<div class="admin">
<!-- first, a list of all active users -->
@@ -7,9 +6,9 @@
<strong><font size="16"> Administration</font></strong>
</center>
- <?lsmb if message?>
+ <?lsmb IF message?>
<strong><font color="red"><?lsmb message?></font></strong>
- <?lsmb end?>
+ <?lsmb END?>
<form name="userlist" method="POST" action="admin.pl">
<table>
<tr>
@@ -40,7 +39,7 @@
</td>
</tr>
- <?lsmb end?>
+ <?lsmb END?>
</table>
<hr/>
@@ -51,5 +50,4 @@
<button name="method" value="delete_group">Delete Group</button>
</div>
</form>
-</div>
-<?end?> \ No newline at end of file
+</div> \ No newline at end of file
diff --git a/scripts/admin.pl b/scripts/admin.pl
index c1706aad..7daf463b 100644
--- a/scripts/admin.pl
+++ b/scripts/admin.pl
@@ -20,15 +20,15 @@ sub new_user {
my $template = LedgerSMB::Template->new( user => $user,
- template => 'admin/edit_user.html', language => $user->{language},
- format => 'HTML');
+ template => 'Admin/edit_user', language => $user->{language},
+ format => 'HTML', path=>'UI');
$template->render($entity);
} else {
my $template = LedgerSMB::Template->new( user => $user,
- template => 'admin/edit_user.html', language => $user->{language},
- format => 'HTML');
+ template => 'Admin/edit_user', language => $user->{language},
+ format => 'HTML', path=>'UI');
$template->render();
}
@@ -44,8 +44,8 @@ sub edit_user {
my $all_roles = $admin->role_list();
my $template = LedgerSMB::Template->new( user => $user,
- template => 'admin/edit_user.html', language => $user->{language},
- format => 'HTML');
+ template => 'Admin/edit_user', language => $user->{language},
+ format => 'HTML', path=>'UI');
$template->render($edited_user, $all_roles);
}
@@ -59,8 +59,8 @@ sub edit_group {
my $group = $admin->get_group();
my $template = LedgerSMB::Template->new( user => $user,
- template => 'admin/edit_group.html', language => $user->{language},
- format => 'HTML');
+ template => 'Admin/edit_group', language => $user->{language},
+ format => 'HTML', path=>'UI');
$template->render($all_roles);
}
@@ -73,8 +73,8 @@ sub create_group {
my $all_roles = $admin->role_list();
my $template = LedgerSMB::Template->new( user => $user,
- template => 'admin/edit_group.html', language => $user->{language},
- format => 'HTML');
+ template => 'Admin/edit_group', language => $user->{language},
+ format => 'HTML', path=>'UI');
$template->render($all_roles);
}
@@ -94,8 +94,8 @@ sub delete_group {
# in the template itself.
my $template = LedgerSMB::Template->new ( user=>$user,
- template=>'admin/delete_group.html', language=>$user->{language},
- format=>'html');
+ template=>'Admin/delete_group', language=>$user->{language},
+ format=>'HTML', path=>'UI');
$template->render($status);
}
@@ -115,8 +115,8 @@ sub delete_user {
# in the template itself.
my $template = LedgerSMB::Template->new ( user=>$user,
- template=>'admin/delete_user.html', language=>$user->{language},
- format=>'html');
+ template=>'Admin/delete_user', language=>$user->{language},
+ format=>'HTML', path=>'UI');
$template->render($status);
}
@@ -126,8 +126,8 @@ sub new_user {
my ($class, $request) = @_;
my $template = LedgerSMB::Template->new( user=>$user,
- template=>'admin/new_user.html', language=>$user->{language},
- format=>'html');
+ template=>'Admin/new_user', language=>$user->{language},
+ format=>'HTML', path=>'UI');
$template->render();
}
@@ -137,8 +137,8 @@ sub new_group {
my ($class, $request) = @_;
my $template = LedgerSMB::Template->new( user=>$user,
- template=>'admin/new_group.html', language=>$user->{language},
- format=>'html');
+ template=>'Admin/new_group', language=>$user->{language},
+ format=>'HTML', path=>'UI');
$template->render();
}
@@ -150,8 +150,8 @@ sub __default {
# check for login
my $template;
$template = LedgerSMB::Template->new( user=>$user,
- template=>'admin/main.html', language=>$user->{language},
- format=>'html');
+ template=>'Admin/main', language=>$user->{language},
+ format=>'HTML', path=>'UI');
$template->render();
}