Commit 95b16ee9 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 465930: Some fields have no description in the user auto-completion form -…

Bug 465930: Some fields have no description in the user auto-completion form - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
parent efa03357
...@@ -38,6 +38,22 @@ ...@@ -38,6 +38,22 @@
[%# use the global field descs %] [%# use the global field descs %]
[% PROCESS "global/field-descs.none.tmpl" %] [% PROCESS "global/field-descs.none.tmpl" %]
[%# This lists fields which use the user auto-completion feature and which
# are not listed in field_descs. %]
[% field_labels = { # Used by editcomponents.cgi
"initialcc" => "Default CC List",
"initialowner" => "Default Assignee",
"initialqacontact" => "Default QA Contact",
# Used by process_bug.cgi
"masscc" => "CC List",
# Used by request.cgi
"requester" => "Requester",
"requestee" => "Requestee",
# Used by userprefs.cgi
"new_watchedusers" => "Watch List",
}
%]
[% IF matchsuccess == 1 %] [% IF matchsuccess == 1 %]
[% PROCESS global/header.html.tmpl title="Confirm Match" %] [% PROCESS global/header.html.tmpl title="Confirm Match" %]
...@@ -169,14 +185,12 @@ ...@@ -169,14 +185,12 @@
[% BLOCK field_names %] [% BLOCK field_names %]
[% IF field_descs.${field_name} %] [% IF field_descs.$field_name %]
[% field_descs.${field_name} FILTER html -%] [% field_descs.$field_name FILTER html %]
[% ELSIF field_labels.$field_name %]
[%-# ELSIF for things that don't belong in the field_descs hash here -%] [% field_labels.$field_name FILTER html %]
[% ELSIF field_name.match("^requestee") %] [% ELSIF field_name.match("^requestee") %]
[% fields.${field_name}.flag_type.name %] requestee [% fields.${field_name}.flag_type.name %] requestee
[% ELSE %] [% ELSE %]
[% field_name FILTER html %] [% field_name FILTER html %]
[% END %] [% END %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment