1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-16 08:02:40 +01:00
invoiceninja/resources/views/partials/accept_terms.blade.php

48 lines
1.6 KiB
PHP
Raw Normal View History

2018-03-12 14:37:05 +01:00
{!! Former::open('/accept_terms')->id('acceptTermsForm')->rules([
'accepted_terms' => 'required',
2018-05-08 20:47:41 +02:00
'accepted_privacy' => 'required',
2018-03-12 14:37:05 +01:00
]) !!}
<div class="modal fade" id="acceptTermsModal" tabindex="-1" role="dialog"
data-backdrop="static" aria-labelledby="acceptTermsModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="myModalLabel">{{ trans('texts.terms_of_service') }}</h4>
</div>
<div class="container" style="width: 100%; padding-bottom: 0px !important">
<div class="panel panel-default">
<div class="panel-body">
2018-03-12 19:57:46 +01:00
{!! Former::checkbox('accepted_terms')->text(trans('texts.agree_to_terms', [
'terms' => link_to(Utils::getTermsLink(), trans('texts.terms_of_service'), ['target' => '_blank']),
2018-05-08 20:47:41 +02:00
]))->raw()->value(1) !!}
{!! Former::checkbox('accepted_privacy')->text(trans('texts.agree_to_terms', [
'terms' => link_to(Utils::getPrivacyLink(), trans('texts.privacy_policy'), ['target' => '_blank']),
2018-03-12 19:57:46 +01:00
]))->raw()->value(1) !!}
2018-03-12 14:37:05 +01:00
</div>
</div>
</div>
<div class="modal-footer">
{!! Button::success(trans('texts.accept'))->submit() !!}
</div>
</div>
</div>
</div>
{!! Former::close() !!}
<script type="text/javascript">
function acceptLatestTerms()
{
$('#acceptTermsForm').submit();
}
$(function() {
$('#acceptTermsModal').modal('show');
})
</script>