diff options
author | Tiago Mello <timello@gmail.com> | 2010-08-27 05:27:08 +0200 |
---|---|---|
committer | Tiago Mello <timello@gmail.com> | 2010-08-27 05:27:08 +0200 |
commit | 0844fe9fc6d2d5293fad1384d2955dedf30fc8c4 (patch) | |
tree | 636a0bbcdf71017fda712e60cd1a0dc1b7038b7b /template/en/default/admin/custom_fields/edit.html.tmpl | |
parent | d94865b30a92be8a3a900f8d1d8262d36044b1ca (diff) | |
download | bugzilla-0844fe9fc6d2d5293fad1384d2955dedf30fc8c4.tar.gz bugzilla-0844fe9fc6d2d5293fad1384d2955dedf30fc8c4.tar.xz |
Bug 479400: Add the ability to show or hide particular custom fields
based on multiple values of another field (visibility controllers)
r/a=mkanat
Diffstat (limited to 'template/en/default/admin/custom_fields/edit.html.tmpl')
-rw-r--r-- | template/en/default/admin/custom_fields/edit.html.tmpl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/template/en/default/admin/custom_fields/edit.html.tmpl b/template/en/default/admin/custom_fields/edit.html.tmpl index 48c3396f3..5ce2b7fd5 100644 --- a/template/en/default/admin/custom_fields/edit.html.tmpl +++ b/template/en/default/admin/custom_fields/edit.html.tmpl @@ -118,12 +118,14 @@ </option> [% END %] </select> - <label for="visibility_value_id"><strong>is set to:</strong></label> - <select name="visibility_value_id" id="visibility_value_id"> + <label for="visibility_values"> + <strong>is set to any of:</strong> + </label> + <select multiple="multiple" size="5" name="visibility_values" + id="visibility_values" class="field_value"> [% FOREACH value = field.visibility_field.legal_values %] <option value="[% value.id FILTER html %]" - [% ' selected="selected"' - IF field.visibility_value.id == value.id %]> + [% " selected" IF field.visibility_values.contains(value) %]> [% IF field.visibility_field.name == 'component' %] [% display_value('product', value.product.name) FILTER html %]: [% END %] |