Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=pyrzak, r=LpSolit, a=LpSolit
<tr>
<th>Privacy:</th>
<td>
- <em>If the attachment is private, check the box below.</em><br>
<input type="checkbox" name="isprivate" id="isprivate"
value="1" onClick="updateCommentPrivacy(this)">
- <label for="isprivate">Private</label>
+ <label for="isprivate">
+ Make attachment and comment private (visible only to members of
+ the <strong>[% Param('insidergroup') FILTER html %]</strong>
+ group)
+ </label>
</td>
</tr>
[% END %]
<input type="checkbox" id="isobsolete" name="isobsolete" value="1"
[%+ 'checked="checked"' IF attachment.isobsolete %]>
<label for="isobsolete">obsolete</label>
- [% IF (Param("insidergroup") && user.in_group(Param("insidergroup"))) %]
+ [% IF user.is_insider %]
+ <br>
<input type="checkbox" id="isprivate" name="isprivate" value="1"
[% " checked" IF attachment.isprivate %]>
- <label for="isprivate">private</label><br>
+ <label for="isprivate">private (only visible to
+ <strong>[% Param('insidergroup') FILTER html %]</strong>)
+ </label>
[% END %]
<br>
</small>
</td>
</tr>
- [% IF Param("insidergroup") && user.in_group(Param("insidergroup")) %]
+ [% IF user.is_insider %]
<tr class="expert_fields">
<th> </th>
<td colspan="3">
<input type="checkbox" id="commentprivacy" name="commentprivacy"
[% " checked=\"checked\"" IF commentprivacy %]>
<label for="commentprivacy">
- Initial Description is Private
+ Make description private (visible only to members of the
+ <strong>[% Param('insidergroup') FILTER html %]</strong> group)
</label>
</td>
</tr>
[% IF user.id %]
<table><tr><td>
<label for="comment" accesskey="c"><b>Additional <u>C</u>omments</b></label>:
- [% IF Param("insidergroup") && user.in_group(Param("insidergroup")) %]
+ [% IF user.is_insider %]
<input type="checkbox" name="commentprivacy" value="1"
id="newcommentprivacy"
onClick="updateCommentTagControl(this, form)">
- <label for="newcommentprivacy">Private</label>
+ <label for="newcommentprivacy">
+ Make comment private (visible only to members of the
+ <strong>[% Param('insidergroup') FILTER html %]</strong>
+ group)
+ </label>
[% END %]
<br>
[% INCLUDE global/textarea.html.tmpl
<input type="checkbox" name="commentprivacy" value="1"
id="newcommentprivacy"
onClick="updateCommentTagControl(this, form)"/>
- <label for="newcommentprivacy">Private</label>
+ <label for="newcommentprivacy">
+ Make comment private (visible only to members of the
+ <strong>[% Param('insidergroup') FILTER html %]</strong> group)
+ </label>
[% END %]
<br>
[% INCLUDE global/textarea.html.tmpl