BikeBikeBike/app/views/application/_policy.html.haml

19 lines
720 B
Plaintext
Raw Normal View History

2017-05-30 19:48:08 -07:00
- checkboxes ||= false
- less_info ||= false
2015-08-21 19:29:43 -07:00
.policy-agreement
2017-05-30 19:17:02 -07:00
- if @is_policy_page
%h2=_'articles.policy.headings.The_Agreement'
- else
%h3=_'articles.policy.headings.The_Agreement'
%ul
- policies.each do |term|
2017-06-12 21:27:13 -07:00
%li{id: checkboxes ? nil : term, class: checkboxes ? nil : :target}
2017-05-30 19:17:02 -07:00
- 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