| <!-- |
| * Copyright (c) 2023 Boeing |
| * |
| * This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License 2.0 |
| * which is available at https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| * |
| * Contributors: |
| * Boeing - initial API and implementation |
| --> |
| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <meta charset="UTF-8"></meta> |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"></meta> |
| <meta name="viewport" content="width=device-width, initial-scale=1"></meta> |
| |
| <link rel="stylesheet" type="text/css" href="/ajax/libs/bootstrap/3.3.2/css/bootstrap.min.css"></link> |
| |
| <title>ATS - New Action</title> |
| |
| <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> |
| <!--[if lt IE 9]> |
| <script src="/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script> |
| <script src="/ajax/libs/respond/1.4.2/respond.min.js"></script> |
| <![endif]--> |
| </head> |
| <body> |
| <div class="container"> |
| <div> |
| <h2>ATS - Create new ATS Action</h2> |
| </div> |
| |
| <form id="oseeAppForm" class="well"> |
| <label>Title</label> <input type="text" style="width:800px;" id="ats_title" name="title"/><br/> |
| <label>Actionable Item</label> <input placeholder="type to filter" type="text" id="actionableItems" list="actionableItemList" /><br/> |
| <label>Description</label><br/> |
| <textarea name="textarea" id="desc" style="width:800px;height:200px;"></textarea><br/> |
| <label>Change Type</label> |
| <select id="changeType" > |
| <option selected="selected" value="Improvement">Improvement</option> |
| <option value="Problem">Problem</option> |
| <option value="Refinement">Refinement</option> |
| <option value="Support">Support</option> |
| </select> |
| <label>Priority</label> |
| <select id="priority" > |
| <option value="1">1 (High)</option> |
| <option value="2">2</option> |
| <option selected="selected" value="3">3 (Med)</option> |
| <option value="4">4</option> |
| <option value="5 (Low)">5</option> |
| </select> |
| <label>Deadline</label> <input type="date" name="deadline"><br/> |
| <label>User Id</label> <input type="text" id="userId" /><br/> |
| <?ActionableItemDataList?> |
| <br/><br/> |
| <input type="button" id="createButton" value="Create" class="btn btn-primary"/> |
| <input type="button" id="clearButton" value="Clear" class="btn btn"/> |
| <input type="button" id="populateButton" value="Populate" class="btn btn"/> |
| |
| </form> |
| </div> |
| |
| <script src="/ats/lib/atsCore.js"></script> |
| <script> |
| function createAction() { |
| post_with_parms("/ats/action", getParams()); |
| } |
| |
| function populateTestData() { |
| document.getElementById('ats_title').value = 'Test Action - Delete Me'; |
| document.getElementById('desc').value = 'This is my description'; |
| document.getElementById("actionableItems").value = 'SAW Code'; |
| document.getElementById("changeType").value = 'Improvement'; |
| document.getElementById("userId").value = 'Joe Smith'; |
| } |
| |
| function clearTestData() { |
| document.getElementById('ats_title').value = ''; |
| document.getElementById('desc').value = ''; |
| document.getElementById("actionableItems").value = ''; |
| document.getElementById("changeType").value = ''; |
| document.getElementById("userId").value = ''; |
| } |
| |
| |
| var button = document.getElementById("createButton"); |
| button.addEventListener("click", createAction); |
| var button2 = document.getElementById("populateButton"); |
| button2.addEventListener("click", populateTestData); |
| var button3 = document.getElementById("clearButton"); |
| button3.addEventListener("click", clearTestData); |
| </script> |
| </body> |
| </html> |