app/views/questionnaires/_form.html.haml in hackathon_manager-0.1.0 vs app/views/questionnaires/_form.html.haml in hackathon_manager-0.2.0
- old
+ new
@@ -1,6 +1,6 @@
-%div{class:"form-container wizard#{action_name == "new" ? " wizard-skip-valid" : ""}"}
+%div{class:"form-container wizard#{@skip_my_mlh_fields ? " wizard-skip-valid" : ""}"}
= simple_form_for @questionnaire, url: url_for(controller: "questionnaires", action: "update"), html: { "data-validate" => "form" } do |f|
- if f.error_notification.present?
= f.error_notification
@@ -63,8 +63,8 @@
%p
%small
I agree to the terms of both the MLH Contest Terms and Conditions and the MLH Privacy Policy. Please note that you may receive pre and post-event informational e-mails and occasional messages about hackathons from MLH as per the MLH Privacy Policy.
= f.input :data_sharing_accepted, as: :formatted_boolean, label: "I accept the MLH data sharing notice", input_html: { "data-validate" => "presence" }
- %div{class:'center'}
+ .center
%button.button{ type: "button", "data-wizard" => "previous" } Previous
= f.button :submit, value: ( @questionnaire.new_record? ? 'Apply' : 'Save' )