Add a /update to update an install #164

This commit is contained in:
Nabeel Shahzad
2018-02-05 16:16:24 -06:00
parent eebf7871cb
commit 282421deb8
21 changed files with 232 additions and 20 deletions

View File

@@ -0,0 +1,12 @@
@extends('installer::app')
@section('title', 'Update phpVMS')
@section('content')
<h2>phpvms updater</h2>
<p>Press continue to check if there are any updates available.</p>
{!! Form::open(['route' => 'update.step1', 'method' => 'post']) !!}
<p style="text-align: right">
{!! Form::submit('Start >>', ['class' => 'btn btn-success']) !!}
</p>
{!! Form::close() !!}
@endsection

View File

@@ -0,0 +1,13 @@
@extends('installer::app')
@section('title', 'Update phpVMS')
@section('content')
<h2>phpvms updater</h2>
<p>It seems like you're up to date!</p>
{!! Form::open(['route' => 'update.complete', 'method' => 'GET']) !!}
<p style="text-align: right">
{!! Form::submit('Complete >>', ['class' => 'btn btn-success']) !!}
</p>
{!! Form::close() !!}
@endsection

View File

@@ -0,0 +1,12 @@
@extends('installer::app')
@section('title', 'Update phpVMS')
@section('content')
<h2>phpvms updater</h2>
<p>Updates have been found, click run to complete the update!.</p>
{!! Form::open(['route' => 'update.run_migrations', 'method' => 'post']) !!}
<p style="text-align: right">
{!! Form::submit('Run >>', ['class' => 'btn btn-success']) !!}
</p>
{!! Form::close() !!}
@endsection

View File

@@ -0,0 +1,18 @@
@extends('installer::app')
@section('title', 'Update Completed')
@section('content')
<div style="align-content: center;">
{!! Form::open(['route' => 'update.complete', 'method' => 'GET']) !!}
<pre class="lang-sh">
<code class="lang-sh">
{!! $console_output !!}
</code>
</pre>
<p style="text-align: right">
{!! Form::submit('Complete >>', ['class' => 'btn btn-success']) !!}
</p>
{!! Form::close() !!}
</div>
@endsection