Add user setup to installer

This commit is contained in:
Nabeel Shahzad
2017-12-29 16:56:46 -06:00
parent 50da3a9e54
commit 7cd4bf5ffb
24 changed files with 28377 additions and 41 deletions

View File

@@ -1,5 +1,6 @@
@extends('installer::app')
@section('title', 'Requirements Check')
@section('content')
<div style="align-content: center;">
{!! Form::open(['route' => 'installer.step2', 'method' => 'GET']) !!}

View File

@@ -2,7 +2,7 @@
@section('title', 'Database Setup Completed')
@section('content')
<div style="align-content: center;">
{!! Form::open(['route' => 'installer.complete', 'method' => 'GET']) !!}
{!! Form::open(['route' => 'installer.step3', 'method' => 'GET']) !!}
<pre class="lang-sh">
<code class="lang-sh">

View File

@@ -0,0 +1,73 @@
@extends('installer::app')
@section('title', 'User Setup')
@section('content')
<div class="row"><div class="col-md-12">
<div style="align-content: center;">
{!! Form::open(['route' => 'installer.usersetup', 'method' => 'POST']) !!}
<table class="table" width="25%">
<tr>
<td colspan="2"><h4>Airline Information</h4></td>
</tr>
<tr>
<td><p>Airline ICAO</p></td>
<td>
<div class="form-group">
{!! Form::input('text', 'airline_icao', null, ['class' => 'form-control']) !!}
@include('installer::flash/check_error', ['field' => 'airline_icao'])
</div>
</td>
</tr>
<tr>
<td><p>Airline Name</p></td>
<td>
<div class="form-group">
{!! Form::input('text', 'airline_name', null, ['class' => 'form-control']) !!}
@include('installer::flash/check_error', ['field' => 'airline_name'])
</div>
</td>
</tr>
<tr>
<td colspan="2"><h4>First User</h4></td>
</tr>
<tr>
<td><p>Admin Email</p></td>
<td>
<div class="form-group">
{!! Form::input('text', 'email', null, ['class' => 'form-control']) !!}
@include('installer::flash/check_error', ['field' => 'email'])
</div>
</td>
</tr>
<tr>
<td><p>Password</p></td>
<td>
{!! Form::password('password', ['class' => 'form-control']) !!}
@include('installer::flash/check_error', ['field' => 'password'])
</td>
</tr>
<tr>
<td><p>Password Confirm</p></td>
<td>
{!! Form::password('password_confirmation', ['class' => 'form-control']) !!}
@include('installer::flash/check_error', ['field' => 'password_confirmation'])
</td>
</tr>
</table>
<div id="dbtest"></div>
<p style="text-align: right">
{!! Form::submit('Complete Setup >>', ['class' => 'btn btn-success']) !!}
</p>
{!! Form::close() !!}
</div>
</div>
</div>
@endsection

View File

@@ -0,0 +1,19 @@
@extends('installer::app')
@section('title', 'Installation Completed!')
@section('content')
<div style="align-content: center;">
{!! Form::open(['route' => 'installer.complete', 'method' => 'GET']) !!}
<h4>Install Completed!</h4>
<p>Click the button to proceed to the login screen!</p>
<p style="text-align: right">
{!! Form::submit('Install Complete! Continue to Log-In >>',
['class' => 'btn btn-success'])
!!}
</p>
{!! Form::close() !!}
</div>
@endsection