1 |
[%# The contents of this file are subject to the Mozilla Public |
2 |
# License Version 1.1 (the "License"); you may not use this file |
3 |
# except in compliance with the License. You may obtain a copy of |
4 |
# the License at http://www.mozilla.org/MPL/ |
5 |
# |
6 |
# Software distributed under the License is distributed on an "AS |
7 |
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or |
8 |
# implied. See the License for the specific language governing |
9 |
# rights and limitations under the License. |
10 |
# |
11 |
# The Original Code is the Bugzilla Bug Tracking System. |
12 |
# |
13 |
# Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org> |
14 |
#%] |
15 |
|
16 |
[%# INTERFACE: |
17 |
# value: string; the value being inserted/edited. |
18 |
# field: object; the field which the value belongs/belonged to. |
19 |
# |
20 |
# no_XXX_link: boolean; if defined, then don't show the corresponding |
21 |
# link. Supported parameters are: |
22 |
# |
23 |
# no_edit_link |
24 |
# no_edit_other_link |
25 |
# no_add_link |
26 |
#%] |
27 |
|
28 |
<hr> |
29 |
|
30 |
<p> |
31 |
|
32 |
[% UNLESS no_add_link %] |
33 |
<a title="Add a value for the '[% field.description FILTER html %]' field." |
34 |
href="editvalues.cgi?action=add&field= |
35 |
[%- field.name FILTER url_quote %]">Add</a> a value. |
36 |
[% END %] |
37 |
|
38 |
[% IF value.defined && !no_edit_link %] |
39 |
Edit value <a |
40 |
title="Edit value '[% value.name FILTER html %]' for the ' |
41 |
[%- field.name FILTER html %]' field" |
42 |
href="editvalues.cgi?action=edit&field= |
43 |
[%- field.name FILTER url_quote %]&value= |
44 |
[%- value.name FILTER url_quote %]"> |
45 |
'[% value.name FILTER html %]'</a>. |
46 |
[% END %] |
47 |
|
48 |
[% UNLESS no_edit_other_link %] |
49 |
Edit other values for the <a |
50 |
href="editvalues.cgi?field= |
51 |
[%- field.name FILTER url_quote %]">'[% field.description FILTER html %]'</a> field. |
52 |
|
53 |
[% END %] |
54 |
|
55 |
</p> |