mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Removed client fields from buy now buttons UI
This commit is contained in:
parent
cc9c3a3b30
commit
d786c3ec77
@ -236,14 +236,6 @@
|
|||||||
->inlineHelp('buy_now_buttons_warning')
|
->inlineHelp('buy_now_buttons_warning')
|
||||||
->addGroupClass('product-select') !!}
|
->addGroupClass('product-select') !!}
|
||||||
|
|
||||||
{!! Former::inline_checkboxes('client_fields')
|
|
||||||
->onchange('updateBuyNowButtons()')
|
|
||||||
->checkboxes([
|
|
||||||
trans('texts.email') => ['value' => 'email', 'name' => 'email'],
|
|
||||||
trans('texts.first_name') => ['value' => 'first_name', 'name' => 'first_name'],
|
|
||||||
trans('texts.last_name') => ['value' => 'last_name', 'name' => 'last_name'],
|
|
||||||
]) !!}
|
|
||||||
|
|
||||||
{!! Former::inline_radios('landing_page')
|
{!! Former::inline_radios('landing_page')
|
||||||
->onchange('showPaymentTypes();updateBuyNowButtons();')
|
->onchange('showPaymentTypes();updateBuyNowButtons();')
|
||||||
->radios([
|
->radios([
|
||||||
@ -430,13 +422,6 @@ iframe.src = '{{ rtrim(SITE_URL ,'/') }}/view/'
|
|||||||
|
|
||||||
var form = '<form action="' + link + '" method="post" target="_top">' + "\n";
|
var form = '<form action="' + link + '" method="post" target="_top">' + "\n";
|
||||||
|
|
||||||
@foreach (['first_name', 'last_name', 'email'] as $field)
|
|
||||||
if ($('input#{{ $field }}').is(':checked')) {
|
|
||||||
form += '<input type="{{ $field == 'email' ? 'email' : 'text' }}" name="{{ $field }}" placeholder="{{ trans("texts.{$field}") }}" required/>' + "\n";
|
|
||||||
link += '&{{ $field }}=';
|
|
||||||
}
|
|
||||||
@endforeach
|
|
||||||
|
|
||||||
if (redirectUrl) {
|
if (redirectUrl) {
|
||||||
link += '&redirect_url=' + encodeURIComponent(redirectUrl);
|
link += '&redirect_url=' + encodeURIComponent(redirectUrl);
|
||||||
form += '<input type="hidden" name="redirect_url" value="' + redirectUrl + '"/>' + "\n";
|
form += '<input type="hidden" name="redirect_url" value="' + redirectUrl + '"/>' + "\n";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user