Commit 7f7c6b10bb324b9d2812f85b7cf0effa3a18b94e

Authored by Antoine Goutenoir
1 parent 22f95a44
Exists in master

Disable RFI in the form.

flaskr/controllers/main_controller.py
... ... @@ -48,6 +48,7 @@ def get_emission_models():
48 48  
49 49  
50 50 @main.route('/favicon.ico')
  51 +@cache.cached(timeout=10000)
51 52 def favicon(): # we want it served from the root, not from static/
52 53 return send_from_directory(
53 54 join(main.root_path, '..', 'static', 'img'),
... ...
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>
... ...