diff options
author | luxagraf <sng@luxagraf.net> | 2021-08-30 09:14:33 -0400 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2021-08-30 09:14:33 -0400 |
commit | e5cb45170ff352c9066eabb3579e9d77a34c6aa0 (patch) | |
tree | c412d65decf5e4ba78e5ba56fffd3f540b77ac84 /app/trading/templates | |
parent | 0f54421cdf75acadae780fa29c692326c358ebab (diff) |
trad: added the ability to close and options trade
Diffstat (limited to 'app/trading/templates')
-rw-r--r-- | app/trading/templates/trading/list.html | 4 | ||||
-rw-r--r-- | app/trading/templates/trading/update_options_form.html | 13 |
2 files changed, 2 insertions, 15 deletions
diff --git a/app/trading/templates/trading/list.html b/app/trading/templates/trading/list.html index a132cd6..f8957bd 100644 --- a/app/trading/templates/trading/list.html +++ b/app/trading/templates/trading/list.html @@ -88,8 +88,8 @@ <th>Total Invested</th> <th>Risk per</th> <th>$ Trade Risk</th> - <th>% Trade at Risk</th> - <th>% Portfolio at Risk</th> + <th>% Trade Risk</th> + <th>% Portfolio Risk</th> <th>Profit Goal</th> <th>Risk/Reward</th> <th>Price Calc</th> diff --git a/app/trading/templates/trading/update_options_form.html b/app/trading/templates/trading/update_options_form.html index a352cb3..3d40738 100644 --- a/app/trading/templates/trading/update_options_form.html +++ b/app/trading/templates/trading/update_options_form.html @@ -51,18 +51,5 @@ function calcPercentPortfolio() { id_form.addEventListener("input", function (e) { calcPercentPortfolio(); }); -var form = document.getElementById('id_form'); -function processForm(e) { - if (e.preventDefault) e.preventDefault(); - if(!confirm("Do you really want to do this?")) { - return false; - } - form.submit(); -} -if (form.attachEvent) { - form.attachEvent("submit", processForm); -} else { - form.addEventListener("submit", processForm); -} </script> {% endblock %} |