diff options
author | Byron Jones <glob@mozilla.com> | 2014-09-23 05:41:17 +0200 |
---|---|---|
committer | Byron Jones <glob@mozilla.com> | 2014-09-23 05:41:17 +0200 |
commit | 7a7013402fb30e8777bc09fb9971651392e65ea1 (patch) | |
tree | ccdcff1fbe901d08afbf157ce47c255241a66e6c /extensions/BMO/template/en/default/pages/custom_forms.html.tmpl | |
parent | 9773ddfe2f9da1d72843b0f5fb7476f3bf4995d2 (diff) | |
download | bugzilla-7a7013402fb30e8777bc09fb9971651392e65ea1.tar.gz bugzilla-7a7013402fb30e8777bc09fb9971651392e65ea1.tar.xz |
Bug 1037663: Make custom bug entry forms more discoverable
Diffstat (limited to 'extensions/BMO/template/en/default/pages/custom_forms.html.tmpl')
-rw-r--r-- | extensions/BMO/template/en/default/pages/custom_forms.html.tmpl | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/extensions/BMO/template/en/default/pages/custom_forms.html.tmpl b/extensions/BMO/template/en/default/pages/custom_forms.html.tmpl new file mode 100644 index 000000000..d484d730c --- /dev/null +++ b/extensions/BMO/template/en/default/pages/custom_forms.html.tmpl @@ -0,0 +1,40 @@ +[%# This Source Code Form is subject to the terms of the Mozilla Public + # License, v. 2.0. If a copy of the MPL was not distributed with this + # file, You can obtain one at http://mozilla.org/MPL/2.0/. + # + # This Source Code Form is "Incompatible With Secondary Licenses", as + # defined by the Mozilla Public License, v. 2.0. + #%] + +[% PROCESS global/header.html.tmpl + title = "Custom Bug Entry Forms" +%] + +[% + visible_forms = {}; + PROCESS bug/create/custom_forms.none.tmpl; + FOREACH product = custom_forms.keys; + product_forms = []; + FOREACH form = custom_forms.$product; + NEXT IF form.group && !user.in_group(form.group); + product_forms.push(form); + END; + NEXT UNLESS product_forms.size; + visible_forms.$product = product_forms; + END; +%] + +<h1>Custom [% terms.Bug %] Entry Forms</h1> + +[% FOREACH product = visible_forms.keys.sort %] + <h3>[% product FILTER html %]</h3> + <ul> + [% FOREACH form = visible_forms.$product.sort("title") %] + <li> + <a href="[% form.link FILTER none %]">[% form.title FILTER html %]</a> + </li> + [% END %] + </ul> +[% END %] + +[% PROCESS global/footer.html.tmpl %] |