From 0ee689773f409d3355da2a06b9f104ce3290da61 Mon Sep 17 00:00:00 2001 From: Jeramy Simpson Date: Tue, 17 Mar 2015 13:47:32 +1000 Subject: [PATCH] Setup Page Improvements --- resources/views/setup.blade.php | 65 +++++++++++++++++++++++++++------ 1 file changed, 54 insertions(+), 11 deletions(-) diff --git a/resources/views/setup.blade.php b/resources/views/setup.blade.php index 3dd433d90267..0b4af7a9122f 100644 --- a/resources/views/setup.blade.php +++ b/resources/views/setup.blade.php @@ -66,7 +66,7 @@ FLUSH PRIVILEGES; {!! Former::text('database[type][database]')->label('Database')->value('ninja') !!} {!! Former::text('database[type][username]')->label('Username')->value('ninja') !!} {!! Former::password('database[type][password]')->label('Password')->value('ninja') !!} - {!! Former::actions( Button::normal('Test connection', ['onclick' => 'testDatabase()']), '  ' ) !!} + {!! Former::actions( Button::normal('Test connection')->withAttributes(['onclick' => 'testDatabase()']), '  ' ) !!} @@ -83,7 +83,7 @@ FLUSH PRIVILEGES; {!! Former::text('mail[from][name]')->label('From Name') !!} {!! Former::text('mail[username]')->label('Email') !!} {!! Former::password('mail[password]')->label('Password') !!} - {!! Former::actions( Button::normal('Send test email', ['onclick' => 'testMail()']), '  ' ) !!} + {!! Former::actions( Button::normal('Send test email')->withAttributes(['onclick' => 'testMail()']), '  ' ) !!} @@ -101,32 +101,75 @@ FLUSH PRIVILEGES; {!! Former::checkbox('terms_checkbox')->label(' ')->text(trans('texts.agree_to_terms', ['terms' => ''.trans('texts.terms_of_service').''])) !!} - {!! Former::actions( Button::primary('Submit')->submit() ) !!} + {!! Former::actions( Button::primary('Submit')->withAttributes(['onclick' => 'validate()']) ) !!} {!! Former::close() !!}