[%# # 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): Frédéric Buclin #%] [%# INTERFACE: # field: Bugzila::Field; the current field being edited #%] [% title = BLOCK %] [% IF field.id %] Edit the [% "Custom" IF field.custom %] field '[% field.name | html %]' ([% field.description | html %]) [% ELSE %] Add a new Custom Field [% END %] [% END %] [% javascript = BLOCK %] var constants = { FIELD_TYPE_SINGLE_SELECT: [% constants.FIELD_TYPE_SINGLE_SELECT %], FIELD_TYPE_MULTI_SELECT: [% constants.FIELD_TYPE_MULTI_SELECT %], FIELD_TYPE_BUG_ID: [% constants.FIELD_TYPE_BUG_ID %], FIELD_TYPE_EXTURL: [% constants.FIELD_TYPE_EXTURL %], FIELD_TYPE_BUG_ID_REV: [% constants.FIELD_TYPE_BUG_ID_REV %] }; [% END %] [% PROCESS global/header.html.tmpl title = title doc_section = "custom-fields.html#" _ (field.id ? "edit" : "add") _ "-custom-fields" javascript_urls = [ "js/cf-edit.js" ] %] [% IF !field.id %]

Adding custom fields can make the interface of [% terms.Bugzilla %] very complicated. Many admins who are new to [% terms.Bugzilla %] start off adding many custom fields, and then their users complain that the interface is "too complex". Please think carefully before adding any custom fields. It may be the case that [% terms.Bugzilla %] already does what you need, and you just haven't enabled the correct feature yet.

[% END %] [% IF field.id && !field.custom %] [% SWITCH field.name %] [% CASE 'classification' %]

If this field is enabled, [% terms.Bugzilla %] will associate each product with a specific classification.
But you must have 'editclassification' permissions enabled in order to edit classifications.

[% CASE 'votes' %]

If this field is enabled, users will be allowed to vote for [% terms.bugs %]. Note that in order for this to be effective, you will have to change the maximum votes allowed in a product to be non-zero in the product edit page.

[% CASE 'alias' %]

Enabling this field allows you to assign [% terms.bugs %] "aliases", which are easy-to-remember names by which you can refer to [% terms.bugs %].

[% CASE 'see_also' %]

Enabling See Also field allows you to refer to [% terms.bugs %] in other installations. Even if you disable this field, [% terms.bug %] relationships (URLs) which are already set will still appear and can be removed.

[% END %] [% END %]
[% IF !field.id || field.can_tweak('mailhead') %] [% END %] [% IF !field.id || field.can_tweak('clone_bug') %] [% END %] [% IF !field.id || field.can_tweak('obsolete') %] [% END %] [% IF !field.id || field.can_tweak('default_value') %] [% END %] [% IF !field.id || field.type && field.type != constants.FIELD_TYPE_BUG_ID_REV %] [% IF !field.id || field.type == constants.FIELD_TYPE_BUG_ID %] [% ELSIF field.is_select AND field.name != 'product' AND field.id %] [% ELSE %] [% END %] [% IF !field.id || field.can_tweak('nullable') %] [% END %] [% END %] [% IF !field.id || field.type == constants.FIELD_TYPE_EXTURL %] [% END %] [% IF !field.id || field.can_tweak('visibility_field_id') %] [% END %] [% IF !field.id || field.can_tweak('null_field_id') %] [% END %] [% IF !field.id || field.can_tweak('clone_field_id') %] [% END %] [% IF !field.id || field.can_tweak('default_field_id') %] [% END %] [% IF !field.id || field.can_tweak('value_field_id') %] [% END %] [% IF !field.id || field.type == constants.FIELD_TYPE_BUG_ID_REV %] [% END %] [% IF field.visibility_field %] [% END %] [% IF field.null_field %] [% END %] [% IF field.clone_field %] [% END %]
Name: [% IF field.id %] [% field.name | html %] [% ELSE %] [% END %]
Type: [% IF field.id %] [% field_types.${field.type} | html %] [% ELSE %] [% END %] Default value: [% IF field.is_select %] [% ELSE %] [% END %]
Edit legal values for this field
($1 = target ID)
[%# Duplicate name will be cleared by JS on creation form %]
[% SET vis = field.visibility_values %]
[% SET null = field.null_visibility_values %]
[% SET clone = field.clone_visibility_values %]
[% IF field.obsolete AND field.custom %]

Remove this custom field from the database.
This action will only be successful if the custom field is cleared in all [% terms.bugs %].

[% END %]

Back to the list of existing fields

[% PROCESS global/footer.html.tmpl %]