Check permissions and show error if the database setup fails

This commit is contained in:
Nabeel Shahzad
2017-12-15 10:41:52 -06:00
parent b227090f54
commit 9607c0a27f
8 changed files with 108 additions and 29 deletions

View File

@@ -29,6 +29,20 @@
</td>
</tr>
@endforeach
<tr><td colspan="2"><h4>directory permissions</h4></td></tr>
@foreach($directories as $dir)
<tr>
<td>{!! $dir['dir'] !!}</td>
<td style="text-align:center;">
@if($dir['passed'] === true)
<span class="badge badge-success">OK!</span>
@else
<span class="badge badge-danger">Failed!</span>
@endif
</td>
</tr>
@endforeach
</table>
@if($passed === true)
<p style="text-align: right">

View File

@@ -5,7 +5,7 @@
{!! Form::open(['route' => 'installer.envsetup', 'method' => 'POST']) !!}
<table class="table" width="25%">
<tr>
<td>Select Database Type</td>
<td><p>Select Database Type</p></td>
<td style="text-align:center;">
<div class="form-group">
{!! Form::select('db_conn', $db_types, null, ['class' => 'form-control', 'id' => 'db_conn']) !!}