[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
SF.net SVN: ledger-smb: [1625] trunk
- Subject: SF.net SVN: ledger-smb: [1625] trunk
- From: ..hidden..
- Date: Mon, 17 Sep 2007 13:00:07 -0700
Revision: 1625
http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1625&view=rev
Author: aurynn_cmd
Date: 2007-09-17 13:00:05 -0700 (Mon, 17 Sep 2007)
Log Message:
-----------
New admin main.html template and initial controller code working.
Modified Paths:
--------------
trunk/UI/Admin/main.html
trunk/scripts/admin.pl
Modified: trunk/UI/Admin/main.html
===================================================================
--- trunk/UI/Admin/main.html 2007-09-17 18:01:50 UTC (rev 1624)
+++ trunk/UI/Admin/main.html 2007-09-17 20:00:05 UTC (rev 1625)
@@ -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
Modified: trunk/scripts/admin.pl
===================================================================
--- trunk/scripts/admin.pl 2007-09-17 18:01:50 UTC (rev 1624)
+++ trunk/scripts/admin.pl 2007-09-17 20:00:05 UTC (rev 1625)
@@ -20,15 +20,15 @@
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 @@
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 @@
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 @@
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 @@
# 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 @@
# 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 @@
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 @@
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 @@
# 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();
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.