kohabug 2164 - display of guarantor relationship
authorGalen Charlton <galen.charlton@liblime.com>
Wed, 28 May 2008 17:08:47 +0000 (12:08 -0500)
committerJoshua Ferraro <jmf@liblime.com>
Thu, 29 May 2008 12:06:44 +0000 (07:06 -0500)
When editing a child or professional patron, display
the drop-down of relationship types only if at least
one relationship type is defined by the borrowerRelationship
syspref.

Signed-off-by: Joshua Ferraro <jmf@liblime.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tmpl

index 4a3508d..75fbae4 100644 (file)
     <!--/TMPL_UNLESS-->
 <!--TMPL_IF Name="showguarantor"--><input type="hidden" name="guarantorid"   value="<!-- TMPL_VAR NAME="guarantorid" -->" />
   <li><label for="">Guarantor: </label>
+  <!-- TMPL_IF name="relshiploop" -->
   <select name="relationship" id="relationship" >
     <!-- TMPL_LOOP name="relshiploop" -->
         <!-- TMPL_IF name="selected" -->
         <!-- /TMPL_IF -->
     <!-- /TMPL_LOOP -->
     </select>
+  <!-- /TMPL_IF -->
   <input name="contactname" id="contactname" type="text"  size="20" value="<!-- TMPL_VAR NAME="contactname" -->" />
   <input name="contactfirstname" id="contactfirstname" type="text"  size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->" />
   <!-- TMPL_IF NAME="guarantorid"-->