2019-02-19 11:19:00 -08:00
|
|
|
@extends('layouts/edit-form', [
|
|
|
|
'createText' => 'Append accessory', // TODO: trans
|
|
|
|
'updateText' => 'Update appended accessory', // TODO: trans
|
|
|
|
'formAction' => ($item) ? route('kits.accessories.update', ['kit_id' => $kit->id, 'accessory_id' => $item->accessory_id]) : route('kits.accessories.store', ['kit_id' => $kit->id]),
|
|
|
|
])
|
|
|
|
|
|
|
|
{{-- Page content --}}
|
|
|
|
@section('inputFields')
|
2019-02-27 14:37:58 -08:00
|
|
|
@include ('partials.forms.edit.accessory-select', ['translated_name' => 'Accessory', 'fieldname' => 'accessory_id', 'required' => 'true']){{-- TODO: trans --}}
|
2019-02-19 11:19:00 -08:00
|
|
|
<div class="form-group {{ $errors->has('quantity') ? ' has-error' : '' }}">
|
|
|
|
<label for="quantity" class="col-md-3 control-label">{{ trans('general.quantity') }}</label>
|
|
|
|
<div class="col-md-7 required">
|
|
|
|
<div class="col-md-2" style="padding-left:0px">
|
|
|
|
<input class="form-control" type="text" name="quantity" id="quantity" value="{{ Input::old('quantity', $item->quantity) }}" />
|
|
|
|
</div>
|
|
|
|
{!! $errors->first('quantity', '<span class="alert-msg"><i class="fa fa-times"></i> :message</span>') !!}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<input type="hidden" name="pivot_id" value="{{$item->id}}">
|
|
|
|
{{-- <input class="form-control" type="text" name="quantity" id="quantity" value="{{ Input::old('quantity', $item->quantity) }}" /> --}}
|
|
|
|
|
|
|
|
@stop
|