From 4e4bfa3f76d565dd27b4d1a8903430b7c0b14140 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Wed, 30 May 2007 19:08:10 +0000 Subject: Bug 369987: Display real field names in editvalues.cgi - Patch by Frédéric Buclin r=ghendricks a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/fieldvalues/confirm-delete.html.tmpl | 26 ++++++++++++---------- .../en/default/admin/fieldvalues/create.html.tmpl | 15 ++++++++----- .../en/default/admin/fieldvalues/created.html.tmpl | 14 +++++++----- .../en/default/admin/fieldvalues/deleted.html.tmpl | 8 ++++--- .../en/default/admin/fieldvalues/edit.html.tmpl | 10 +++++---- .../en/default/admin/fieldvalues/footer.html.tmpl | 13 +++++------ .../en/default/admin/fieldvalues/list.html.tmpl | 10 ++++----- .../en/default/admin/fieldvalues/updated.html.tmpl | 8 ++++--- template/en/default/global/user-error.html.tmpl | 8 +++---- 9 files changed, 62 insertions(+), 50 deletions(-) (limited to 'template') diff --git a/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl b/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl index 4cd001476..c5baf3658 100644 --- a/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl +++ b/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl @@ -19,13 +19,15 @@ # bug_count: number; The number of bugs that have this field value. # value_count: number; The number of values left for this field, including # this value. - # field: string; The name of the field. + # field: object; the field the value is being deleted from. # param_name: string; The name of the parameter (defaultxxx) associated # with the field. #%] -[% title = BLOCK %]Delete Value '[% value FILTER html %]' from the - '[% field FILTER html %]' field[% END %] +[% title = BLOCK %] + Delete Value '[% value FILTER html %]' from the '[% field.description FILTER html %]' + ([% field.name FILTER html %]) field +[% END %] [% PROCESS global/header.html.tmpl title = title @@ -39,7 +41,7 @@ Field Name: - [% field FILTER html %] + [% field.description FILTER html %] Field Value: @@ -49,9 +51,9 @@ [% terms.Bugs %]: [% IF bug_count %] - [% bug_count FILTER html %] + href="buglist.cgi?[% field.name FILTER url_quote %]=[%- value FILTER url_quote %]">[% bug_count FILTER html %] [% ELSE %] None [% END %] @@ -64,12 +66,12 @@ [% IF (param_name.defined && Param(param_name) == value) || bug_count || (value_count == 1) %]

Sorry, but the '[% value FILTER html %]' value cannot be deleted - from the '[% field FILTER html %]' field for the following reason(s):

+ from the '[% field.description FILTER html %]' field for the following reason(s):

@@ -109,7 +111,7 @@
- +
diff --git a/template/en/default/admin/fieldvalues/create.html.tmpl b/template/en/default/admin/fieldvalues/create.html.tmpl index 29bf85778..9a0ac993e 100644 --- a/template/en/default/admin/fieldvalues/create.html.tmpl +++ b/template/en/default/admin/fieldvalues/create.html.tmpl @@ -15,17 +15,20 @@ #%] [%# INTERFACE: - # field: string; name of the field the value is being created for + # field: object; the field the value is being created for #%] -[% title = BLOCK %]Add Value for the '[% field FILTER html %]' field[% END %] -[% subheader = BLOCK %]This page allows you to add a new value for the - '[% field FILTER html %]' field.[% END %] +[% title = BLOCK %] + Add Value for the '[% field.description FILTER html %]' ([% field.name FILTER html %]) field +[% END %] [% PROCESS global/header.html.tmpl title = title - subheader = subheader %] +

+ This page allows you to add a new value for the '[% field.description FILTER html %]' field. +

