summaryrefslogtreecommitdiffstats
path: root/template/en/default/attachment/create.html.tmpl
diff options
context:
space:
mode:
authorReed Loden <reed@reedloden.com>2012-06-26 17:20:26 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2012-06-26 17:20:26 +0200
commit5b3ea4d476084d47c99e3d2e9d409fea84c16831 (patch)
tree88588a72c98dfc3cfdc3e4b37b196c3f48d31da6 /template/en/default/attachment/create.html.tmpl
parenta4ef21ac8165538bf9cfe7adb7272fda4cece5d6 (diff)
downloadbugzilla-5b3ea4d476084d47c99e3d2e9d409fea84c16831.tar.gz
bugzilla-5b3ea4d476084d47c99e3d2e9d409fea84c16831.tar.xz
Bug 138546: Add a checkbox to add himself to the CC list when creating or editing an attachment
r/a=LpSolit
Diffstat (limited to 'template/en/default/attachment/create.html.tmpl')
-rw-r--r--template/en/default/attachment/create.html.tmpl9
1 files changed, 9 insertions, 0 deletions
diff --git a/template/en/default/attachment/create.html.tmpl b/template/en/default/attachment/create.html.tmpl
index 97408deac..8f5477e23 100644
--- a/template/en/default/attachment/create.html.tmpl
+++ b/template/en/default/attachment/create.html.tmpl
@@ -92,6 +92,15 @@ TUI_hide_default('attachment_text_field');
cols = constants.COMMENT_COLS
wrap = 'soft'
%]
+ [% IF NOT bug.cc || NOT bug.cc.contains(user.login) %]
+ <br>
+ <input type="checkbox" id="addselfcc" name="addselfcc"
+ [%~ ' checked="checked"'
+ IF user.settings.state_addselfcc.value == 'always'
+ || (!bug.user.has_any_role
+ && user.settings.state_addselfcc.value == 'cc_unless_role') %]>
+ <label for="addselfcc">Add me to CC list</label>
+ [% END %]
</td>
</tr>
[% IF user.is_insider %]