quintel / energymixer

Answer multiple-choice questions to determine a future energy scenario – Not maintained
http://mixer.et-model.com
1 stars 0 forks source link

Cannot save new inputs when there are empty fields #234

Closed wouterterlouw closed 10 years ago

wouterterlouw commented 10 years ago

I am trying to add new inputs for the mixer by various questions. (Because the chemical industry is now a seperate sub-sector.) When I fill all four empty fields, I can save the new inputs. However, if some of them remain empty, I get this message and nothing is saved:

screen shot 2014-01-29 at 13 27 05

I tried to add industry_useful_demand_for_chemical_useable_heat with value 1.5 on http://mixer.et-model.com/admin/answers/89/edit

Assigning @antw and including @dennisschoenmakers

dennisquintel commented 10 years ago

This seems to be a Javascript thing, since the request never is send to the server apparently.

antw commented 10 years ago

@wouterterlouw Should now be fixed and deployed.

It was HTML5 form validation, enabled by default in simple_form.

wouterterlouw commented 10 years ago

:+1: Thanks @antw