summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/fieldvalues
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-05-30 21:08:10 +0200
committerlpsolit%gmail.com <>2007-05-30 21:08:10 +0200
commit4e4bfa3f76d565dd27b4d1a8903430b7c0b14140 (patch)
treec80a25bed01ee04643e2d5266795252ca9f475c0 /template/en/default/admin/fieldvalues
parentd67e20bc205e305ed2b086c8a8d144ebab4bbe83 (diff)
downloadbugzilla-4e4bfa3f76d565dd27b4d1a8903430b7c0b14140.tar.gz
bugzilla-4e4bfa3f76d565dd27b4d1a8903430b7c0b14140.tar.xz
Bug 369987: Display real field names in editvalues.cgi - Patch by Frédéric Buclin <LpSolit@gmail.com> r=ghendricks a=LpSolit
Diffstat (limited to 'template/en/default/admin/fieldvalues')
-rw-r--r--template/en/default/admin/fieldvalues/confirm-delete.html.tmpl26
-rw-r--r--template/en/default/admin/fieldvalues/create.html.tmpl15
-rw-r--r--template/en/default/admin/fieldvalues/created.html.tmpl14
-rw-r--r--template/en/default/admin/fieldvalues/deleted.html.tmpl8
-rw-r--r--template/en/default/admin/fieldvalues/edit.html.tmpl10
-rw-r--r--template/en/default/admin/fieldvalues/footer.html.tmpl13
-rw-r--r--template/en/default/admin/fieldvalues/list.html.tmpl10
-rw-r--r--template/en/default/admin/fieldvalues/updated.html.tmpl8
8 files changed, 58 insertions, 46 deletions
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 @@
</tr>
<tr>
<td valign="top">Field Name:</td>
- <td valign="top">[% field FILTER html %]</td>
+ <td valign="top">[% field.description FILTER html %]</td>
</tr>
<tr>
<td valign="top">Field Value:</td>
@@ -49,9 +51,9 @@
<td valign="top">[% terms.Bugs %]:</td>
<td valign="top">
[% IF bug_count %]
- <a title="List of [% terms.bugs %] where '[% field FILTER html %]' is '
+ <a title="List of [% terms.bugs %] where '[% field.description FILTER html %]' is '
[% value FILTER html %]'"
- href="buglist.cgi?[% field FILTER url_quote %]=[%- value FILTER url_quote %]">[% bug_count FILTER html %]</a>
+ href="buglist.cgi?[% field.name FILTER url_quote %]=[%- value FILTER url_quote %]">[% bug_count FILTER html %]</a>
[% ELSE %]
None
[% END %]
@@ -64,12 +66,12 @@
[% IF (param_name.defined && Param(param_name) == value) || bug_count || (value_count == 1) %]
<p>Sorry, but the '[% value FILTER html %]' value cannot be deleted
- from the '[% field FILTER html %]' field for the following reason(s):</p>
+ from the '[% field.description FILTER html %]' field for the following reason(s):</p>
<ul class="warningmessages">
[% IF param_name.defined && Param(param_name) == value %]
<li>'[% value FILTER html %]' is the default value for
- the '[% field FILTER html %]' field.
+ the '[% field.description FILTER html %]' field.
[% IF user.groups.tweakparams %]
You first have to <a href="editparams.cgi?section=bugfields#
[%- param_name FILTER url_quote %]">change the default value</a> for
@@ -85,8 +87,8 @@
is 1 [% terms.bug %]
[% END %]
with this field value. You must change the field value on
- <a title="List of [% terms.bugs %] where '[% field FILTER html %]' is '[% value FILTER html %]'"
- href="buglist.cgi?[% field FILTER url_quote %]=[% value FILTER url_quote %]">
+ <a title="List of [% terms.bugs %] where '[% field.description FILTER html %]' is '[% value FILTER html %]'"
+ href="buglist.cgi?[% field.name FILTER url_quote %]=[% value FILTER url_quote %]">
[% IF bug_count > 1 %]
those [% terms.bugs %]
[% ELSE %]
@@ -98,7 +100,7 @@
[% IF value_count == 1 %]
<li>'[% value FILTER html %]' is the last value for
- '[%- field FILTER html %]', and so it can not be deleted.
+ '[%- field.description FILTER html %]', and so it can not be deleted.
[% END %]
</ul>
@@ -109,7 +111,7 @@
<form method="post" action="editvalues.cgi">
<input type="submit" value="Yes, delete" id="delete">
<input type="hidden" name="action" value="delete">
- <input type="hidden" name="field" value="[% field FILTER html %]">
+ <input type="hidden" name="field" value="[% field.name FILTER html %]">
<input type="hidden" name="value" value="[% value FILTER html %]">
<input type="hidden" name="token" value="[% token FILTER html %]">
</form>
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
%]
+<p>
+ This page allows you to add a new value for the '[% field.description FILTER html %]' field.
+</p>
+
<form method="post" action="editvalues.cgi">
<table border="0" cellpadding="4" cellspacing="0">
<tr>
@@ -41,7 +44,7 @@
</table>
<input type="submit" id="create" value="Add">
<input type="hidden" name="action" value="new">
- <input type="hidden" name='field' value="[% field FILTER html %]">
+ <input type="hidden" name='field' value="[% field.name FILTER html %]">
<input type="hidden" name="token" value="[% token FILTER html %]">
</form>
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
%]
<p>The value '<a title="Edit value '[% value FILTER html %]' of
- for the '[% field FILTER html %]' field"
+ for the '[% field.description FILTER html %]' field"
href="editvalues.cgi?action=edit&amp;field=
- [%- field FILTER url_quote %]&amp;value=[% value FILTER url_quote %]">
+ [%- field.name FILTER url_quote %]&amp;value=[% value FILTER url_quote %]">
[%- value FILTER html %]</a>' has been added as a valid choice for
- the '[% field FILTER html %]' field.</p>
+ the '[% field.description FILTER html %]' field.</p>
[% 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 @@
<input type="hidden" name="valueold" value="[% value FILTER html %]">
<input type="hidden" name="sortkeyold" value="[% sortkey FILTER html %]">
<input type="hidden" name="action" value="update">
- <input type="hidden" name="field" value="[% field FILTER html %]">
+ <input type="hidden" name="field" value="[% field.name FILTER html %]">
<input type="hidden" name="token" value="[% token FILTER html %]">
<input type="submit" id="update" value="Update">
</form>
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 @@
<p>
[% UNLESS no_add_link %]
- <a title="Add a value for the '[% field FILTER html %]' field."
+ <a title="Add a value for the '[% field.description FILTER html %]' field."
href="editvalues.cgi?action=add&amp;field=
- [%- field FILTER url_quote %]">Add</a> a value.
+ [%- field.name FILTER url_quote %]">Add</a> a value.
[% END %]
[% IF value && !no_edit_link %]
Edit value <a
title="Edit value '[% value FILTER html %]' for the '
- [%- field FILTER html %]' field"
+ [%- field.name FILTER html %]' field"
href="editvalues.cgi?action=edit&amp;field=
- [%- field FILTER url_quote %]&amp;value=[% value FILTER url_quote %]">
+ [%- field.name FILTER url_quote %]&amp;value=[% value FILTER url_quote %]">
'[% value FILTER html %]'</a>.
[% END %]
[% UNLESS no_edit_other_link %]
Edit other values for the <a
href="editvalues.cgi?field=
- [%- field FILTER url_quote %]">'[% field FILTER html %]'</a> field.
+ [%- field.name FILTER url_quote %]">'[% field.description FILTER html %]'</a> 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&amp;field=
- [%- field FILTER url_quote %]&amp;value=%%name%%[% END %]
+ [%- field.name FILTER url_quote %]&amp;value=%%name%%[% END %]
[% delete_contentlink = BLOCK %]editvalues.cgi?action=del&amp;field=
- [%- field FILTER url_quote %]&amp;value=%%name%%[% END %]
+ [%- field.name FILTER url_quote %]&amp;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
%]