summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/trading/templates/trading/list.html4
-rw-r--r--app/trading/templates/trading/update_options_form.html13
-rw-r--r--app/trading/views.py5
3 files changed, 6 insertions, 16 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 %}
diff --git a/app/trading/views.py b/app/trading/views.py
index 9e19c05..2fb960a 100644
--- a/app/trading/views.py
+++ b/app/trading/views.py
@@ -47,6 +47,7 @@ class LuxOptionsTradeDetailView(UpdateView):
fields = [
'symbol',
'status',
+ 'close_date',
'entry_price',
'stop_price',
'target_price',
@@ -54,9 +55,11 @@ class LuxOptionsTradeDetailView(UpdateView):
'expiration_date',
'strike_price',
'contract_price',
+ 'contract_close_price',
'number_contracts',
'delta',
- 'notes'
+ 'notes',
+ 'pl'
]
template_name = 'trading/update_options_form.html'
success_url = '/trading/'