diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2008-11-11 14:44:41 -0500 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2008-11-11 14:44:41 -0500 |
commit | 706e49c61ad60d9dd0f87c42e3318ab958f51c48 (patch) | |
tree | 57be4647369835b1065e5e73ec32d22876712795 /webui_templates/image_edit.tmpl | |
parent | 0874b9743af68692691bbc70aa158b041584e453 (diff) | |
download | cobbler-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.tmpl | 11 |
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> |