v2 first commit

This commit is contained in:
denisdulici
2019-11-16 10:21:14 +03:00
parent 5b23e9c2c4
commit 6d50fa8442
3075 changed files with 3451681 additions and 65594 deletions

View File

@ -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