1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Working on recover license

This commit is contained in:
Hillel Coren 2017-10-22 17:38:11 +03:00
parent 66581b6f57
commit 252bacdc89
2 changed files with 43 additions and 5 deletions

View File

@ -2496,6 +2496,12 @@ $LANG = array(
'enable_bitcoin' => 'Accept Bitcoin',
'iban' => 'IBAN',
'sepa_authorization' => 'By providing your IBAN and confirming this payment, you are authorizing :company and Stripe, our payment service provider, to send instructions to your bank to debit your account and your bank to debit your account in accordance with those instructions. You are entitled to a refund from your bank under the terms and conditions of your agreement with your bank. A refund must be claimed within 8 weeks starting from the date on which your account was debited.',
'recover_license' => 'Recover License',
'purchase' => 'Purchase',
'recover' => 'Recover',
'apply' => 'Apply',
'recover_white_label_header' => 'Recover White Label License',
'apply_white_label_header' => 'Apply White Label License',
);

View File

@ -45,19 +45,20 @@
<div class="modal-footer" id="signUpFooter" style="margin-top: 0px">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('texts.close') }} </button>
<button type="button" class="btn btn-primary" onclick="buyWhiteLabel()">{{ trans('texts.buy_license') }} </button>
<button type="button" class="btn btn-primary" onclick="showApplyLicense()">{{ trans('texts.apply_license') }} </button>
<!-- <button type="button" class="btn btn-primary" onclick="showRecoverLicense()">{{ trans('texts.recover') }} </button> -->
<button type="button" class="btn btn-primary" onclick="showApplyLicense()">{{ trans('texts.apply') }} </button>
<button type="button" class="btn btn-success" onclick="buyWhiteLabel()">{{ trans('texts.purchase') }} </button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="whiteLabelLicenseModal" tabindex="-1" role="dialog" aria-labelledby="whiteLabelLicenseModal" aria-hidden="true">
<div class="modal fade" id="applyWhiteLabelModal" tabindex="-1" role="dialog" aria-labelledby="applyWhiteLabelModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title" id="myModalLabel">{{ trans('texts.white_label_header') }}</h4>
<h4 class="modal-title" id="myModalLabel">{{ trans('texts.apply_white_label_header') }}</h4>
</div>
<div class="container" style="width: 100%; padding-bottom: 0px !important">
@ -78,6 +79,32 @@
</div>
</div>
<div class="modal fade" id="recoverWhiteLabelModal" tabindex="-1" role="dialog" aria-labelledby="recoverWhiteLabelModal" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title" id="myModalLabel">{{ trans('texts.recover_white_label_header') }}</h4>
</div>
<div class="container" style="width: 100%; padding-bottom: 0px !important">
<div class="panel panel-default">
<div class="panel-body">
{!! Former::open()->rules(['white_label_license_email' => 'required|email']) !!}
{!! Former::input('white_label_license_email')->label('email') !!}
{!! Former::close() !!}
</div>
</div>
</div>
<div class="modal-footer" id="signUpFooter" style="margin-top: 0px">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ trans('texts.close') }} </button>
<button type="button" class="btn btn-success" onclick="applyLicense()">{{ trans('texts.submit') }} </button>
</div>
</div>
</div>
</div>
@endif
@ -122,7 +149,12 @@
function showApplyLicense() {
$('#whiteLabelModal').modal('hide');
$('#whiteLabelLicenseModal').modal('show');
$('#applyWhiteLabelModal').modal('show');
}
function showRecoverLicense() {
$('#whiteLabelModal').modal('hide');
$('#recoverWhiteLabelModal').modal('show');
}
function applyLicense() {