mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
UI to apply white label license
This commit is contained in:
parent
37ce8dbd76
commit
040fb76a48
@ -154,6 +154,8 @@ class StartupCheck
|
||||
$company->save();
|
||||
|
||||
Session::flash('message', trans('texts.bought_white_label'));
|
||||
} else {
|
||||
Session::flash('error', trans('texts.invalid_white_label_license'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -2163,6 +2163,12 @@ $LANG = array(
|
||||
'currency_symbol' => 'Symbol',
|
||||
'currency_code' => 'Code',
|
||||
|
||||
'buy_license' => 'Buy License',
|
||||
'apply_license' => 'Apply License',
|
||||
'submit' => 'Submit',
|
||||
'white_label_license_key' => 'License Key',
|
||||
'invalid_white_label_license' => 'The white label license is not valid',
|
||||
|
||||
);
|
||||
|
||||
return $LANG;
|
||||
|
@ -142,10 +142,6 @@
|
||||
$('#signUpModal').modal('hide');
|
||||
}
|
||||
|
||||
function buyProduct(affiliateKey, productId) {
|
||||
window.open('{{ Utils::isNinjaDev() ? '' : NINJA_APP_URL }}/license?affiliate_key=' + affiliateKey + '&product_id=' + productId + '&return_url=' + window.location);
|
||||
}
|
||||
|
||||
function hideMessage() {
|
||||
$('.alert-info').fadeOut();
|
||||
$.get('/hide_message', function(response) {
|
||||
@ -603,51 +599,7 @@
|
||||
]) !!}
|
||||
@endif
|
||||
@else
|
||||
{{ trans('texts.powered_by') }}
|
||||
{{-- Per our license, please do not remove or modify this section. --}}
|
||||
{!! link_to('https://www.invoiceninja.com/?utm_source=powered_by', 'InvoiceNinja.com', ['target' => '_blank', 'title' => 'invoiceninja.com']) !!} -
|
||||
{!! link_to(RELEASES_URL, 'v' . NINJA_VERSION, ['target' => '_blank', 'title' => trans('texts.trello_roadmap')]) !!} |
|
||||
@if (Auth::user()->account->hasFeature(FEATURE_WHITE_LABEL))
|
||||
{{ trans('texts.white_labeled') }}
|
||||
@else
|
||||
<a href="#" onclick="loadImages('#whiteLabelModal');$('#whiteLabelModal').modal('show');">{{ trans('texts.white_label_link') }}</a>
|
||||
|
||||
<div class="modal fade" id="whiteLabelModal" tabindex="-1" role="dialog" aria-labelledby="whiteLabelModalLabel" 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">×</button>
|
||||
<h4 class="modal-title" id="myModalLabel">{{ trans('texts.white_label_header') }}</h4>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
<p>{{ trans('texts.white_label_text', ['price' => WHITE_LABEL_PRICE])}}</p>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h4>{{ trans('texts.before') }}</h4>
|
||||
<img src="{{ BLANK_IMAGE }}" data-src="{{ asset('images/pro_plan/white_label_before.png') }}" width="100%" alt="before">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h4>{{ trans('texts.after') }}</h4>
|
||||
<img src="{{ BLANK_IMAGE }}" data-src="{{ asset('images/pro_plan/white_label_after.png') }}" width="100%" alt="after">
|
||||
</div>
|
||||
</div><br/>
|
||||
<p>{!! trans('texts.reseller_text', ['email' => HTML::mailto('contact@invoiceninja.com')]) !!}</p>
|
||||
</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>
|
||||
{{-- DropdownButton::success_lg(trans('texts.buy'), [
|
||||
['url' => URL::to(""), 'label' => trans('texts.pay_with_paypal')],
|
||||
['url' => URL::to(""), 'label' => trans('texts.pay_with_card')]
|
||||
])->addClass('btn-lg') --}}
|
||||
<button type="button" class="btn btn-primary" onclick="buyProduct('{{ WHITE_LABEL_AFFILIATE_KEY }}', '{{ PRODUCT_WHITE_LABEL }}')">{{ trans('texts.buy') }} </button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@include('partials.white_label')
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user