summaryrefslogtreecommitdiffstats
path: root/extensions/MozProjectReview/web
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2013-02-12 23:45:34 +0100
committerDave Lawrence <dlawrence@mozilla.com>2013-02-12 23:45:34 +0100
commit56e316230cf43462aee8813dd42d1358f2da257a (patch)
treeb4ab1ee93be4cbae16bb6899b66cfaf23b34046b /extensions/MozProjectReview/web
parent5316c9a71b2aafb003217ff9cf55e47f8e66efc9 (diff)
downloadbugzilla-56e316230cf43462aee8813dd42d1358f2da257a.tar.gz
bugzilla-56e316230cf43462aee8813dd42d1358f2da257a.tar.xz
Bug 831774 - Project Kickoff Form: Legal section - Changes to SOW field
Diffstat (limited to 'extensions/MozProjectReview/web')
-rw-r--r--extensions/MozProjectReview/web/js/moz_project_review.js24
1 files changed, 23 insertions, 1 deletions
diff --git a/extensions/MozProjectReview/web/js/moz_project_review.js b/extensions/MozProjectReview/web/js/moz_project_review.js
index b5cdc3e38..d7873ad35 100644
--- a/extensions/MozProjectReview/web/js/moz_project_review.js
+++ b/extensions/MozProjectReview/web/js/moz_project_review.js
@@ -35,6 +35,22 @@ MPR.required_fields = {
},
"legal_questions": {
"legal_priority": "Please select a priority for the legal questions section"
+ },
+ "legal_sow_questions": {
+ "legal_sow_vendor_name": "Please enter a value for SOW legal vendor name",
+ "legal_sow_vendor_address": "Please enter a value for SOW vendor address",
+ "legal_sow_vendor_email": "Please enter a value for SOW vendor email for notices",
+ "legal_sow_vendor_mozcontact": "Please enter a value for SOW Mozilla contact",
+ "legal_sow_vendor_contact": "Please enter a value for SOW vendor contact and email address",
+ "legal_sow_vendor_services": "Please enter a value for SOW vendor services description",
+ "legal_sow_vendor_deliverables": "Please enter a value for SOW vendor deliverables description",
+ "legal_sow_start_date": "Please enter a value for SOW vendor start date",
+ "legal_sow_end_date": "Please enter a value for SOW vendor end date",
+ "legal_sow_vendor_payment": "Please enter a value for SOW vendor payment amount",
+ "legal_sow_vendor_payment_basis": "Please enter a value for SOW vendor payment basis",
+ "legal_sow_vendor_payment_schedule": "Please enter a value for SOW vendor payment schedule",
+ "legal_sow_vendor_total_max": "Please enter a value for SOW vendor maximum total to be paid",
+ "legal_sow_vendor_product_line": "Please enter a value for SOW vendor product line",
}
};
@@ -57,6 +73,12 @@ MPR.toggleSpecialSections = function () {
Dom.addClass('sec_review_questions', 'bz_default_hidden');
}
+ if (Dom.get('separate_party').value == 'Yes'
+ && Dom.get('relationship_type').value == 'Vendor/Services')
+ {
+ Dom.removeClass('legal_sow_section', 'bz_default_hidden');
+ }
+
if (data_access_select.value == 'Yes' || mozilla_data_select.value == 'Yes') {
Dom.removeClass('sec_review_questions', 'bz_default_hidden');
}
@@ -160,7 +182,7 @@ YAHOO.util.Event.onDOMReady(function() {
MPR.toggleSpecialSections();
MPR.toggleVisibleById('new_or_change', 'Existing', 'mozilla_project_row');
MPR.toggleVisibleById('separate_party', 'Yes', 'initial_separate_party_questions');
- MPR.toggleVisibleById('relationship_type', 'Vendor/Services', 'legal_sow_details_row');
+ MPR.toggleVisibleById('relationship_type', 'Vendor/Services', 'legal_sow_section');
MPR.toggleVisibleById('vendor_cost', '> $25,000', 'finance_questions');
MPR.toggleVisibleById('privacy_policy_project', 'Yes', 'privacy_policy_project_link_row');
MPR.toggleVisibleById('privacy_policy_user_data', 'Yes', 'privacy_policy_project_user_data_bug_row');