app/views/manage/questionnaires/_form.html.haml in hackathon_manager-0.2.0 vs app/views/manage/questionnaires/_form.html.haml in hackathon_manager-0.3.0
- old
+ new
@@ -47,11 +47,14 @@
= f.input :is_bus_captain, as: :formatted_boolean, label: "Is Bus Captain", disabled: !@questionnaire.eligible_for_a_bus?
- if !@questionnaire.eligible_for_a_bus?
%p (school not eligible for bus)
%p
- Please read the
- %a{href:"/assets/BrickHack_ReleaseAgreement.pdf", target:"_blank"} BrickHack Agreement
- = f.input :agreement_accepted, as: :formatted_boolean, label: "I accept the BrickHack Agreement", input_html: { "data-validate" => "presence" }
+ %small
+ Please read the
+ = link_to asset_url(Rails.configuration.hackathon['agreement_pdf_asset']), target: '_blank' do
+ #{Rails.configuration.hackathon['name']} Agreement
+ %span.fa.fa-external-link.icon-space-l-half
+ = f.input :agreement_accepted, as: :formatted_boolean, label: "I accept the #{Rails.configuration.hackathon['name']} Agreement", input_html: { "data-validate" => "presence" }
.center
= f.button :submit, value: ( @questionnaire.new_record? ? 'Create' : 'Save' )