summaryrefslogtreecommitdiffstats
path: root/template/en/default/bug/create/create.html.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/bug/create/create.html.tmpl')
-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>