BikeBikeBike/app/views/application/_policy.html.haml
2017-06-12 21:27:13 -07:00

19 lines
720 B
Plaintext

- checkboxes ||= false
- less_info ||= false
.policy-agreement
- if @is_policy_page
%h2=_'articles.policy.headings.The_Agreement'
- else
%h3=_'articles.policy.headings.The_Agreement'
%ul
- policies.each do |term|
%li{id: checkboxes ? nil : term, class: checkboxes ? nil : :target}
- if checkboxes
= check_box_tag(term, 1, false, required: true)
.term=_"articles.policy.term.#{term.to_s}", :s, 2
- unless less_info
%h3=_'articles.policy.headings.Why','Why have a Safer Space Agreement?'
%p=_'articles.policy.paragraphs.Why', :p
%h3=_'articles.policy.headings.How','How is the policy enforced?'
%p=_'articles.policy.paragraphs.How', :p