summaryrefslogtreecommitdiffstats
path: root/template/en/default/admin/fieldvalues
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default/admin/fieldvalues')
-rw-r--r--template/en/default/admin/fieldvalues/confirm-delete.html.tmpl161
-rw-r--r--template/en/default/admin/fieldvalues/create.html.tmpl100
-rw-r--r--template/en/default/admin/fieldvalues/edit.html.tmpl114
-rw-r--r--template/en/default/admin/fieldvalues/footer.html.tmpl55
-rw-r--r--template/en/default/admin/fieldvalues/list.html.tmpl99
-rw-r--r--template/en/default/admin/fieldvalues/select-field.html.tmpl47
6 files changed, 0 insertions, 576 deletions
diff --git a/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl b/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl
deleted file mode 100644
index 2ea7c2f..0000000
--- a/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl
+++ /dev/null
@@ -1,161 +0,0 @@
-[%# The contents of this file are subject to the Mozilla Public
- # License Version 1.1 (the "License"); you may not use this file
- # except in compliance with the License. You may obtain a copy of
- # the License at http://www.mozilla.org/MPL/
- #
- # Software distributed under the License is distributed on an "AS
- # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- # implied. See the License for the specific language governing
- # rights and limitations under the License.
- #
- # The Original Code is the Bugzilla Bug Tracking System.
- #
- # Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
- #%]
-
-[%# INTERFACE:
- # value: Bugzilla::Field::Choice; The field value being deleted.
- # value_count: number; The number of values available for this field.
- # field: object; the field the value is being deleted from.
- #%]
-
-[% title = BLOCK %]
- Delete Value '[% value.name FILTER html %]' from the
- '[% field.description FILTER html %]' ([% field.name FILTER html %]) field
-[% END %]
-
-[% PROCESS global/header.html.tmpl
- title = title
- style_urls = ['skins/standard/admin.css']
-%]
-
-<table border="1" cellpadding="4" cellspacing="0">
-<tr bgcolor="#6666FF">
- <th valign="top" align="left">Field</th>
- <th valign="top" align="left">Value</th>
-</tr>
-<tr>
- <td valign="top">Field Name:</td>
- <td valign="top">[% field.description FILTER html %]</td>
-</tr>
-<tr>
- <td valign="top">Field Value:</td>
- <td valign="top">[% value.name FILTER html %]</td>
-</tr>
-<tr>
- <td valign="top">[% terms.Bugs %]:</td>
- <td valign="top">
-[% IF value.bug_count %]
- <a title="List of [% terms.bugs %] where '
- [%- field.description FILTER html %]' is '
- [%- value.name FILTER html %]'"
- href="buglist.cgi?[% field.name FILTER url_quote %]=
- [%- value.name FILTER url_quote %]">
- [%- value.bug_count FILTER html %]</a>
-[% ELSE %]
- None
-[% END %]
- </td>
-</tr>
-</table>
-
-<h2>Confirmation</h2>
-
-[% IF value.is_default || value.bug_count || (value_count == 1)
- || value.controls_visibility_of_fields.size
- || value.controlled_values_array.size
-%]
-
- <p>Sorry, but the '[% value.name FILTER html %]' value cannot be deleted
- from the '[% field.description FILTER html %]' field for the following
- reason(s):</p>
-
- <ul class="warningmessages">
- [% IF value.is_default %]
- <li>'[% value.name FILTER html %]' is the default value for
- the '[% field.description FILTER html %]' field.
- [% IF user.in_group('tweakparams') %]
- You first have to <a href="editparams.cgi?section=bugfields">change
- the default value</a> for this field before you can delete
- this value.
- [% END %]
- </li>
- [% END %]
-
- [% IF value.bug_count %]
- <li>
- [% IF value.bug_count > 1 %]
- There are [% value.bug_count FILTER html %] [%+ terms.bugs %]
- with this field value.
- [% ELSE %]
- There is 1 [% terms.bug %] with this field value.
- [% END %]
- You must change the field value on
- <a title="List of [% terms.bugs %] where '
- [%- field.description FILTER html %]' is '
- [%- value.name FILTER html %]'"
- href="buglist.cgi?[% field.name FILTER url_quote %]=
- [%- value.name FILTER url_quote %]">
- [% IF value.bug_count > 1 %]
- those [% terms.bugs %]
- [% ELSE %]
- that [% terms.bug %]
- [% END %]
- </a>
- to another value before you can delete this value.
- </li>
- [% END %]
-
- [% IF value_count == 1 %]
- <li>'[% value.name FILTER html %]' is the last value for
- '[%- field.description FILTER html %]', and so it can not be deleted.
- </li>
- [% END %]
-
- [% IF value.controls_visibility_of_fields.size %]
- <li>This value controls the visibility of the following fields:<br>
- [% FOREACH field = value.controls_visibility_of_fields %]
- <a href="editfields.cgi?action=edit&name=
- [%- field.name FILTER url_quote %]">
- [%- field.description FILTER html %]
- ([% field.name FILTER html %])</a><br>
- [% END %]
- </li>
- [% END %]
-
- [% IF value.controlled_values_array.size %]
- <li>This value controls the visibility of the following values in
- other fields:<br>
- [% FOREACH field_name = value.controlled_values.keys %]
- [% FOREACH controlled = value.controlled_values.${field_name} %]
- <a href="editvalues.cgi?action=edit&field=
- [%- controlled.field.name FILTER url_quote %]&value=
- [%- controlled.name FILTER url_quote %]">
- [% controlled.field.description FILTER html %]
- ([% controlled.field.name FILTER html %]):
- [%+ controlled.name FILTER html %]</a><br>
- [% END %]
- [% END %]
- </li>
- [% END %]
- </ul>
-
-[% ELSE %]
-
- <p>Do you really want to delete this value?</p>
-
- <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.name FILTER html %]">
- <input type="hidden" name="value" value="[% value.name FILTER html %]">
- <input type="hidden" name="token" value="[% token FILTER html %]">
- </form>
-
-[% END %]
-
-[% PROCESS admin/fieldvalues/footer.html.tmpl
- no_edit_link = 1
- +%]
-
-[% PROCESS global/footer.html.tmpl %]
diff --git a/template/en/default/admin/fieldvalues/create.html.tmpl b/template/en/default/admin/fieldvalues/create.html.tmpl
deleted file mode 100644
index 0198314..0000000
--- a/template/en/default/admin/fieldvalues/create.html.tmpl
+++ /dev/null
@@ -1,100 +0,0 @@
-[%# The contents of this file are subject to the Mozilla Public
- # License Version 1.1 (the "License"); you may not use this file
- # except in compliance with the License. You may obtain a copy of
- # the License at http://www.mozilla.org/MPL/
- #
- # Software distributed under the License is distributed on an "AS
- # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- # implied. See the License for the specific language governing
- # rights and limitations under the License.
- #
- # The Original Code is the Bugzilla Bug Tracking System.
- #
- # Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
- # Frédéric Buclin <LpSolit@gmail.com>
- #%]
-
-[%# INTERFACE:
- # field: object; the field the value is being created for
- #%]
-
-[% title = BLOCK %]
- Add Value for the '[% field.description FILTER html %]' ([% field.name FILTER html %]) field
-[% END %]
-[% PROCESS global/header.html.tmpl
- title = title
-%]
-
-<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>
- <th align="right"><label for="value">Value:</label></th>
- <td>
- <input id="value" name="value" size="30"
- maxlength="[% constants.MAX_FIELD_VALUE_SIZE FILTER none %]">
- </td>
- </tr>
- <tr>
- <th align="right"><label for="sortkey">Sortkey:</label></th>
- <td><input id="sortkey" name="sortkey" size="6" maxlength="6"></td>
- </tr>
- [% IF field.name == "bug_status" %]
- <tr>
- <th align="right"><label for="is_open">Status Type:</label></th>
- <td>
- <input type="radio" id="open_status" name="is_open" value="1"
- checked="checked">
- <label for="open_status">Open</label><br>
- <input type="radio" id="closed_status" name="is_open" value="0">
- <label for="closed_status">Closed (requires a Resolution)</label>
- </td>
- </tr>
- <tr>
- <th>&nbsp;</th>
- <td>
- Note: The open/close attribute can only be set now, when you create
- the status. It cannot be edited later.
- </td>
- </tr>
- [% END %]
- [% IF field.value_field %]
- <tr>
- <th align="right">
- <label for="visibility_value_id">Only appears when
- [%+ field.value_field.description FILTER html %] is set to:
- </label>
- </th>
- <td>
- <select name="visibility_value_id" id="visibility_value_id">
- <option></option>
- [% FOREACH field_value = field.value_field.legal_values %]
- [% NEXT IF field_value.name == '' %]
- <option value="[% field_value.id FILTER none %]">
- [% IF field.value_field.name == 'component' %]
- [% field_value.product.name FILTER html %]:
- [% END %]
- [%- field_value.name FILTER html -%]
- </option>
- [% END %]
- </select>
- <small>(Leave unset to have this value always appear.)</small>
- </td>
- </tr>
- [% END %]
- </table>
- <input type="submit" id="create" value="Add">
- <input type="hidden" name="action" value="new">
- <input type="hidden" name='field' value="[% field.name FILTER html %]">
- <input type="hidden" name="token" value="[% token FILTER html %]">
-</form>
-
-[% PROCESS admin/fieldvalues/footer.html.tmpl
- no_add_link = 1
- %]
-
-[% PROCESS global/footer.html.tmpl %]
diff --git a/template/en/default/admin/fieldvalues/edit.html.tmpl b/template/en/default/admin/fieldvalues/edit.html.tmpl
deleted file mode 100644
index 9c42ce6..0000000
--- a/template/en/default/admin/fieldvalues/edit.html.tmpl
+++ /dev/null
@@ -1,114 +0,0 @@
-[%# The contents of this file are subject to the Mozilla Public
- # License Version 1.1 (the "License"); you may not use this file
- # except in compliance with the License. You may obtain a copy of
- # the License at http://www.mozilla.org/MPL/
- #
- # Software distributed under the License is distributed on an "AS
- # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- # implied. See the License for the specific language governing
- # rights and limitations under the License.
- #
- # The Original Code is the Bugzilla Bug Tracking System.
- #
- # Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
- #%]
-
-[%# INTERFACE:
- # value: Bugzilla::Field::Choice; The field value we are editing.
- # field: Bugzilla::Field; The field this value belongs to.
- #%]
-
-[% PROCESS global/variables.none.tmpl %]
-
-[% title = BLOCK %]
- Edit Value '[% value.name FILTER html %]' for the
- '[% field.description FILTER html %]' ([% field.name FILTER html %]) field
-[% END %]
-[% PROCESS global/header.html.tmpl
- title = title
-%]
-
-<form method="post" action="editvalues.cgi">
- <table border="0" cellpadding="4" cellspacing="0">
-
- <tr>
- <th valign="top" align="right">
- <label for="value_new">Field Value:</label>
- </th>
- <td>
- [% IF value.is_static %]
- <input type="hidden" name="value_new" id="value_new"
- value="[% value.name FILTER html %]">
- [%- value.name FILTER html %]
- [% ELSE %]
- <input id="value_new" name="value_new" size="20"
- maxlength="[% constants.MAX_FIELD_VALUE_SIZE FILTER none %]"
- value="[% value.name FILTER html %]">
- [% END %]
- </td>
- </tr>
- <tr>
- <th align="right"><label for="sortkey">Sortkey:</label></th>
- <td><input id="sortkey" size="6" maxlength="6" name="sortkey"
- value="[%- value.sortkey FILTER html %]"></td>
- </tr>
- [% IF field.name == "bug_status" %]
- <tr>
- <th align="right"><label for="is_open">Status Type:</label></th>
- <td>[% IF value.is_open %]Open[% ELSE %]Closed[% END %]</td>
- </tr>
- [% END %]
- [% IF field.value_field %]
- <tr>
- <th align="right">
- <label for="visibility_value_id">Only appears when
- [%+ field.value_field.description FILTER html %] is set to:
- </label>
- </th>
- <td>
- <select name="visibility_value_id" id="visibility_value_id">
- <option></option>
- [% FOREACH field_value = field.value_field.legal_values %]
- [% NEXT IF field_value.name == '' %]
- <option value="[% field_value.id FILTER none %]"
- [% ' selected="selected"'
- IF field_value.id == value.visibility_value.id %]>
- [% IF field.value_field.name == 'component' %]
- [% field_value.product.name FILTER html %]:
- [% END %]
- [% field_value.name FILTER html -%]
- </option>
- [% END %]
- </select>
- <small>(Leave unset to have this value always appear.)</small>
- </td>
- </tr>
- [% END %]
- <tr>
- <th align="right"><label for="is_active">Enabled for [% terms.bugs %]:</label></th>
- <td><input id="is_active" name="is_active" type="checkbox" value="1"
- [%+ 'checked="checked"' IF value.is_active %]
- [%+ 'disabled="disabled"' IF value.is_default OR value.is_static %]>
- [% IF value.is_default %]
- This value is selected as default in the parameters for this field. It cannot be disabled.
- [% ELSIF value.is_static %]
- This value is non-deletable and cannot be disabled.
- [% END %]
- [% IF !(value.is_default OR value.is_static) %]
- <input id="defined_is_active" name="defined_is_active"
- type="hidden" value="1">
- [% END %]
- </td>
- </tr>
- </table>
- <input type="hidden" name="value" value="[% value.name FILTER html %]">
- <input type="hidden" name="action" value="update">
- <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="Save Changes">
-</form>
-
-[% PROCESS admin/fieldvalues/footer.html.tmpl
- no_edit_link = 1 %]
-
-[% PROCESS global/footer.html.tmpl %]
diff --git a/template/en/default/admin/fieldvalues/footer.html.tmpl b/template/en/default/admin/fieldvalues/footer.html.tmpl
deleted file mode 100644
index 288612d..0000000
--- a/template/en/default/admin/fieldvalues/footer.html.tmpl
+++ /dev/null
@@ -1,55 +0,0 @@
-[%# The contents of this file are subject to the Mozilla Public
- # License Version 1.1 (the "License"); you may not use this file
- # except in compliance with the License. You may obtain a copy of
- # the License at http://www.mozilla.org/MPL/
- #
- # Software distributed under the License is distributed on an "AS
- # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- # implied. See the License for the specific language governing
- # rights and limitations under the License.
- #
- # The Original Code is the Bugzilla Bug Tracking System.
- #
- # Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
- #%]
-
-[%# INTERFACE:
- # value: string; the value being inserted/edited.
- # 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:
- #
- # no_edit_link
- # no_edit_other_link
- # no_add_link
- #%]
-
-<hr>
-
-<p>
-
-[% UNLESS no_add_link %]
- <a title="Add a value for the '[% field.description FILTER html %]' field."
- href="editvalues.cgi?action=add&amp;field=
- [%- field.name FILTER url_quote %]">Add</a> a value.
-[% END %]
-
-[% IF value.defined && !no_edit_link %]
- Edit value <a
- title="Edit value '[% value.name FILTER html %]' for the '
- [%- field.name FILTER html %]' field"
- href="editvalues.cgi?action=edit&amp;field=
- [%- field.name FILTER url_quote %]&amp;value=
- [%- value.name FILTER url_quote %]">
- '[% value.name FILTER html %]'</a>.
-[% END %]
-
-[% UNLESS no_edit_other_link %]
- Edit other values for the <a
- href="editvalues.cgi?field=
- [%- field.name FILTER url_quote %]">'[% field.description FILTER html %]'</a> field.
-
-[% END %]
-
-</p>
diff --git a/template/en/default/admin/fieldvalues/list.html.tmpl b/template/en/default/admin/fieldvalues/list.html.tmpl
deleted file mode 100644
index 3f750eb..0000000
--- a/template/en/default/admin/fieldvalues/list.html.tmpl
+++ /dev/null
@@ -1,99 +0,0 @@
-[%# The contents of this file are subject to the Mozilla Public
- # License Version 1.1 (the "License"); you may not use this file
- # except in compliance with the License. You may obtain a copy of
- # the License at http://www.mozilla.org/MPL/
- #
- # Software distributed under the License is distributed on an "AS
- # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- # implied. See the License for the specific language governing
- # rights and limitations under the License.
- #
- # The Original Code is the Bugzilla Bug Tracking System.
- #
- # Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
- #%]
-
-[%# INTERFACE:
- # values: array of hashes having the following properties:
- # - name: string; The value.
- # - sortkey: number; The sortkey used to order the value when
- # displayed to the user in a list.
- #
- # field: object; the field we are editing values for.
- # static: array; list of values which cannot be renamed nor deleted.
- #%]
-
-[% USE Bugzilla %]
-[% cgi = Bugzilla.cgi %]
-
-[% PROCESS global/variables.none.tmpl %]
-
-[% 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.name FILTER url_quote %]&amp;value=%%name%%[% END %]
-[% delete_contentlink = BLOCK %]editvalues.cgi?action=del&amp;field=
- [%- field.name FILTER url_quote %]&amp;value=%%name%%[% END %]
-
-
-[% columns = [
- {
- name => "name"
- heading => "Edit field value..."
- contentlink => edit_contentlink
- },
- {
- name => "sortkey"
- heading => "Sortkey"
- },
- {
- name => "isactive"
- heading => "Enabled for $terms.bugs"
- yesno_field => 1
- },
- {
- name => "action"
- heading => "Action"
- content => "Delete"
- contentlink => delete_contentlink
- } ]
-%]
-
-
-[% SET overrides.action = {} %]
-[% FOREACH check_value = values %]
- [% IF check_value.is_static %]
- [% overrides.action.name.${check_value.name} = {
- override_content => 1
- content => "(Non-deletable value)"
- override_contentlink => 1
- contentlink => undef
- }
- %]
- [% ELSIF check_value.is_default %]
- [% overrides.action.name.${check_value.name} = {
- override_content => 1
- content => "(Default value)"
- override_contentlink => 1
- contentlink => undef
- }
- %]
- [% END %]
-
-[% END %]
-
-[% PROCESS admin/table.html.tmpl
- columns = columns
- data = values
- overrides = overrides
-%]
-
-[% PROCESS admin/fieldvalues/footer.html.tmpl
- no_edit_other_link = 1
- %]
-
-[% PROCESS global/footer.html.tmpl %]
diff --git a/template/en/default/admin/fieldvalues/select-field.html.tmpl b/template/en/default/admin/fieldvalues/select-field.html.tmpl
deleted file mode 100644
index 3704d42..0000000
--- a/template/en/default/admin/fieldvalues/select-field.html.tmpl
+++ /dev/null
@@ -1,47 +0,0 @@
-[%# The contents of this file are subject to the Mozilla Public
- # License Version 1.1 (the "License"); you may not use this file
- # except in compliance with the License. You may obtain a copy of
- # the License at http://www.mozilla.org/MPL/
- #
- # Software distributed under the License is distributed on an "AS
- # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
- # implied. See the License for the specific language governing
- # rights and limitations under the License.
- #
- # The Original Code is the Bugzilla Bug Tracking System.
- #
- # Contributor(s): Max Kanat-Alexander <mkanat@bugzilla.org>
- #
- #%]
-
-[%# INTERFACE:
- # fields: Array of hashes. Each hash contains only one key, "name."
- # The names are the same as the keys from field_descs
- # (see global/field-descs.html.tmpl).
- #%]
-
-[% USE Bugzilla %]
-[% cgi = Bugzilla.cgi %]
-
-[% PROCESS global/variables.none.tmpl %]
-
-[% PROCESS global/header.html.tmpl
- title = "Edit values for which field?"
-%]
-
-[% columns = [
- {
- name => "name"
- heading => "Edit field values for..."
- content_use_field = 1
- contentlink => "editvalues.cgi?field=%%name%%"
- }
- ]
-%]
-
-[% PROCESS admin/table.html.tmpl
- columns = columns
- data = fields
-%]
-
-[% PROCESS global/footer.html.tmpl %]