]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 975112 - Add the "Preview" mode for "Optional Comment" in the Create New Attachem...
authorDave Lawrence <dlawrence@mozilla.com>
Fri, 28 Feb 2014 05:34:15 +0000 (05:34 +0000)
committerDave Lawrence <dlawrence@mozilla.com>
Fri, 28 Feb 2014 05:34:15 +0000 (05:34 +0000)
r=glob,a=justdave

template/en/default/attachment/create.html.tmpl
template/en/default/attachment/edit.html.tmpl

index 5c2384d51093e3f65dd97d7858c934636f29f97c..739851f8709023bcae7cdf776a7c190dbc6a4211 100644 (file)
@@ -84,13 +84,11 @@ TUI_hide_default('attachment_text_field');
       <th><label for="comment">Comment:</label></th>
       <td>
         <em>(optional) Add a comment about this attachment to the [% terms.bug %].</em><br>
-        [% INCLUDE global/textarea.html.tmpl
-          name    = 'comment'
-          id      = 'comment'
-          minrows = 6
-          maxrows = 15
-          cols    = constants.COMMENT_COLS
-          wrap    = 'soft'
+        [% INCLUDE bug/comment.html.tmpl
+           minrows = 6
+           maxrows = 15
+           cols    = constants.COMMENT_COLS
+           wrap    = 'soft'
         %]
         [% IF NOT bug.cc.contains(user.login) %]
           <br>
index 54c7e07fbeb418aa08b614a89e4a932a3a60f73d..283ca3676877d719dd07c1dd3a32b1d1f3964341 100644 (file)
             <label for="comment">Comment (on the [% terms.bug %]):</label>
             [% classNames = 'block' %]
             [% classNames = "$classes bz_private" IF attachment.isprivate %]
-            [% INCLUDE global/textarea.html.tmpl
-              id      = 'comment'
-              name    = 'comment'
-              minrows = 10
-              cols    = 80
-              wrap    = 'soft'
-              classes = classNames
+            [% INCLUDE bug/comment.html.tmpl
+               bug     = attachment.bug
+               minrows = 10
+               cols    = 80
+               classes = classNames
+               wrap    = 'soft'
             %]
             [% IF NOT attachment.bug.cc.contains(user.login) %]
               <input type="checkbox" id="addselfcc" name="addselfcc"