diff options
author | David Lawrence <dkl@mozilla.com> | 2016-01-06 21:09:23 +0100 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2016-01-06 21:09:23 +0100 |
commit | 8687348f8f8d09e27a0ee89dfe43c49779ced8ce (patch) | |
tree | 24b2e8e078f9f407ee45128edaa74e540d14a6fc /extensions | |
parent | 93919407f0e7e7a638d9e3c36640bd2f78d77367 (diff) | |
download | bugzilla-8687348f8f8d09e27a0ee89dfe43c49779ced8ce.tar.gz bugzilla-8687348f8f8d09e27a0ee89dfe43c49779ced8ce.tar.xz |
Bug 1236955 - [form.mdn] Please add component drop-down to custom form
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/BMO/template/en/default/bug/create/create-mdn.html.tmpl | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/extensions/BMO/template/en/default/bug/create/create-mdn.html.tmpl b/extensions/BMO/template/en/default/bug/create/create-mdn.html.tmpl index 9f2d480a0..89c28f114 100644 --- a/extensions/BMO/template/en/default/bug/create/create-mdn.html.tmpl +++ b/extensions/BMO/template/en/default/bug/create/create-mdn.html.tmpl @@ -95,6 +95,7 @@ strong.required:before { validateAndSubmit: function() { var alert_text = ''; var request_type = this._current_type; + if (!isFilledOut('component')) alert_text += 'Please select a "Component".\n'; if (!isFilledOut('short_desc')) alert_text += 'Please enter a "Summary".\n'; for (require_type in this._required_fields) { if (require_type == request_type) { @@ -182,7 +183,6 @@ strong.required:before { onSubmit="return mdn.validateAndSubmit();"> <input type="hidden" name="format" value="mdn"> <input type="hidden" name="product" value="Mozilla Developer Network"> - <input type="hidden" name="component" value="General"> <input type="hidden" name="rep_platform" value="All"> <input type="hidden" name="op_sys" value="Other"> <input type="hidden" name="version" value="unspecified"> @@ -231,8 +231,23 @@ strong.required:before { </div> <p> - <strong class="required">Summary</strong><br> - <input type="text" name="short_desc" id="short_desc" size="60"> + <strong class="required">Component</strong><br> + <select name="component" id="component" size="7" aria-required="true" class="required"> + [% FOREACH c = product.components %] + [% NEXT IF NOT c.is_active %] + <option value="[% c.name FILTER html %]" title="[% c.description FILTER html %]" + [%- IF c.name == default.component_ %] + selected="selected" + [% END %]> + [% c.name FILTER html -%] + </option> + [%- END %] + </select> + </p> + + <p> + <strong class="required">Summary</strong><br> + <input type="text" name="short_desc" id="short_desc" size="60"> </p> <div id="detail_bug" class="bz_default_hidden"> |