diff options
Diffstat (limited to 'extensions/BMO/template/en')
-rw-r--r-- | extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl b/extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl index c11e6ea42..d81299004 100644 --- a/extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl +++ b/extensions/BMO/template/en/default/hook/bug/edit-custom_field.html.tmpl @@ -60,3 +60,45 @@ RETURN; END; %] + +[% + IF field.name == 'cf_cab_review' AND bug.cf_cab_review == '---'; + field.hidden = 1; + value = '---'; +%] + [%# lifted from bug/field.html.tmpl %] + <tr> + [% PROCESS "bug/field-label.html.tmpl" hidden=0 %] + <td class="field_value" id="field_container_[% field.name FILTER html %]" colspan="2"> + <span id="cab-review-gate"> + <a href="https://mozilla.service-now.com/change_request.do?sysparm_stack=change_request_list.do&sys_id=-1&sysparm_query=active=true" target="_blank">ServiceNow Change Request</a> + (<a href="#" id="cab-review-gate-close">use flag</a>) + </span> + <span id="cab-review-edit" style="display:none"> + <input type="hidden" id="[% field.name FILTER html %]_dirty"> + <select id="[% field.name FILTER html %]" name="[% field.name FILTER html %]"> + [% + FOREACH legal_value = field.legal_values; + NEXT IF NOT legal_value.is_active AND NOT value.contains(legal_value.name).size; + NEXT UNLESS bug.check_can_change_field(field.name, '---', legal_value.name) + OR value.contains(legal_value.name).size; + %] + <option value="[% legal_value.name FILTER html %]" + id="v[% legal_value.id FILTER html %]_[% field.name FILTER html %]" + [% IF value.contains(legal_value.name).size %] + selected + [% ELSIF bug AND !legal_value.is_visible_on_bug(bug) %] + class="bz_hidden_option" disabled + [% END %] + >[% display_value(field.name, legal_value.name) FILTER html %]</option> + [% + END; + %] + </select> + </span> + </td> + </tr> +[% + RETURN; + END; +%] |