Add pilot ID change fields to the admin screen

This commit is contained in:
Nabeel Shahzad
2019-07-17 09:48:20 -04:00
parent 337fe5cfaa
commit 567ff91de0
7 changed files with 38 additions and 8 deletions

View File

@@ -1,17 +1,24 @@
<div class="row">
<div class="form-group col-sm-4">
{{ Form::hidden('id') }}
<div class="form-group col-sm-3">
{{ Form::label('pilot_id', 'Pilot ID:') }}
{{ Form::number('pilot_id', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('pilot_id') }}</p>
</div>
<div class="form-group col-sm-3">
{{ Form::label('name', 'Name:') }}
{{ Form::text('name', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('name') }}</p>
</div>
<div class="form-group col-sm-4">
<div class="form-group col-sm-3">
{{ Form::label('email', 'Email:') }}
{{ Form::text('email', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('email') }}</p>
</div>
<div class="form-group col-sm-4">
<div class="form-group col-sm-3">
{{ Form::label('password', 'Password:') }}
{{ Form::password('password', ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('password') }}</p>

View File

@@ -1,5 +1,6 @@
<table class="table table-hover table-responsive" id="users-table">
<thead>
<th>ID</th>
<th>Name</th>
<th>Email</th>
<th>Registered</th>
@@ -9,6 +10,7 @@
<tbody>
@foreach($users as $user)
<tr>
<td>{{ $user->ident }}</td>
<td>
@if(filled($user->country))
<span class="flag-icon flag-icon-{{ $user->country }}"