blob: ae0c37053b086216e8265e1d07dc2fff1c3946c0 [file]
<?php
#*****************************************************************************
#
# en_cq_non-epl.inc
#
# Author: Denis Roy & others
# Date: 2006-08-24
#
# Description: UI for contribution questionnaire
#
# HISTORY:
#
#****************************************************************************
include("inc/en_cq_common.php");
?>
<tr><td colspan="2"><p><strong>Packages</strong></p>
<tr>
<td>This requirement is</td>
<td>
<select name="requirement">
<option value="" />
<option value="STOP_SHIP">Stop-ship</option>
<option value="EASE_OF_USE/BUNDLING">Ease-of-use / bundling</option>
</select>
</td>
</tr>
<tr>
<td valign="top">If this contribution requires 3rd party packages, please list them all (Please list one package per line e.g Apache Axis 1.0). If a package contains nested components, please list each nested component you intend to use individually.</td>
<td><textarea onchange="fnSetSubmitLabel();" cols="60" rows="10" name="preExistPkgList"></textarea></td></tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td>&#160;</td>
<td><input type="button" name="Submit" value="Submit questionnaire" onclick="fnValidForm();" /></td>
</tr>
</table>
<p>
</p>
<input type="hidden" name="cqtype" value="nonepl" />
</form>
</td>
<script language="javascript">
function fnSetSubmitLabel() {
document.form1.Submit.value = "Submit questionnaire";
if(document.form1.preExistPkgList.value.length > 0) {
document.form1.Submit.value = "Continue to package enumeration >";
}
}
function fnValidForm() {
document.form1.contributionName.className = "";
document.form1.contributionVersion.className = "";
document.form1.contributionSize.className = "";
document.form1.contributionDescription.className = "";
document.form1.cryptography.className = "";
document.form1.cryptographyAlgorithm.className = "";
if(document.form1.committer_id.value == "") {
document.form1.committer_id.focus();
alert("Please select a committer.");
return false;
}
if(document.form1.projectlead_id.value == "") {
document.form1.projectlead_id.focus();
alert("This contribution must be approved by the PMC. Please select the individual who approved the contribution.");
return false;
}
if(document.form1.component_id.value == "") {
document.form1.component_id.focus();
alert("Please choose a project.");
return false;
}
if(document.form1.contributionName.value == "") {
document.form1.contributionName.className = "inputInvalid";
document.form1.contributionName.focus();
alert("Please enter a name for this contribution.");
return false;
}
if(document.form1.contributionVersion.value == "") {
document.form1.contributionVersion.className = "inputInvalid";
document.form1.contributionVersion.focus();
alert("Please enter a version for this contribution.");
return false;
}
if(document.form1.contributionSize.value == "") {
document.form1.contributionSize.className = "inputInvalid";
document.form1.contributionSize.focus();
alert("Please enter a size for this contribution.");
return false;
}
if(document.form1.contributionDescription.value == "") {
document.form1.contributionDescription.className = "inputInvalid";
document.form1.contributionDescription.focus();
alert("Please enter a description for this contribution.");
return false;
}
if(!document.form1.crypto[0].checked && !document.form1.crypto[1].checked) {
alert("Does this contribution involve cryptography? Please choose yes/no.");
return false;
}
if(document.form1.crypto[0].checked && (document.form1.cryptography.value == "" || document.form1.cryptographyAlgorithm.value == "")) {
document.form1.cryptography.className = "inputInvalid";
document.form1.cryptographyAlgorithm.className = "inputInvalid";
document.form1.cryptography.focus();
alert("Please enter the cryptography information requested.");
return false;
}
document.form1.submit();
}
</script>
<?php
include("../html/footer.php");
?>