+
@@ -41,7 +44,7 @@
- +
diff --git a/template/en/default/admin/fieldvalues/created.html.tmpl b/template/en/default/admin/fieldvalues/created.html.tmpl index 218477103..b3d60f081 100644 --- a/template/en/default/admin/fieldvalues/created.html.tmpl +++ b/template/en/default/admin/fieldvalues/created.html.tmpl @@ -16,21 +16,23 @@ [%# INTERFACE: # value: string; the name of the newly created field value - # field: string; the name of the field the value belongs to + # field: object; the field the value belongs to #%] -[% title = BLOCK %]New Value '[% value FILTER html %]' added to - '[% field FILTER html %]' field[% END %] +[% title = BLOCK %] + New Value '[% value FILTER html %]' added to '[% field.description FILTER html %]' + ([% field.name FILTER html %]) field +[% END %] [% PROCESS global/header.html.tmpl title = title %]

The value ' + [%- field.name FILTER url_quote %]&value=[% value FILTER url_quote %]"> [%- value FILTER html %]' has been added as a valid choice for - the '[% field FILTER html %]' field.

+ the '[% field.description FILTER html %]' field.

[% PROCESS admin/fieldvalues/footer.html.tmpl %] diff --git a/template/en/default/admin/fieldvalues/deleted.html.tmpl b/template/en/default/admin/fieldvalues/deleted.html.tmpl index c966897f6..421080011 100644 --- a/template/en/default/admin/fieldvalues/deleted.html.tmpl +++ b/template/en/default/admin/fieldvalues/deleted.html.tmpl @@ -17,12 +17,14 @@ [%# INTERFACE: # value: string; the field value that was deleted. # - # field: string; the field the value was deleted from. + # field: object; the field the value was deleted from. # #%] -[% title = BLOCK %]Deleted Value '[% value FILTER html %]' for the - '[% field FILTER html %]' Field[% END %] +[% title = BLOCK %] + Deleted Value '[% value FILTER html %]' for the '[% field.description FILTER html %]' + ([% field.name FILTER html %]) Field +[% END %] [% PROCESS global/header.html.tmpl title = title %] diff --git a/template/en/default/admin/fieldvalues/edit.html.tmpl b/template/en/default/admin/fieldvalues/edit.html.tmpl index e19b7c0b5..919ac090c 100644 --- a/template/en/default/admin/fieldvalues/edit.html.tmpl +++ b/template/en/default/admin/fieldvalues/edit.html.tmpl @@ -17,13 +17,15 @@ [%# INTERFACE: # value: string; The field value we are editing. # sortkey: number; Sortkey of the field value we are editing. - # field: string; The field this value belongs to. + # field: object; The field this value belongs to. #%] [% PROCESS global/variables.none.tmpl %] -[% title = BLOCK %]Edit Value '[% value FILTER html %]' ' - [%- field FILTER html %]'[% END %] +[% title = BLOCK %] + Edit Value '[% value FILTER html %]' for the '[% field.description FILTER html %]' + ([% field.name FILTER html %]) field +[% END %] [% PROCESS global/header.html.tmpl title = title %] @@ -54,7 +56,7 @@ - + diff --git a/template/en/default/admin/fieldvalues/footer.html.tmpl b/template/en/default/admin/fieldvalues/footer.html.tmpl index 27428f66d..440376239 100644 --- a/template/en/default/admin/fieldvalues/footer.html.tmpl +++ b/template/en/default/admin/fieldvalues/footer.html.tmpl @@ -16,8 +16,7 @@ [%# INTERFACE: # value: string; the value being inserted/edited. - # field: string; the name of the field which the value - # belongs/belonged to + # field: object; the field which the value belongs/belonged to. # # no_XXX_link: boolean; if defined, then don't show the corresponding # link. Supported parameters are: @@ -32,24 +31,24 @@

[% UNLESS no_add_link %] - Add a value. + [%- field.name FILTER url_quote %]">Add a value. [% END %] [% IF value && !no_edit_link %] Edit value + [%- field.name FILTER url_quote %]&value=[% value FILTER url_quote %]"> '[% value FILTER html %]'. [% END %] [% UNLESS no_edit_other_link %] Edit other values for the '[% field FILTER html %]' field. + [%- field.name FILTER url_quote %]">'[% field.description FILTER html %]' field. [% END %] diff --git a/template/en/default/admin/fieldvalues/list.html.tmpl b/template/en/default/admin/fieldvalues/list.html.tmpl index 9e3da3c64..dd96d4872 100644 --- a/template/en/default/admin/fieldvalues/list.html.tmpl +++ b/template/en/default/admin/fieldvalues/list.html.tmpl @@ -20,7 +20,7 @@ # - sortkey: number; The sortkey used to order the value when # displayed to the user in a list. # - # field: string; the name of the field we are editing values for. + # field: object; the field we are editing values for. # static: array; list of values which cannot be renamed nor deleted. #%] @@ -29,16 +29,16 @@ [% PROCESS global/variables.none.tmpl %] -[% title = BLOCK %]Select value for the - '[% field FILTER html %]' field[% END %] +[% title = BLOCK %]Select value for the '[% field.description FILTER html %]' + ([% field.name FILTER html %]) field[% END %] [% PROCESS global/header.html.tmpl title = title %] [% edit_contentlink = BLOCK %]editvalues.cgi?action=edit&field= - [%- field FILTER url_quote %]&value=%%name%%[% END %] + [%- field.name FILTER url_quote %]&value=%%name%%[% END %] [% delete_contentlink = BLOCK %]editvalues.cgi?action=del&field= - [%- field FILTER url_quote %]&value=%%name%%[% END %] + [%- field.name FILTER url_quote %]&value=%%name%%[% END %] [% columns = [ diff --git a/template/en/default/admin/fieldvalues/updated.html.tmpl b/template/en/default/admin/fieldvalues/updated.html.tmpl index 7b76abb63..2cfb7de96 100644 --- a/template/en/default/admin/fieldvalues/updated.html.tmpl +++ b/template/en/default/admin/fieldvalues/updated.html.tmpl @@ -23,13 +23,15 @@ # # value & updated_value: the name of the field value # sortkey & updated_sortkey: the field value sortkey - # field: string; the field that the value belongs to + # field: object; the field that the value belongs to # default_value_updated: boolean; whether the default value for # this field has been updated #%] -[% title = BLOCK %]Updating Value '[% value FILTER html %]' of the - '[% field FILTER html %]' Field[% END %] +[% title = BLOCK %] + Updating Value '[% value FILTER html %]' of the '[% field.description FILTER html %]' + ([% field.name FILTER html %]) Field +[% END %] [% PROCESS global/header.html.tmpl title = title %] diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 615499426..9de2d03fc 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -424,7 +424,7 @@ [% ELSIF error == "fieldvalue_already_exists" %] [% title = "Field Value Already Exists" %] The value '[% value FILTER html %]' already exists for the - '[%- field FILTER html %]' field. + '[%- field.description FILTER html %]' field. [% ELSIF error == "fieldvalue_doesnt_exist" %] [% title = "Specified Field Value Does Not Exist" %] @@ -434,7 +434,7 @@ [% ELSIF error == "fieldvalue_is_default" %] [% title = "Specified Field Value Is Default" %] '[% value FILTER html %]' is the default value for - the '[% field FILTER html %]' field and cannot be deleted. + the '[% field.description FILTER html %]' field and cannot be deleted. [% IF user.groups.tweakparams %] You have to change the default value first. @@ -448,12 +448,12 @@ [% ELSIF error == "fieldvalue_not_editable" %] [% title = "Field Value Not Editable" %] The value '[% old_value FILTER html %]' cannot be renamed because - it plays some special role for the '[% field FILTER html %]' field. + it plays some special role for the '[% field.description FILTER html %]' field. [% ELSIF error == "fieldvalue_not_deletable" %] [% title = "Field Value Not Deletable" %] The value '[% value FILTER html %]' cannot be removed because - it plays some special role for the '[% field FILTER html %]' field. + it plays some special role for the '[% field.description FILTER html %]' field. [% ELSIF error == "fieldvalue_not_specified" %] [% title = "Field Value Not Specified" %] -- cgit v1.2.3-24-g4f1b