mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
61 lines
2.2 KiB
PHP
61 lines
2.2 KiB
PHP
|
@extends('accounts.nav')
|
||
|
|
||
|
@section('content')
|
||
|
@parent
|
||
|
|
||
|
{{ Former::open_for_files('company/import_map')->addClass('col-md-9 col-md-offset-1') }}
|
||
|
{{ Former::legend('import_clients') }}
|
||
|
{{ Former::file('file')->label(trans('texts.csv_file')) }}
|
||
|
{{ Former::actions( Button::lg_info_submit(trans('texts.upload'))->append_with_icon('open') ) }}
|
||
|
{{ Former::close() }}
|
||
|
|
||
|
{{ Former::open('company/export')->addClass('col-md-9 col-md-offset-1') }}
|
||
|
{{ Former::legend('export_clients') }}
|
||
|
{{ Former::actions( Button::lg_primary_submit(trans('texts.download'))->append_with_icon('download-alt') ) }}
|
||
|
{{ Former::close() }}
|
||
|
|
||
|
<p> </p>
|
||
|
<p> </p>
|
||
|
|
||
|
{{ Former::open('company/cancel_account')->addClass('col-md-9 col-md-offset-1 cancel-account') }}
|
||
|
{{ Former::legend('cancel_account') }}
|
||
|
{{ Former::actions( Button::lg_danger_button(trans('texts.cancel_account'), ['onclick' => 'showConfirm()'])->append_with_icon('trash') ) }}
|
||
|
|
||
|
<div class="modal fade" id="confirmCancelModal" tabindex="-1" role="dialog" aria-labelledby="confirmCancelModalLabel" aria-hidden="true">
|
||
|
<div class="modal-dialog" style="min-width:150px">
|
||
|
<div class="modal-content">
|
||
|
<div class="modal-header">
|
||
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||
|
<h4 class="modal-title" id="confirmCancelModalLabel">{{ trans('texts.cancel_account') }}</h4>
|
||
|
</div>
|
||
|
|
||
|
<div style="background-color: #fff; padding-left: 16px; padding-right: 16px">
|
||
|
<p>{{ trans('texts.cancel_account_message') }}</p>
|
||
|
<p>{{ Former::textarea('reason')->placeholder(trans('texts.reason_for_canceling'))->raw() }}</p>
|
||
|
</div>
|
||
|
|
||
|
<div class="modal-footer" style="margin-top: 0px">
|
||
|
<button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('texts.go_back') }}</button>
|
||
|
<button type="button" class="btn btn-primary" onclick="confirmCancel()">{{ trans('texts.cancel_account') }}</button>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
{{ Former::close() }}
|
||
|
|
||
|
|
||
|
<script type="text/javascript">
|
||
|
|
||
|
function showConfirm() {
|
||
|
$('#confirmCancelModal').modal('show');
|
||
|
}
|
||
|
|
||
|
function confirmCancel() {
|
||
|
$('form.cancel-account').submit();
|
||
|
}
|
||
|
|
||
|
</script>
|
||
|
|
||
|
@stop
|