v2 first commit
This commit is contained in:
@ -3,35 +3,13 @@
|
||||
@section('header', trans('install.steps.database'))
|
||||
|
||||
@section('content')
|
||||
{{ Form::textGroup('hostname', trans('install.database.hostname'), 'server', ['required' => 'required'], old('hostname', 'localhost'), 'col-md-12') }}
|
||||
<div class="row">
|
||||
{{ Form::textGroup('hostname', trans('install.database.hostname'), 'server', ['required' => 'required'], old('hostname', 'localhost'), 'col-md-12') }}
|
||||
|
||||
{{ Form::textGroup('username', trans('install.database.username'), 'user', ['required' => 'required'], old('username'), 'col-md-12') }}
|
||||
{{ Form::textGroup('username', trans('install.database.username'), 'user', ['required' => 'required'], old('username'), 'col-md-12') }}
|
||||
|
||||
{{ Form::passwordGroup('password', trans('install.database.password'), 'key', [], old('password'), 'col-md-12') }}
|
||||
{{ Form::passwordGroup('password', trans('install.database.password'), 'key', [], 'col-md-12') }}
|
||||
|
||||
{{ Form::textGroup('database', trans('install.database.name'), 'database', ['required' => 'required'], old('database'), 'col-md-12') }}
|
||||
{{ Form::textGroup('database', trans('install.database.name'), 'database', ['required' => 'required'], old('database'), 'col-md-12 mb--2') }}
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
$('#next-button').attr('disabled', true);
|
||||
|
||||
$('#hostname, #username, #database').keyup(function() {
|
||||
inputCheck();
|
||||
});
|
||||
});
|
||||
|
||||
function inputCheck() {
|
||||
hostname = $('#hostname').val();
|
||||
username = $('#username').val();
|
||||
database = $('#database').val();
|
||||
|
||||
if (hostname != '' && username != '' && database != '') {
|
||||
$('#next-button').attr('disabled', false);
|
||||
} else {
|
||||
$('#next-button').attr('disabled', true);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@endpush
|
||||
|
Reference in New Issue
Block a user