Patch by Dave Lawrence <dkl@redhat.com> - r/a=LpSolit
}
}
+function updateCommentTagControl(checkbox, form) {
+ if (checkbox.checked) {
+ form.comment.className='bz_private';
+ } else {
+ form.comment.className='';
+ }
+}
+
/**
* Says that a field should only be displayed when another field has
* a certain value. May only be called after the controller has already
[% END %]
- function updateCommentTagControl(checkbox, form) {
- if (checkbox.checked) {
- form.comment.className='bz_private';
- } else {
- form.comment.className='';
- }
- }
-
//-->
</script>
</table>
-<b><label for="comment">Additional Comments:</label></b><br>
+<b><label for="comment">Additional Comments:</label></b>
+[% IF user.is_insider %]
+ <input type="checkbox" name="commentprivacy" value="1"
+ id="newcommentprivacy"
+ onClick="updateCommentTagControl(this, form)"/>
+ <label for="newcommentprivacy">Private</label>
+[% END %]
+<br>
[% INCLUDE global/textarea.html.tmpl
name = 'comment'
id = 'comment'