summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug/create
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-10-11 23:44:25 +0200
committerDave Lawrence <dlawrence@mozilla.com>2013-10-11 23:44:25 +0200
commit0e52c06f2069cb5413abce39d6249bac73f045c8 (patch)
tree326576b9e20d428c8ddad006d29dd0bdd2b3f75d /template/en/default/bug/create
parent085a562c412b8bcdedf978821222f3b6585993e5 (diff)
downloadbugzilla-0e52c06f2069cb5413abce39d6249bac73f045c8.tar.gz
bugzilla-0e52c06f2069cb5413abce39d6249bac73f045c8.tar.xz
Bug 880829 - Migrate current custom field based tracking flags to the new Tracking Flags extension tables
r=glob
Diffstat (limited to 'template/en/default/bug/create')
-rw-r--r--template/en/default/bug/create/create.html.tmpl83
1 files changed, 12 insertions, 71 deletions
diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl
index 9deabac26..b357b3eb0 100644
--- a/template/en/default/bug/create/create.html.tmpl
+++ b/template/en/default/bug/create/create.html.tmpl
@@ -635,7 +635,7 @@ TUI_hide_default('attachment_text_field');
<tbody>
[%# non-tracking flags custom fields %]
-[% FOREACH field = Bugzilla.active_custom_fields(product=>product,type=>1) %]
+[% FOREACH field = Bugzilla.active_custom_fields(product=>product) %]
[% NEXT IF field.type == constants.FIELD_TYPE_EXTENSION %]
[% NEXT UNLESS field.enter_bug %]
[%# crash-signature gets custom handling %]
@@ -673,18 +673,6 @@ TUI_hide_default('attachment_text_field');
</tbody>
[% END %]
-[% old_tracking_flags = [] %]
-[% old_project_flags = [] %]
-[% FOREACH field = Bugzilla.active_custom_fields(product=>product,type=>2) %]
- [% NEXT IF field.type == constants.FIELD_TYPE_EXTENSION %]
- [% NEXT UNLESS field.enter_bug %]
- [% IF cf_is_project_flag(field.name) %]
- [% old_project_flags.push(field) %]
- [% ELSE %]
- [% old_tracking_flags.push(field) %]
- [% END %]
-[% END %]
-
[% display_flags = 0 %]
[% any_flags_requesteeble = 0 %]
[% FOREACH flag_type = product.flag_types.bug %]
@@ -693,7 +681,7 @@ TUI_hide_default('attachment_text_field');
[% LAST IF display_flags && any_flags_requesteeable %]
[% END %]
-[% IF old_project_flags.size || old_tracking_flags.size || display_flags %]
+[% IF tracking_flags.size || display_flags %]
<tbody class="expert_fields">
<tr>
<th>Flags:</th>
@@ -708,65 +696,18 @@ TUI_hide_default('attachment_text_field');
<fieldset>
<legend>Set [% terms.bug %] flags</legend>
-
- <table cellpadding="0" cellspacing="0">
- <tr>
- [% IF old_tracking_flags.size %]
- <td [% IF project_flags.size %]rowspan="2"[% END %]>
- <table class="tracking_flags">
- <tr>
- <th colspan="2" style="text-align:left">Tracking Flags:</th>
- </tr>
- [% FOREACH field = old_tracking_flags %]
- [% SET value = ${field.name}.defined ? ${field.name} : "" %]
- <tr>
- [% INCLUDE bug/field.html.tmpl
- bug = default
- field = field
- value = value
- editable = 1
- value_span = 3
- %]
- </tr>
- [% END %]
- [% Hook.process('tracking_flags_end') %]
- </table>
- </td>
- [% END %]
- [% IF old_project_flags.size %]
- <td>
- <table class="tracking_flags">
- <tr>
- <th colspan="2" style="text-align:left">Project Flags:</th>
- </tr>
- [% FOREACH field = old_project_flags %]
- [% SET value = ${field.name}.defined ? ${field.name} : "" %]
- <tr>
- [% INCLUDE bug/field.html.tmpl
- bug = default
- field = field
- value = value
- editable = 1
- value_span = 3
- %]
- </tr>
- [% END %]
- [% Hook.process('project_flags_end') %]
- </table>
- </td>
- </tr>
+ <table>
<tr>
- [% END %]
- [% IF display_flags %]
- <td>
- [% PROCESS "flag/list.html.tmpl" flag_types = product.flag_types.bug
- any_flags_requesteeble = any_flags_requesteeble
- flag_table_id = "bug_flags"
- %]
- </td>
- [% END %]
+ [% Hook.process('bug_flags') %]
+ [% IF display_flags %]
+ <td>
+ [% PROCESS "flag/list.html.tmpl" flag_types = product.flag_types.bug
+ any_flags_requesteeble = any_flags_requesteeble
+ flag_table_id = "bug_flags"
+ %]
+ </td>
+ [% END %]
</tr>
- [% Hook.process('bug_flags_end') %]
</table>
</fieldset>
</div>