Browse Source

Fixes to make all label/patron card templates uniform

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
3.0.x
Chris Nighswonger 16 years ago
committed by Joshua Ferraro
parent
commit
b5ce8cae5e
  1. 6
      koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tmpl
  2. 9
      koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-profiles.tmpl
  3. 10
      koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-templates.tmpl
  4. 13
      labels/label-profiles.pl

6
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-home.tmpl

@ -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>

9
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-profiles.tmpl

@ -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">

10
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-templates.tmpl

@ -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>

13
labels/label-profiles.pl

@ -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,
);

Loading…
Cancel
Save