Created
September 5, 2015 15:05
-
-
Save akirk/00c3055b89dba1347bea to your computer and use it in GitHub Desktop.
test for foodcoops/foodsoft#376
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script type="text/javascript"> | |
var I18n = { | |
l: function() {} | |
}; | |
</script> | |
<script src="app/assets/javascripts/ordering.js"></script> | |
</head> | |
<body> | |
<p>quantity: <input id="q_0"/></p> | |
<p>tolerance: <input id="t_0"/></p> | |
<p>units: <span id="units_0"></span></p> | |
<p>quantity-used: <span id="q_used_0"></span></p> | |
<p>quantity-unused: <span id="q_unused_0"></span></p> | |
<p>quantity-total: <span id="q_total_0"></span></p> | |
<p>tolerance-used: <span id="t_used_0"></span></p> | |
<p>tolerance-unused: <span id="t_unused_0"></span></p> | |
<p>tolerance-total: <span id="t_total_0"></span></p> | |
<p>missing: <span id="missing_units_0"></span></p> | |
<button onclick="update(0,Number($('#q_0').val()),Number($('#t_0').val())+1);return false">+t</button> | |
<button onclick="update(0,Number($('#q_0').val()),Number($('#t_0').val())-1);return false">-t</button> | |
<button onclick="update(0,Number($('#q_0').val())+1,Number($('#t_0').val()));return false">+q</button> | |
<button onclick="update(0,Number($('#q_0').val())-1,Number($('#t_0').val()));return false">-q</button> | |
<script type="text/javascript"> | |
addData(0, /*itemPrice*/ 10, /*itemUnit*/ 5, /*itemSubtotal*/ 0, /*itemQuantityOthers*/ 2, /*itemToleranceOthers*/ 1, /*allocated*/ 0, /*available*/ -1); | |
update(0, /*quantity*/ 0, /*tolerance*/ 0); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment