<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Submit Dialog</title>
<!--
////////////////////////////////////////////////////////////////////////////
// Rev: 2010.1 (P4JsApi 1.0 Example)
//
// NOTE: This is an example only, and should be modified to work in
// a production environment! No warranty is expressed or implied.
// Scripts should be tested thoroughly on a test server before
// using in a production environment.
//
////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2010, Perforce Software, Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
// ARE DISCLAIMED. IN NO EVENT SHALL PERFORCE SOFTWARE, INC. BE LIABLE FOR ANY
// DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
// THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
////////////////////////////////////////////////////////////////////////////
//
// An example of a P4JsApi submit dialog replacement. Uses the Ext JavaScript
// framework.
//
// Note: You will need internet access to use Firebug Lite.
//
////////////////////////////////////////////////////////////////////////////
-->
<link rel="stylesheet" type="text/css" href="css/submitDialog_basic.css" />
<script type="text/javascript" src="js/submit_basic.js"></script>
<script type="text/javascript" src="js/prettyprint.js"></script>
</head>
<BODY onload="submitMain();">
<h1>Submit Pending Changelist</h1>
<h2>Description</h2>
<h3 id="desc_header"> </h3>
<textarea id="description" name="description" rows="10" cols="145"></textarea>
<h2>Files</h2>
<table height="20">
<tr >
<td>
<h3 id="files_header"></h3>
</td>
</tr>
</table>
<label for="allfiles">
<input type="checkbox" checked="checked" id="allfiles" onclick="checkAll('Files',this.checked);" />
<b>Check/Uncheck All Files </b>
</label>
<ul class="checklist" id="filelist"></ul>
<table width="1028" border="0">
<tr>
<td align="left" valign="top">
<b>On submit:</b>
<select id="fileoption_submit" class="dropdown">
<option selected="selected">Submit all selected files</option>
<option>Don't submit unchanged files</option>
<option>Revert unchanged files</option>
</select>
</td>
<td align="right" valign="top">
<input type="checkbox" id='recheckout' />
<b>Check out submitted files after submit</b>
</td>
</tr>
</table>
<h2>Jobs</h2>
<label for="alljobs">
<input type="checkbox" checked="checked" id="alljobs" onclick="checkAll('Jobs',this.checked);" />
<b>Check/Uncheck All Jobs</b>
</label>
<ul class="checklist" id="joblist"></ul>
<table width="1028" border="0">
<tr>
<td valign="center">
<input type="button" id="addjob" onclick="addJob()" value="Add Job:" />
<textarea id="jobAdd" name="jobAdd" rows="1" cols="12"></textarea>
</td>
<td align="right" valign="top">
<b>Job status upon submit:</b>
<select id="jobstatus_submit" class="dropdown">
<option selected="selected">closed</option>
<option>suspended</option>
<option>fixed</option>
<option>same</option>
</select>
</td>
</tr>
<tr>
<td align="left">
<input type="button" id="save" onclick="saveChange()" value="Save Changelist" />
</td>
<td align="right">
<input type="button" id="cancel" onclick="P4JsApi.accepted()" value="Cancel" />
<input type="button" id="submit" onclick="submitChanges()" value="Submit" />
</td>
</tr>
</table>
<p><b>Note</b>: This example only works with numbered changelists, not the default change.</p>
<textarea class="hidden" id="user"></textarea>
<textarea class="hidden" id="change"></textarea>
<textarea class="hidden" id="client"></textarea>
<textarea class="hidden" id="status"></textarea>
<!-- Uncomment below line for debugging inside this page using Firebug Lite
<script type='text/javascript'
src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>-->
</BODY>
</html>