Bug 8431 follow-up : |html_line_break in 2 tempates
authorPaul Poulain <paul.poulain@biblibre.com>
Thu, 13 Sep 2012 09:22:58 +0000 (11:22 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Thu, 13 Sep 2012 09:22:58 +0000 (11:22 +0200)
if the attribute is in more than 1 line, we must add |html_line_break to display it properly

Doing that in member details (staff & opac)

koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tt

index 11bb33f..a5530b3 100644 (file)
@@ -302,7 +302,7 @@ function validate1(date) {
                 [% IF ( item.value_description ) %]
                     [% item.value_description %]
                 [% ELSE %]
-                    [% item.value %]
+                    [% item.value| html_line_break %]
                 [% END %]
             </li>
         [% END %]
index b903e4d..82cfaa2 100644 (file)
@@ -89,9 +89,9 @@
     [% FOREACH patron_attribute IN BORROWER_INF.patron_attributes %]
         <li><label>[% patron_attribute.description %]</label>
         [% IF ( patron_attribute.value_description ) %]
-            <input type="text"  disabled="disabled" readonly="readonly" value="[% patron_attribute.value_description %]" />
+            [% patron_attribute.value_description %]"
         [% ELSE %]
-            <input type="text"  disabled="disabled" readonly="readonly" value="[% patron_attribute.value %]" />
+            [% patron_attribute.value |html_line_break %]
         [% END %]
         </li>
     [% END %]