Corrections to Printer Profiles template to handle no profiles case.
authorChris Nighswonger <cnighswonger@foundations.edu>
Fri, 15 Feb 2008 18:54:53 +0000 (07:54 +1300)
committerJoshua Ferraro <jmf@liblime.com>
Sat, 16 Feb 2008 17:26:43 +0000 (11:26 -0600)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-profiles.tmpl

index 4051beb..2b4a8a2 100644 (file)
@@ -30,9 +30,9 @@ function confirm_deletion(prof_id) {
 
 <!-- TMPL_INCLUDE NAME="tools-labels-toolbar.inc" -->
 
-<!-- TMPL_IF NAME="resultsloop" -->
 <h2>Printer Profiles</h2>
 <form name="input" action="/cgi-bin/koha/labels/label-profiles.pl" method="get">
+<!-- TMPL_IF NAME="resultsloop" -->
 <table>
 <tr>
         <th>Printer Name</th>
@@ -78,6 +78,9 @@ function confirm_deletion(prof_id) {
 <!-- /TMPL_LOOP -->
 </table>
 </form>
+<!-- TMPL_ELSE -->
+No Printer Profiles currently defined.
+</form>
 <!-- /TMPL_IF -->