Fixes to make all label/patron card templates uniform

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
This commit is contained in:
Chris Nighswonger 2008-03-26 09:43:34 -04:00 committed by Joshua Ferraro
parent 88c9c3fbeb
commit b5ce8cae5e
4 changed files with 29 additions and 9 deletions

View File

@ -16,11 +16,10 @@
<!-- TMPL_INCLUDE NAME="tools-labels-toolbar.inc" -->
<!-- TMPL_IF NAME="layout_loop" -->
<div class="yui-gc">
<div class="yui-g">
<div class="yui-u first">
<form name="input" action="/cgi-bin/koha/labels/label-manager.pl" method="get">
<fieldset>
<legend>Set Active Layout</legend>
<h2>Set Active Layout</h2>
<table>
<tr>
@ -58,7 +57,6 @@
<!-- /TMPL_LOOP -->
</table>
</fieldset>
<fieldset class="action">
<input type="submit" value="Save" />
<input type="hidden" name="op" value="set_active_layout" /></fieldset>

View File

@ -30,6 +30,8 @@ function confirm_deletion(prof_id) {
<!-- TMPL_INCLUDE NAME="tools-labels-toolbar.inc" -->
<div class="yui-g">
<div class="yui-u first">
<h2>Printer Profiles</h2>
<form name="input" action="/cgi-bin/koha/labels/label-profiles.pl" method="get">
<!-- TMPL_IF NAME="resultsloop" -->
@ -82,8 +84,11 @@ function confirm_deletion(prof_id) {
No Printer Profiles currently defined.
</form>
<!-- /TMPL_IF -->
</div>
<div class="yui-u">
<!-- TMPL_INCLUDE NAME="label-status.inc" -->
</div>
</div>
</div>
</div>
<div class="yui-b">

View File

@ -12,9 +12,9 @@
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<!-- TMPL_INCLUDE NAME="tools-labels-toolbar.inc" -->
<!-- TMPL_INCLUDE NAME="label-status.inc" -->
<div class="yui-g">
<div class="yui-u first">
<!-- TMPL_IF NAME="resultsloop" -->
<h2>Templates</h2>
@ -59,7 +59,11 @@
</form>
<!-- /TMPL_IF -->
</div>
<div class="yui-u">
<!-- TMPL_INCLUDE NAME="label-status.inc" -->
</div>
</div>
</div>
</div>

View File

@ -23,6 +23,15 @@ my $prof_id = $query->param('prof_id');
#my $creep_horz = $query->param('creep_horz');
#my $creep_vert = $query->param('creep_vert');
# little block for displaying active layout/template/batch in templates
# ----------
my $batch_id = $query->param('batch_id');
my $active_layout = get_active_layout();
my $active_template = GetActiveLabelTemplate();
my $active_layout_name = $active_layout->{'layoutname'};
my $active_template_name = $active_template->{'tmpl_code'};
# ----------
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "labels/label-profiles.tmpl",
@ -44,6 +53,10 @@ if ( $op eq 'delete' ) {
@resultsloop = GetAllPrinterProfiles();
$template->param(
batch_id => $batch_id,
active_layout_name => $active_layout_name,
active_template_name => $active_template_name,
resultsloop => \@resultsloop,
);