Commit 7f7c6b10bb324b9d2812f85b7cf0effa3a18b94e
1 parent
22f95a44
Exists in
master
Disable RFI in the form.
Showing
3 changed files
with
21 additions
and
20 deletions
Show diff stats
flaskr/controllers/main_controller.py
flaskr/forms.py
... | ... | @@ -81,22 +81,22 @@ class EstimateForm(FlaskForm): |
81 | 81 | "placeholder": form_content['destination_addresses']['placeholder'] |
82 | 82 | }, |
83 | 83 | ) |
84 | - compute_optimal_destination = BooleanField( | |
85 | - label=form_content['compute_optimal_destination']['label'], | |
86 | - description=form_content['compute_optimal_destination']['description'], | |
87 | - default=False, | |
88 | - validators=[ | |
89 | - validators.Optional(), | |
90 | - ], | |
91 | - ) | |
92 | - use_atmosfair_rfi = BooleanField( | |
93 | - label=form_content['use_atmosfair_rfi']['label'], | |
94 | - description=form_content['use_atmosfair_rfi']['description'], | |
95 | - default=False, | |
96 | - validators=[ | |
97 | - validators.Optional(), | |
98 | - ], | |
99 | - ) | |
84 | + # compute_optimal_destination = BooleanField( | |
85 | + # label=form_content['compute_optimal_destination']['label'], | |
86 | + # description=form_content['compute_optimal_destination']['description'], | |
87 | + # default=False, | |
88 | + # validators=[ | |
89 | + # validators.Optional(), | |
90 | + # ], | |
91 | + # ) | |
92 | + # use_atmosfair_rfi = BooleanField( | |
93 | + # label=form_content['use_atmosfair_rfi']['label'], | |
94 | + # description=form_content['use_atmosfair_rfi']['description'], | |
95 | + # default=False, | |
96 | + # validators=[ | |
97 | + # validators.Optional(), | |
98 | + # ], | |
99 | + # ) | |
100 | 100 | |
101 | 101 | def validate(self): |
102 | 102 | check_validate = super(EstimateForm, self).validate() | ... | ... |
flaskr/templates/estimate.html
... | ... | @@ -84,10 +84,10 @@ |
84 | 84 | {# <div class="form-check form-group">#} |
85 | 85 | {# {{ render_checkbox(form.compute_optimal_destination) }}#} |
86 | 86 | {# </div>#} |
87 | - <div class="form-check form-group"> | |
88 | - {{ render_checkbox(form.use_atmosfair_rfi) }} | |
89 | - <small class="form-text text-muted">Disabled. Work in Progress. RFI=1.9</small> | |
90 | - </div> | |
87 | +{# <div class="form-check form-group">#} | |
88 | +{# {{ render_checkbox(form.use_atmosfair_rfi) }}#} | |
89 | +{# <small class="form-text text-muted">Disabled. Work in Progress. RFI=1.9</small>#} | |
90 | +{# </div>#} | |
91 | 91 | <div class="form-group"> |
92 | 92 | {{ render_field(form.comment) }} |
93 | 93 | </div> | ... | ... |