2018-10-15 14:42:47 +05:30
|
|
|
- redirect_params = { redirect: @redirect } if @redirect
|
|
|
|
|
2020-04-22 19:07:51 +05:30
|
|
|
.card-body.rendered-terms{ data: { qa_selector: 'terms_content' } }
|
2018-10-15 14:42:47 +05:30
|
|
|
= markdown_field(@term, :terms)
|
2018-11-08 19:23:39 +05:30
|
|
|
- if current_user
|
|
|
|
.card-footer.footer-block.clearfix
|
|
|
|
- if can?(current_user, :accept_terms, @term)
|
|
|
|
.float-right
|
2020-04-22 19:07:51 +05:30
|
|
|
= button_to accept_term_path(@term, redirect_params), class: 'btn btn-success prepend-left-8', data: { qa_selector: 'accept_terms_button' } do
|
2018-11-08 19:23:39 +05:30
|
|
|
= _('Accept terms')
|
|
|
|
- else
|
|
|
|
.pull-right
|
|
|
|
= link_to root_path, class: 'btn btn-success prepend-left-8' do
|
|
|
|
= _('Continue')
|
|
|
|
- if can?(current_user, :decline_terms, @term)
|
|
|
|
.float-right
|
|
|
|
= button_to decline_term_path(@term, redirect_params), class: 'btn btn-default prepend-left-8' do
|
|
|
|
= _('Decline and sign out')
|