mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-06-01 06:34:35 -04:00
Translations for invalid strings
This commit is contained in:
parent
b82e71cd61
commit
f12cf36a29
@ -3215,4 +3215,8 @@ return [
|
|||||||
'checkout_com' => 'Checkout.com',
|
'checkout_com' => 'Checkout.com',
|
||||||
|
|
||||||
'footer_label' => 'Copyright © :year Invoice Ninja. All rights reserved.',
|
'footer_label' => 'Copyright © :year Invoice Ninja. All rights reserved.',
|
||||||
|
|
||||||
|
'credit_card_invalid' => 'Provided credit card number is not valid.',
|
||||||
|
'month_invalid' => 'Provided month is not valid.',
|
||||||
|
'year_invalid' => 'Provided year is not valid.',
|
||||||
];
|
];
|
||||||
|
@ -4,6 +4,10 @@
|
|||||||
@push('head')
|
@push('head')
|
||||||
<meta name="authorize-public-key" content="{{ $public_client_id }}">
|
<meta name="authorize-public-key" content="{{ $public_client_id }}">
|
||||||
<meta name="authorize-login-id" content="{{ $api_login_id }}">
|
<meta name="authorize-login-id" content="{{ $api_login_id }}">
|
||||||
|
|
||||||
|
<meta name="year-invalid" content="{{ ctrans('texts.year_invalid') }}">
|
||||||
|
<meta name="month-invalid" content="{{ ctrans('texts.month_invalid') }}">
|
||||||
|
<meta name="credit-card-invalid" content="{{ ctrans('texts.credit_card_invalid') }}">
|
||||||
@endpush
|
@endpush
|
||||||
|
|
||||||
@section('body')
|
@section('body')
|
||||||
@ -31,20 +35,17 @@
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<dl>
|
<dl>
|
||||||
|
|
||||||
@include('portal.ninja2020.gateways.authorize.credit_card')
|
@include('portal.ninja2020.gateways.authorize.credit_card')
|
||||||
|
<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
|
||||||
<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
|
|
||||||
<dt class="text-sm leading-5 font-medium text-gray-500">
|
<dt class="text-sm leading-5 font-medium text-gray-500">
|
||||||
{{ ctrans('texts.save_as_default') }}
|
{{ ctrans('texts.save_as_default') }}
|
||||||
</dt>
|
</dt>
|
||||||
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
||||||
<input type="checkbox" class="form-checkbox" name="proxy_is_default"
|
<input type="checkbox" class="form-checkbox cursor-pointer" name="proxy_is_default" id="proxy_is_default" />
|
||||||
id="proxy_is_default"/>
|
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
<div class="bg-white px-4 py-5 flex justify-end">
|
<div class="bg-gray-50 px-4 py-5 flex justify-end">
|
||||||
<button type="primary" id="card_button">{{ ctrans('texts.add_payment_method') }}</button>
|
<button type="primary" class="button button-primary" id="card_button">{{ ctrans('texts.add_payment_method') }}</button>
|
||||||
</div>
|
</div>
|
||||||
</dl>
|
</dl>
|
||||||
</div>
|
</div>
|
||||||
@ -56,11 +57,11 @@
|
|||||||
|
|
||||||
@push('footer')
|
@push('footer')
|
||||||
|
|
||||||
@if($gateway->getConfigField('testMode'))
|
@if($gateway->getConfigField('testMode'))
|
||||||
<script src="https://jstest.authorize.net/v1/Accept.js" charset="utf-8"></script>
|
<script src="https://jstest.authorize.net/v1/Accept.js" charset="utf-8"></script>
|
||||||
@else
|
@else
|
||||||
<script src="https://js.authorize.net/v1/Accept.js" charset="utf-8"></script>
|
<script src="https://js.authorize.net/v1/Accept.js" charset="utf-8"></script>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
<script src="{{ asset('js/clients/payment_methods/authorize-authorize-card.js') }}"></script>
|
<script src="{{ asset('js/clients/payment_methods/authorize-authorize-card.js') }}"></script>
|
||||||
@endpush
|
@endpush
|
@ -1,4 +1,4 @@
|
|||||||
<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 flex items-center">
|
<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 flex items-center flex items-center">
|
||||||
<dt class="text-sm leading-5 font-medium text-gray-500 mr-4">
|
<dt class="text-sm leading-5 font-medium text-gray-500 mr-4">
|
||||||
{{ ctrans('texts.name') }}
|
{{ ctrans('texts.name') }}
|
||||||
</dt>
|
</dt>
|
||||||
@ -6,35 +6,38 @@
|
|||||||
<input class="input w-full" id="cardholder_name" type="text" placeholder="{{ ctrans('texts.name') }}">
|
<input class="input w-full" id="cardholder_name" type="text" placeholder="{{ ctrans('texts.name') }}">
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
|
<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 flex items-center">
|
||||||
<dt class="text-sm leading-5 font-medium text-gray-500">
|
<dt class="text-sm leading-5 font-medium text-gray-500">
|
||||||
{{ ctrans('texts.credit_card') }}
|
{{ ctrans('texts.credit_card') }}
|
||||||
</dt>
|
</dt>
|
||||||
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
||||||
<input class="input w-full" id="card_number" type="text" placeholder="{{ ctrans('texts.card_number') }}">
|
<input class="input w-full" id="card_number" type="tel" inputmode="numeric" pattern="[0-9\s]{13,19}" autocomplete="cc-number" maxlength="19" placeholder="xxxx xxxx xxxx xxxx">
|
||||||
|
<div class="validation validation-fail" id="card_number_errors" hidden></div>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
|
<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 flex items-center">
|
||||||
<dt class="text-sm leading-5 font-medium text-gray-500">
|
<dt class="text-sm leading-5 font-medium text-gray-500">
|
||||||
{{ ctrans('texts.expiration_month') }}
|
{{ ctrans('texts.expiration_month') }}
|
||||||
</dt>
|
</dt>
|
||||||
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
||||||
<input class="input w-full" id="expiration_month" type="text" placeholder="{{ ctrans('texts.expiration_month') }}">
|
<input class="input w-full" id="expiration_month" type="tel" inputmode="numeric" pattern="[0-9\s]{13,19}" autocomplete="cc-month" maxlength="2">
|
||||||
|
<div class="validation validation-fail" id="expiration_month_errors" hidden></div>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
|
<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 flex items-center">
|
||||||
<dt class="text-sm leading-5 font-medium text-gray-500">
|
<dt class="text-sm leading-5 font-medium text-gray-500">
|
||||||
{{ ctrans('texts.expiration_year') }}
|
{{ ctrans('texts.expiration_year') }}
|
||||||
</dt>
|
</dt>
|
||||||
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
||||||
<input class="input w-full" id="expiration_year" type="text" placeholder="{{ ctrans('texts.expiration_year') }}">
|
<input class="input w-full" id="expiration_year" type="tel" inputmode="numeric" pattern="[0-9\s]{13,19}" autocomplete="cc-year" maxlength="4">
|
||||||
|
<div class="validation validation-fail" id="expiration_year_errors" hidden></div>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
|
<div class="bg-gray-50 px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6 flex items-center">
|
||||||
<dt class="text-sm leading-5 font-medium text-gray-500">
|
<dt class="text-sm leading-5 font-medium text-gray-500">
|
||||||
{{ ctrans('texts.cvv') }}
|
{{ ctrans('texts.cvv') }}
|
||||||
</dt>
|
</dt>
|
||||||
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
<dd class="mt-1 text-sm leading-5 text-gray-900 sm:mt-0 sm:col-span-2">
|
||||||
<input class="input w-full" id="cvv" type="text" placeholder="{{ ctrans('texts.cvv') }}">
|
<input class="input w-full" id="cvv" type="tel" inputmode="numeric" pattern="[0-9\s]{13,19}" autocomplete="cc-cvv" maxlength="5">
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
Loading…
x
Reference in New Issue
Block a user