From 475abdfcbaa5609ccbc480afa2ab1670574387fd Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Thu, 13 May 2010 08:50:15 -0700 Subject: Bug 555850: Make fields.html help on enter_bug happen when the user hovers over the fields r=timello, a=mkanat --- template/en/default/bug/create/create.html.tmpl | 107 ++++++++++++------------ 1 file changed, 54 insertions(+), 53 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 e983b611b..983f12bb9 100644 --- a/template/en/default/bug/create/create.html.tmpl +++ b/template/en/default/bug/create/create.html.tmpl @@ -214,10 +214,13 @@ TUI_hide_default('expert_fields'); [%# We can't use the select block in these two cases for various reasons. %] - - - Component: - + [% component_desc_url = BLOCK -%] + describecomponents.cgi?product=[% product.name FILTER url_quote %] + [% END %] + [% INCLUDE "bug/field-label.html.tmpl" + field = bug_fields.component editable = 1 required = 1 + desc_url = component_desc_url + %] [%- FOREACH v = version %] @@ -321,8 +325,7 @@ TUI_hide_default('expert_fields'); [% IF Param('usetargetmilestone') && Param('letsubmitterchoosemilestone') %] - [% sel = { description => 'Target Milestone', name => 'target_milestone' } %] - [% INCLUDE select %] + [% INCLUDE select field = bug_fields.target_milestone %] [% ELSE %]   [% END %] @@ -343,15 +346,10 @@ TUI_hide_default('expert_fields'); -[% IF bug_status.size <= 1 %] - - Initial State: - [% display_value("bug_status", default.bug_status) FILTER html %] -[% ELSE %] - [% sel = { description => 'Initial State', name => 'bug_status' } %] - [% INCLUDE select %] -[% END %] + [% INCLUDE bug/field.html.tmpl + bug = default, field = bug_fields.bug_status, + editable = (bug_status.size > 1), value = default.bug_status + override_legal_values = bug_status %]   [%# Calculate the number of rows we can use for flags %] @@ -382,7 +380,9 @@ TUI_hide_default('expert_fields'); - Assign To: + [% INCLUDE "bug/field-label.html.tmpl" + field = bug_fields.assigned_to editable = 1 + %] [% INCLUDE global/userselect.html.tmpl id => "assigned_to" @@ -399,8 +399,9 @@ TUI_hide_default('expert_fields'); [% IF Param("useqacontact") %] - - [%- field_descs.qa_contact FILTER html %]: + [% INCLUDE "bug/field-label.html.tmpl" + field = bug_fields.qa_contact editable = 1 + %] [% INCLUDE global/userselect.html.tmpl id => "qa_contact" @@ -417,8 +418,9 @@ TUI_hide_default('expert_fields'); [% END %] - - [%- field_descs.cc FILTER html %]: + [% INCLUDE "bug/field-label.html.tmpl" + field = bug_fields.cc editable = 1 + %] [% INCLUDE global/userselect.html.tmpl id => "cc" @@ -445,8 +447,9 @@ TUI_hide_default('expert_fields'); [% IF user.is_timetracker %] - Estimated - Hours: + [% INCLUDE "bug/field-label.html.tmpl" + field = bug_fields.estimated_time editable = 1 + %] @@ -464,8 +467,9 @@ TUI_hide_default('expert_fields'); [% IF Param("usebugaliases") %] - - [%- field_descs.alias FILTER html %]: + [% INCLUDE "bug/field-label.html.tmpl" + field = bug_fields.alias editable = 1 + %] @@ -473,8 +477,9 @@ TUI_hide_default('expert_fields'); [% END %] - - [%- field_descs.bug_file_loc FILTER html %]: + [% INCLUDE "bug/field-label.html.tmpl" + field = bug_fields.bug_file_loc editable = 1 + %] @@ -499,8 +504,9 @@ TUI_hide_default('expert_fields'); - - [%- field_descs.short_desc FILTER html %]: + [% INCLUDE "bug/field-label.html.tmpl" + field = bug_fields.short_desc editable = 1 required = 1 + %] - Keywords: + [% INCLUDE "bug/field-label.html.tmpl" + field = bug_fields.keywords editable = 1 + desc_url = "describekeywords.cgi" + %] (optional) @@ -599,15 +608,17 @@ TUI_hide_default('expert_fields'); [% END %] - - [%- field_descs.dependson FILTER html %]: + [% INCLUDE "bug/field-label.html.tmpl" + field = bug_fields.dependson editable = 1 + %] - - [%- field_descs.blocked FILTER html %]: + [% INCLUDE "bug/field-label.html.tmpl" + field = bug_fields.blocked editable = 1 + %] @@ -678,30 +689,20 @@ TUI_hide_default('expert_fields'); [%############################################################################%] [% BLOCK select %] - [% IF sel.description %] - - [% sel.description %]: - - [% END %] + [% INCLUDE "bug/field-label.html.tmpl" + field = field editable = 1 + %] - + [%- FOREACH x = ${field.name} %] [% END %] - - [% IF sel.name == "bug_status" %] - - [% END %] [% END %] -- cgit v1.2.3-24-g4f1b