Rename the form element to calculator_version.
This commit is contained in:
parent
f530a52886
commit
c9fec0ac05
3 changed files with 4 additions and 4 deletions
|
|
@ -42,7 +42,7 @@ class FormData:
|
|||
mask_type: str
|
||||
mask_wearing_option: str
|
||||
mechanical_ventilation_type: str
|
||||
model_version: str
|
||||
calculator_version: str
|
||||
opening_distance: float
|
||||
event_month: str
|
||||
room_number: str
|
||||
|
|
@ -552,7 +552,7 @@ def baseline_raw_form_data():
|
|||
'mask_type': 'Type I',
|
||||
'mask_wearing_option': 'mask_off',
|
||||
'mechanical_ventilation_type': '',
|
||||
'model_version': calculator.__version__,
|
||||
'calculator_version': calculator.__version__,
|
||||
'opening_distance': '0.2',
|
||||
'event_month': 'January',
|
||||
'room_number': '123',
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ v{{ calculator_version }} <span style="float:right; font-weight:bold">Please sen
|
|||
{% endif %}
|
||||
{{ xsrf_form_html }}
|
||||
|
||||
<input type="hidden" name="model_version" value="{{ calculator_version }}">
|
||||
<input type="hidden" name="calculator_version" value="{{ calculator_version }}">
|
||||
|
||||
<div style="width: 33%; float:left;">
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@
|
|||
<h1 style="display:inline-block; vertical-align:middle; margin-left:-30pt;">Report</h1>
|
||||
</div>
|
||||
|
||||
<p class=subtitle> Created {{ creation_date }} using model version v{{ form.model_version }}</p><br>
|
||||
<p class=subtitle> Created {{ creation_date }} using CARA calculator version v{{ form.calculator_version }}</p><br>
|
||||
|
||||
<p><strong>Applicable rules: <br>
|
||||
Please ensure that this scenario conforms to current <a href="https://hse.cern/covid-19-information"> CERN HSE rules</a> (minimum ventilation requirements, mask wearing and the maximum number of people permitted in a space).</strong> <br>
|
||||
|
|
|
|||
Loading…
Reference in a new issue