-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added separate UIs and tests for them, ready for integration.
- Loading branch information
Manuel Perez Belmonte
committed
Sep 4, 2017
1 parent
9e4ca75
commit 8e4fd02
Showing
13 changed files
with
523 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>ElasTest | ECE</title> | ||
</head> | ||
<body> | ||
<form method="get" action="/costmodel"> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Get Cost Model Info</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td> | ||
<tr th:each="costModel: ${costModels}"> | ||
<td th:text="${costModel.description}">planId</td> | ||
<td> | ||
<input type="radio" name="costModelId" th:value="${costModel.id}"> | ||
</td> | ||
</tr> | ||
</td> | ||
<td> | ||
<button id="getCostModelButton">Get Cost Model</button> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>ElasTest | ECE</title> | ||
</head> | ||
<body> | ||
<form method="post" action="/costmodel"> | ||
<table> | ||
<tbody> | ||
<tr> | ||
<th>Create Cost Model</th> | ||
<th></th> | ||
<br> | ||
</tr> | ||
<tr> | ||
<td>Cost Model Name</td> | ||
<td><input type="text" name="name"></td> | ||
</tr> | ||
<tr> | ||
<td>Cost Model Description</td> | ||
<td><input type="text" name="description"></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table id="fixTable"> | ||
<tbody> | ||
<tr> | ||
<th> | ||
Fix Costs | ||
</th> | ||
<th> | ||
<button type="button" onclick="addFixRow()">Add Row</button> | ||
</th> | ||
</tr> | ||
<tr> | ||
<td><input type="text" name="fixNames"></td> | ||
<td><input type="number" name="fixValues"></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<table id="varTable"> | ||
<tbody> | ||
|
||
<tr> | ||
<th> | ||
Variable Costs | ||
</th> | ||
<th> | ||
<button type="button" onclick="addVarRow()">Add Row</button> | ||
</th> | ||
</tr> | ||
<tr> | ||
<td><input type="text" name="varNames"></td> | ||
<td><input type="number" name="varValues"></td> | ||
</tr> | ||
</tr> | ||
</tbody> | ||
</table> | ||
<button id="createCostModel">Add Cost Model</button> | ||
</form> | ||
|
||
<script> | ||
function addFixRow() { | ||
var table = document.getElementById("fixTable"); | ||
var row = table.insertRow(table.size); | ||
var cell1 = row.insertCell(0); | ||
var cell2 = row.insertCell(1); | ||
|
||
cell1.innerHTML = "<input type=\"text\" name=\"fixNames\">"; | ||
cell2.innerHTML = "<input type=\"number\" name=\"fixValues\">"; | ||
} | ||
|
||
function addVarRow() { | ||
var table = document.getElementById("varTable"); | ||
var row = table.insertRow(table.size); | ||
var cell1 = row.insertCell(0); | ||
var cell2 = row.insertCell(1); | ||
|
||
cell1.innerHTML = "<input type=\"text\" name=\"varNames\">"; | ||
cell2.innerHTML = "<input type=\"number\" name=\"varValues\">"; | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>ElasTest | ECE</title> | ||
</head> | ||
<body> | ||
<form method="post" action="/deleteCostModel"> | ||
<table> | ||
<thead> | ||
<tr> | ||
<th>Delete Cost Model</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td> | ||
<tr th:each="costModel: ${costModels}"> | ||
<td th:text="${costModel.description}">planId</td> | ||
<td> | ||
<input type="radio" name="costModelId" th:value="${costModel.id}"> | ||
</td> | ||
</tr> | ||
</td> | ||
<td> | ||
<button id="deleteButton">Delete</button> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</form> | ||
</body> | ||
</html> |
Oops, something went wrong.