summaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-02-22 23:25:24 +0100
committerlpsolit%gmail.com <>2006-02-22 23:25:24 +0100
commit947e78213b1a987b483a9c29f3436dc15a80d6e0 (patch)
treeb4804b91f751265bdc15cc78289404ad7aea6f04 /template/en/default/attachment
parentb3cdb97bbfa7fa359d30267530dbc6f213ba33c3 (diff)
downloadbugzilla-947e78213b1a987b483a9c29f3436dc15a80d6e0.tar.gz
bugzilla-947e78213b1a987b483a9c29f3436dc15a80d6e0.tar.xz
Bug 291459: Make textareas zoom large when in use - Patch by Marc Schumann <wurblzap@gmail.com> r=vladd a=justdave
Diffstat (limited to 'template/en/default/attachment')
-rw-r--r--template/en/default/attachment/create.html.tmpl9
-rw-r--r--template/en/default/attachment/edit.html.tmpl26
2 files changed, 29 insertions, 6 deletions
diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl
index c3ef855d4..4de1e5a08 100644
--- a/template/en/default/attachment/create.html.tmpl
+++ b/template/en/default/attachment/create.html.tmpl
@@ -237,7 +237,14 @@
<th><label for="comment">Comment:</label></th>
<td>
<em>(optional) Add a comment about this attachment to the [% terms.bug %].</em><br>
- <textarea wrap="soft" id="commment" name="comment" rows="6" cols="80"></textarea>
+ [% INCLUDE global/textarea.html.tmpl
+ name = 'comment'
+ id = 'comment'
+ minrows = 6
+ maxrows = 15
+ cols = 80
+ wrap = 'soft'
+ %]
</td>
</tr>
<tr>
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl
index eefe141f8..53eb44d9e 100644
--- a/template/en/default/attachment/edit.html.tmpl
+++ b/template/en/default/attachment/edit.html.tmpl
@@ -212,8 +212,13 @@
<td width="25%">
<small>
<b>Description:</b><br>
- <textarea rows="3" cols="25" name="description" wrap="soft">
- [%- attachment.description FILTER html %]</textarea><br>
+ [% INCLUDE global/textarea.html.tmpl
+ name = 'description'
+ minrows = 3
+ cols = 25
+ wrap = 'soft'
+ defaultcontent = attachment.description
+ %]<br>
[% IF attachment.isurl %]
<input type="hidden" name="filename"
@@ -250,7 +255,12 @@
<div id="smallCommentFrame">
<b>Comment (on the [% terms.bug %]):</b><br>
- <textarea name="comment" rows="5" cols="25" wrap="soft"></textarea><br>
+ [% INCLUDE global/textarea.html.tmpl
+ name = 'comment'
+ minrows = 5
+ cols = 25
+ wrap = 'soft'
+ %]<br>
</div>
<input type="submit" value="Submit"><br><br>
@@ -264,8 +274,14 @@
[% IF isviewable %]
<td width="75%">
- <textarea id="editFrame" name="comment" wrap="soft" cols="80"
- style="height: 400px; width: 100%; display: none;"></textarea>
+ [% INCLUDE global/textarea.html.tmpl
+ id = 'editFrame'
+ name = 'comment'
+ style = 'height: 400px; width: 100%; display: none'
+ minrows = 10
+ cols = 80
+ wrap = 'soft'
+ %]
<iframe id="viewFrame" src="attachment.cgi?id=[% attachment.id %]" style="height: 400px; width: 100%;">
<b>You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
<a href="attachment.cgi?id=[% attachment.id %]">View the attachment on a separate page</a>.</b>