]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1305861 - Error today in creating legal bugs from the Project Review form
authorDavid Lawrence <dkl@mozilla.com>
Mon, 3 Oct 2016 17:17:25 +0000 (17:17 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Mon, 3 Oct 2016 17:17:25 +0000 (17:17 +0000)
extensions/BMO/template/en/default/bug/create/create-legal.html.tmpl

index 5ca47bc5aee69892f48cc0cbb6966dc61f026aaa..670bd42ea86611b0ee2fd771c37efb4d0efc379b 100644 (file)
@@ -24,7 +24,7 @@
 [% inline_style = BLOCK %]
 .field_label {
   width: 170px;
-  padding-top: 10px;
+  margin-top: 10px;
 }
 label.required:before {
   content: "* ";
@@ -54,6 +54,17 @@ label.required:before {
 
 [% PROCESS 'bug/create/user-message.html.tmpl' no_bug_guidelines = 1, no_guided_bug_link = 1 %]
 
+[%
+  hide_components = [
+    'Firefox Distribution or Other Partner Agreement',
+    'Independent Contractor Agreement',
+    'Name Clearance (Trademark Search)',
+    'NDA',
+    'Search',
+    'Vendor/Services'
+  ]
+%]
+
 <h2>Mozilla Legal</h2>
 
 <p>All submissions, and information provided in response to this request, are confidential and
@@ -88,6 +99,7 @@ label.required:before {
         <option value="">Select One</option>
         [%- FOREACH c = product.components %]
           [% NEXT IF NOT c.is_active %]
+          [% NEXT IF hide_components.contains(c.name) %]
           <option value="[% c.name FILTER html %]"
             [% ' selected="selected"' IF c.name == "General" %]>
             [% c.name FILTER html -%]