@if ($bankAccount)
{!! Former::populate($bankAccount) !!}
{!! Former::hidden('public_id') !!}
@else
{!! Former::populateField('app_version', DEFAULT_BANK_APP_VERSION) !!}
{!! Former::populateField('ofx_version', DEFAULT_BANK_OFX_VERSION) !!}
{!! Former::select('bank_id')
->data_bind('combobox: bank_id')
->addOption('', '')
->fromQuery($banks, 'name', 'id')
->blockHelp(trans('texts.bank_accounts_help', ['link' => OFX_HOME_URL])) !!}
@endif
{!! Former::password('bank_username')
->data_bind("value: bank_username, valueUpdate: 'afterkeydown'")
->label(trans('texts.username')) !!}
{!! Former::password('bank_password')
->label(trans('texts.password'))
->data_bind("value: bank_password, valueUpdate: 'afterkeydown'")
->blockHelp(trans(Request::secure() ? 'texts.bank_password_help' : 'texts.bank_password_warning')) !!}
{!! Former::select('app_version')
->addOption('Quicken 2005', 1400)
->addOption('Quicken 2006', 1500)
->addOption('Quicken 2007', 1600)
->addOption('Quicken 2008', 1700)
->addOption('Quicken 2009', 1800)
->addOption('Quicken 2010', 1900)
->addOption('Quicken 2011', 2000)
->addOption('Quicken 2012', 2100)
->addOption('Quicken 2013', 2200)
->addOption('Quicken 2014', 2300)
->addOption('Quicken 2015', 2400)
->addOption('Quicken 2016', 2500)
->addOption('Quicken 2017', 2600) !!}
{!! Former::select('ofx_version')
->addOption('100', 100)
->addOption('101', 101)
->addOption('102', 102)
->addOption('103', 103) !!}
{{ trans('texts.bank_account_error') }}