summaryrefslogtreecommitdiffstats
path: root/webui_templates/image_edit.tmpl
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-11-11 14:44:41 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-11-11 14:44:41 -0500
commit706e49c61ad60d9dd0f87c42e3318ab958f51c48 (patch)
tree57be4647369835b1065e5e73ec32d22876712795 /webui_templates/image_edit.tmpl
parent0874b9743af68692691bbc70aa158b041584e453 (diff)
downloadcobbler-706e49c61ad60d9dd0f87c42e3318ab958f51c48.tar.gz
cobbler-706e49c61ad60d9dd0f87c42e3318ab958f51c48.tar.xz
cobbler-706e49c61ad60d9dd0f87c42e3318ab958f51c48.zip
Eliminate introduction of extra spaces around the comment field in the webapp.
Diffstat (limited to 'webui_templates/image_edit.tmpl')
-rw-r--r--webui_templates/image_edit.tmpl11
1 files changed, 6 insertions, 5 deletions
diff --git a/webui_templates/image_edit.tmpl b/webui_templates/image_edit.tmpl
index 98b9252f..b34fb568 100644
--- a/webui_templates/image_edit.tmpl
+++ b/webui_templates/image_edit.tmpl
@@ -97,11 +97,12 @@ function disablename(value)
<label for="comment">Comment</label>
</td>
<td>
- <textarea rows="5" cols="30" 400px;" name="comment" id="comment">
-#if $image
-$image.comment
-#end if
- </textarea>
+ #if $image
+ #set $comm = $image.comment
+ #else
+ #set $comm = ""
+ #end if
+ <textarea rows="5" cols="30" 400px;" name="comment" id="comment">$comm</textarea>
<p class="context-tip">This is a free-form description field</p>
</td>
</tr>