@extends('header') @section('head') @parent @stop @section('content') @parent @include('accounts.nav', ['selected' => ACCOUNT_BANKS]) {!! Former::open($url) ->method($method) ->rule() ->addClass('main-form warn-on-exit') !!}

{!! trans($title) !!}

@if ($bankAccount) {!! Former::populateField('bank_id', $bankAccount->bank_id) !!} @endif {!! Former::select('bank_id') ->data_bind('dropdown: bank_id') ->addOption('', '') ->fromQuery($banks, 'name', 'id') !!} {!! Former::password('bank_username') ->data_bind("value: bank_username, valueUpdate: 'afterkeydown'") ->label(trans('texts.username')) ->blockHelp(trans(Request::secure() ? 'texts.bank_password_help' : 'texts.bank_password_warning')) !!}

 

{!! Former::actions( count(Cache::get('banks')) > 0 ? Button::normal(trans('texts.cancel'))->large()->asLinkTo(URL::to('/settings/bank_accounts'))->appendIcon(Icon::create('remove-circle')) : false, (!$bankAccount ? Button::primary(trans('texts.test')) ->withAttributes([ 'data-bind' => 'css: {disabled: disableMainButton}', 'onclick' => 'showTest()' ]) ->large() ->appendIcon(Icon::create('download-alt')) : false), Button::success(trans('texts.save')) ->submit()->large() ->withAttributes([ 'data-bind' => 'css: {disabled: disableMainButton}', ]) ->appendIcon(Icon::create('floppy-disk'))) !!} {!! Former::close() !!} @stop