From 304df9d6e97140b7a717176302be5d407266b03d Mon Sep 17 00:00:00 2001 From: Dave Lawrence Date: Fri, 6 Apr 2012 18:08:10 -0400 Subject: Bug 738104 - Need a Project "flag" in bugzilla r=gerv --- template/en/default/bug/create/create.html.tmpl | 36 ++++++++++++++++++++----- 1 file changed, 29 insertions(+), 7 deletions(-) (limited to 'template/en/default/bug/create') diff --git a/template/en/default/bug/create/create.html.tmpl b/template/en/default/bug/create/create.html.tmpl index 32f39a3c5..b52657147 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -670,11 +670,15 @@ TUI_hide_default('attachment_text_field'); [% END %] -[% display_bug_flags = 0 %] +[% tracking_flags = [] %] +[% project_flags = [] %] [% FOREACH field = Bugzilla.active_custom_fields(product=>product,type=>2) %] [% NEXT UNLESS field.enter_bug %] - [% display_bug_flags = 1 %] - [% LAST %] + [% IF cf_is_project_flag(field.name) %] + [% project_flags.push(field) %] + [% ELSE %] + [% tracking_flags.push(field) %] + [% END %] [% END %] [% display_flags = 0 %] @@ -685,7 +689,7 @@ TUI_hide_default('attachment_text_field'); [% LAST IF display_flags && any_flags_requesteeable %] [% END %] -[% IF display_bug_flags || display_flags %] +[% IF project_flags.size || tracking_flags.size || display_flags %] Flags: @@ -703,15 +707,33 @@ TUI_hide_default('attachment_text_field'); - [% IF display_bug_flags %] + [% IF project_flags.size %] + + [% END %] + [% IF tracking_flags.size %]
+ + + + + + [% FOREACH field = project_flags %] + [% SET value = ${field.name}.defined ? ${field.name} : "" %] + + [% INCLUDE bug/field.html.tmpl + bug = default, field = field, value = value, editable = 1, + value_span = 3 %] + + [% END %] + +
Project Flags:
+
- [% FOREACH field = Bugzilla.active_custom_fields(product=>product,type=>2) %] - [% NEXT UNLESS field.enter_bug %] + [% FOREACH field = tracking_flags %] [% SET value = ${field.name}.defined ? ${field.name} : "" %] [% INCLUDE bug/field.html.tmpl -- cgit v1.2.3-24-g4f1b
Tracking Flags: