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() !!}