Fix for subfleet add/remove on flight page #124

This commit is contained in:
Nabeel Shahzad
2018-01-07 08:58:57 -06:00
parent 6fdecc571a
commit c69e2c0cc8
7 changed files with 112 additions and 103 deletions

View File

@@ -1,5 +1,5 @@
<div class="row"> <div class="col-12">
<div id="flight_fields_wrapper">
<h3>custom fields</h3><br />
<table class="table table-responsive" id="flight-fields-table">
<thead>
<th>Name</th>
@@ -16,7 +16,7 @@
<td style="width: 10%; text-align: center;" class="form-inline">
{!! Form::open(['url' => '/admin/flights/'.$flight->id.'/fields',
'method' => 'delete',
'class' => 'pjax_form flight_fields'
'class' => 'pjax_form pjax_flight_fields'
]) !!}
{!! Form::hidden('field_id', $field->id) !!}
<div class='btn-group'>
@@ -32,27 +32,27 @@
</tbody>
</table>
<hr/>
<div class="row pull-right">
{!! Form::open([
'url' => '/admin/flights/'.$flight->id.'/fields',
'method' => 'post',
'class' => 'pjax_form form-inline'
])
!!}
<div class="row">
<div class="col-md-12">
<div class="text-right">
{!! Form::open([
'url' => '/admin/flights/'.$flight->id.'/fields',
'method' => 'post',
'class' => 'pjax_form form-inline pjax_flight_fields'
])
!!}
<div class="form-group col-xs-12 form-inline">
{!! Form::label('name', 'Name:') !!}
{!! Form::text('name', null, ['class' => 'form-control']) !!}
&nbsp;&nbsp;
{!! Form::label('value', 'Value:') !!}
{!! Form::text('value', null, ['class' => 'form-control']) !!}
&nbsp;&nbsp;
{!! Form::button('<i class="glyphicon glyphicon-plus"></i> add',
['type' => 'submit',
'class' => 'btn btn-success btn-s']) !!}
{!! Form::label('name', 'Name:') !!}
{!! Form::text('name', null, ['class' => 'form-control']) !!}
&nbsp;&nbsp;
{!! Form::label('value', 'Value:') !!}
{!! Form::text('value', null, ['class' => 'form-control']) !!}
&nbsp;&nbsp;
{!! Form::button('<i class="glyphicon glyphicon-plus"></i> add',
['type' => 'submit',
'class' => 'btn btn-success btn-s']) !!}
{!! Form::close() !!}
</div>
</div>
{!! Form::close() !!}
</div>
</div>
</div> </div>