Mehrzeilige Beschreibungen von Projekten in mehrzeiligem Textarea anzeigen.
authorSven Donath <lxo@dexo.de>
Tue, 14 Feb 2012 21:28:41 +0000 (22:28 +0100)
committerSven Donath <lxo@dexo.de>
Tue, 14 Feb 2012 21:28:41 +0000 (22:28 +0100)
templates/webpages/projects/project_form.html

index ad19c13..bd79216 100644 (file)
@@ -37,7 +37,7 @@
       <td>
        [%- SET rows = LxERP.numtextrows(project.description, 60) %]
        [%- IF rows > 1 %]
-       <textarea name="project.description" rows="rows" cols="60" style="width: 100%" wrap="soft">[% HTML.escape(project.description) %]</textarea>
+       <textarea name="project.description" rows="[% rows %]" cols="60" style="width: 100%" wrap="soft">[% HTML.escape(project.description) %]</textarea>
        [%- ELSE %]
        <input name="project.description" size="60" value="[% HTML.escape(project.description) %]">
        [%- END %]