phpvms/resources/views/admin/awards/fields.blade.php

79 lines
2.5 KiB
PHP
Raw Normal View History

2018-01-29 03:19:35 +08:00
<div class="row">
<div class="col-sm-12">
@component('admin.components.info')
These are the awards that pilots can earn. Each award is assigned an
award class, which will be run whenever a pilot's stats are changed,
including after a PIREP is accepted.
@endcomponent
</div>
2018-01-29 03:19:35 +08:00
</div>
<div class="row">
<div class="form-group col-sm-6">
{!! Form::label('name', 'Name:') !!}&nbsp;<span class="required">*</span>
<div class="callout callout-info">
<i class="icon fa fa-info">&nbsp;&nbsp;</i>
This will be the title of the award
2018-01-29 03:19:35 +08:00
</div>
{!! Form::text('name', null, ['class' => 'form-control']) !!}
<p class="text-danger">{{ $errors->first('name') }}</p>
</div>
2018-01-29 03:19:35 +08:00
<div class="form-group col-sm-6">
{!! Form::label('image', 'Image:') !!}
<div class="callout callout-info">
<i class="icon fa fa-info">&nbsp;&nbsp;</i>
This is the image of the award. Be creative!
2018-01-29 03:19:35 +08:00
</div>
{!! Form::text('image_url', null, [
'class' => 'form-control',
'placeholder' => 'Enter the url of the image location'
]) !!}
<p class="text-danger">{{ $errors->first('image_url') }}</p>
</div>
2018-01-29 03:19:35 +08:00
</div>
2018-03-18 01:17:38 +08:00
<div class="row">
<div class="form-group col-sm-6">
{!! Form::label('description', 'Description:') !!}&nbsp
<div class="callout callout-info">
<i class="icon fa fa-info">&nbsp;&nbsp;</i>
This is the description of the award.
2018-01-29 03:19:35 +08:00
</div>
{!! Form::textarea('description', null, ['class' => 'form-control']) !!}
<p class="text-danger">{{ $errors->first('description') }}</p>
</div>
2018-01-29 03:19:35 +08:00
<div class="form-group col-sm-6">
<div>
{{ Form::label('ref_model', 'Award Class:') }}
{{ Form::select('ref_model', $award_classes, null , [
'class' => 'form-control select2',
'id' => 'award_class_select',
]) }}
<p class="text-danger">{{ $errors->first('ref_model') }}</p>
</div>
2018-03-18 01:17:38 +08:00
<div>
{{ Form::label('ref_model_params', 'Award Class parameters') }}
{{ Form::text('ref_model_params', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('ref_model_params') }}</p>
2018-03-18 01:17:38 +08:00
<p id="ref_model_param_description">
2018-03-18 01:17:38 +08:00
</p>
2018-01-29 03:19:35 +08:00
</div>
</div>
2018-01-29 03:19:35 +08:00
</div>
2018-03-18 01:17:38 +08:00
<div class="row">
<!-- Submit Field -->
<div class="form-group col-sm-12">
<div class="pull-right">
{!! Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) !!}
<a href="{!! route('admin.awards.index') !!}" class="btn btn-warn">Cancel</a>
2018-03-18 01:17:38 +08:00
</div>
</div>
2018-01-29 03:19:35 +08:00
</div>