diff options
author | lpsolit%gmail.com <> | 2006-09-09 08:11:40 +0200 |
---|---|---|
committer | lpsolit%gmail.com <> | 2006-09-09 08:11:40 +0200 |
commit | a806b298f5bfe5914f27a1419d27366fe59da449 (patch) | |
tree | 25d737aeb60f17360de9a67f2017369a4d5d8349 /template/en/default/global | |
parent | 27c1be36a3cbc57e01c8d51af85be76b0748ece6 (diff) | |
download | bugzilla-a806b298f5bfe5914f27a1419d27366fe59da449.tar.gz bugzilla-a806b298f5bfe5914f27a1419d27366fe59da449.tar.xz |
Bug 287326: Ability to add custom single-select fields to a bug - Patch by Frédéric Buclin <LpSolit@gmail.com> and Max Kanat-Alexander <mkanat@bugzilla.org> r=mkanat a=myk
Diffstat (limited to 'template/en/default/global')
-rw-r--r-- | template/en/default/global/code-error.html.tmpl | 4 | ||||
-rw-r--r-- | template/en/default/global/field-descs.none.tmpl | 4 | ||||
-rw-r--r-- | template/en/default/global/user-error.html.tmpl | 5 |
3 files changed, 13 insertions, 0 deletions
diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl index 9c504b827..b0d7fcda8 100644 --- a/template/en/default/global/code-error.html.tmpl +++ b/template/en/default/global/code-error.html.tmpl @@ -170,6 +170,10 @@ The custom sort order specified in your form submission contains an invalid column name <em>[% fragment FILTER html %]</em>. + [% ELSIF error == "invalid_customfield_type" %] + [% title = "Invalid Field Type" %] + The type <em>[% type FILTER html %]</em> is not a valid field type. + [% ELSIF error == "invalid_dimensions" %] [% title = "Invalid Dimensions" %] The width or height specified is not a positive integer. diff --git a/template/en/default/global/field-descs.none.tmpl b/template/en/default/global/field-descs.none.tmpl index 254bfef1d..94ba948d6 100644 --- a/template/en/default/global/field-descs.none.tmpl +++ b/template/en/default/global/field-descs.none.tmpl @@ -80,6 +80,10 @@ IF !field_descs.${bz_field.name}.defined %] [% END %] +[% field_types = { ${constants.FIELD_TYPE_UNKNOWN} => "Unknown Type", + ${constants.FIELD_TYPE_FREETEXT} => "Free Text", + ${constants.FIELD_TYPE_SINGLE_SELECT} => "Drop Down" } %] + [% status_descs = { "UNCONFIRMED" => "UNCONFIRMED", "NEW" => "NEW", "ASSIGNED" => "ASSIGNED", diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 9a0d04555..a9706376b 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -314,6 +314,11 @@ The field '[% field.name FILTER html %]' ([% field.description FILTER html %]) already exists. Please choose another name. + [% ELSIF error == "customfield_invalid_name" %] + [% title = "Invalid Custom Field Name" %] + '[% name FILTER html %]' is not a valid name for a custom field. + A name may contain only letters, numbers, and the underscore character. + [% ELSIF error == "customfield_nonexistent" %] [% title = "Unknown Custom Field" %] There is no custom field with the name '[% name FILTER html %]'. |