Commit 316c3b70 authored by Dave Lawrence's avatar Dave Lawrence

Bug 975112 - Add the "Preview" mode for "Optional Comment" in the Create New Attachement page

r=glob,a=justdave
parent d0308956
...@@ -84,13 +84,11 @@ TUI_hide_default('attachment_text_field'); ...@@ -84,13 +84,11 @@ TUI_hide_default('attachment_text_field');
<th><label for="comment">Comment:</label></th> <th><label for="comment">Comment:</label></th>
<td> <td>
<em>(optional) Add a comment about this attachment to the [% terms.bug %].</em><br> <em>(optional) Add a comment about this attachment to the [% terms.bug %].</em><br>
[% INCLUDE global/textarea.html.tmpl [% INCLUDE bug/comment.html.tmpl
name = 'comment' minrows = 6
id = 'comment' maxrows = 15
minrows = 6 cols = constants.COMMENT_COLS
maxrows = 15 wrap = 'soft'
cols = constants.COMMENT_COLS
wrap = 'soft'
%] %]
[% IF NOT bug.cc.contains(user.login) %] [% IF NOT bug.cc.contains(user.login) %]
<br> <br>
......
...@@ -247,13 +247,12 @@ ...@@ -247,13 +247,12 @@
<label for="comment">Comment (on the [% terms.bug %]):</label> <label for="comment">Comment (on the [% terms.bug %]):</label>
[% classNames = 'block' %] [% classNames = 'block' %]
[% classNames = "$classes bz_private" IF attachment.isprivate %] [% classNames = "$classes bz_private" IF attachment.isprivate %]
[% INCLUDE global/textarea.html.tmpl [% INCLUDE bug/comment.html.tmpl
id = 'comment' bug = attachment.bug
name = 'comment' minrows = 10
minrows = 10 cols = 80
cols = 80 classes = classNames
wrap = 'soft' wrap = 'soft'
classes = classNames
%] %]
[% IF NOT attachment.bug.cc.contains(user.login) %] [% IF NOT attachment.bug.cc.contains(user.login) %]
<input type="checkbox" id="addselfcc" name="addselfcc" <input type="checkbox" id="addselfcc" name="addselfcc"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment