From 26785b54d640d7402cbdb4dbcc7f1746ecd9607c Mon Sep 17 00:00:00 2001 From: tylersdejong Date: Wed, 28 Feb 2024 10:58:41 -0800 Subject: [PATCH] Fixed bug that prevents autofitting (have to correct input values to nearest rewuired decimal place), UI updates. --- frontend/rctool/forms.py | 4 +- .../templates/rctool/components/navbar.html | 2 +- frontend/rctool/templates/rctool/home.html | 6 +-- .../develop/develop_input_settings.html | 38 +++++++++--------- .../rctool/develop/rctool_develop_js.html | 29 +++++++++++-- frontend/static/css/header.css | 7 ++-- frontend/static/css/main.css | 2 +- frontend/static/css/rctool_develop.css | 9 +++++ frontend/static/images/HydRALogo_text.png | Bin 0 -> 38631 bytes 9 files changed, 63 insertions(+), 34 deletions(-) create mode 100644 frontend/static/images/HydRALogo_text.png diff --git a/frontend/rctool/forms.py b/frontend/rctool/forms.py index 2a7512ba..3690f3b2 100644 --- a/frontend/rctool/forms.py +++ b/frontend/rctool/forms.py @@ -14,8 +14,8 @@ class import_rc_data(forms.Form): class develop_rc(forms.Form): set_offset1 = forms.FloatField(label="offset 1", widget=forms.NumberInput(attrs={'class': 'form-control form-control-sm', 'id':'offset1', 'style': 'font-size: 11.5px;'})) set_offset2 = forms.FloatField(label="offset 2", widget=forms.NumberInput(attrs={'class': 'form-control form-control-sm', 'id':'offset2', 'style': 'font-size: 11.5px;'})) - set_breakpoint1 = forms.IntegerField(label="number of breakpoints", widget=forms.NumberInput(attrs={'class form-control-sm': 'form-control','id':'breakpoint1', 'min':1, 'value':1, 'style': 'font-size: 11.5px;'})) - set_breakpoint2 = forms.IntegerField(label="number of breakpoints", widget=forms.NumberInput(attrs={'class form-control-sm': 'form-control', 'id':'breakpoint2', 'min':1, 'value':1, 'style': 'font-size: 11.5px;'})) + set_breakpoint1 = forms.IntegerField(label="number of breakpoints", widget=forms.NumberInput(attrs={'class form-control-sm': 'form-control','id':'breakpoint1', 'value':1, 'style': 'font-size: 11.5px;'})) + set_breakpoint2 = forms.IntegerField(label="number of breakpoints", widget=forms.NumberInput(attrs={'class form-control-sm': 'form-control', 'id':'breakpoint2', 'value':1, 'style': 'font-size: 11.5px;'})) class export_rc_data(forms.Form): export_filetype = forms.ChoiceField(label='export type', widget=forms.Select(attrs={'class': 'form-control form-control-sm', 'style': 'font-size: 11.5px;'}), choices=[('session settings', 'session settings'), ('session results (pdf)', 'session results (pdf)'), ('session results (csv)', 'session results (csv)')]) diff --git a/frontend/rctool/templates/rctool/components/navbar.html b/frontend/rctool/templates/rctool/components/navbar.html index c089e700..41ee0a35 100644 --- a/frontend/rctool/templates/rctool/components/navbar.html +++ b/frontend/rctool/templates/rctool/components/navbar.html @@ -3,7 +3,7 @@