1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-12 14:12:44 +01:00

Auto generate year list on payment form

This commit is contained in:
Hillel Coren 2017-03-28 14:36:16 +03:00
parent 42357bcd3d
commit 55fc704596

View File

@ -261,18 +261,13 @@
->id('expiration_year') ->id('expiration_year')
->autocomplete('cc-exp-year') ->autocomplete('cc-exp-year')
->placeholder(trans('texts.expiration_year')) ->placeholder(trans('texts.expiration_year'))
->addOption('2016', '2016') ->options(
->addOption('2017', '2017') array_combine(
->addOption('2018', '2018') range(date('Y'), date('Y') + 10),
->addOption('2019', '2019') range(date('Y'), date('Y') + 10)
->addOption('2020', '2020') )
->addOption('2021', '2021') )
->addOption('2022', '2022') ->label('') !!}
->addOption('2023', '2023')
->addOption('2024', '2024')
->addOption('2025', '2025')
->addOption('2026', '2026')->label('')
!!}
@endif @endif
</div> </div>
<div class="col-md-3"> <div class="col-md-3">