Award Checks Update (#1376)
Add active/passive check for awards and update the handler to pass only active ones to the process when needed.
This commit is contained in:
@@ -18,17 +18,13 @@
|
||||
<p class="text-danger">{{ $errors->first('name') }}</p>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group col-sm-6">
|
||||
{!! Form::label('image', 'Image:') !!}
|
||||
<div class="callout callout-info">
|
||||
<i class="icon fa fa-info"> </i>
|
||||
This is the image of the award. Be creative!
|
||||
</div>
|
||||
{!! Form::text('image_url', null, [
|
||||
'class' => 'form-control',
|
||||
'placeholder' => 'Enter the url of the image location'
|
||||
]) !!}
|
||||
{!! 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>
|
||||
</div>
|
||||
@@ -47,29 +43,31 @@
|
||||
<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',
|
||||
]) }}
|
||||
{{ 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>
|
||||
|
||||
<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>
|
||||
|
||||
<p id="ref_model_param_description">
|
||||
|
||||
</p>
|
||||
<p id="ref_model_param_description"></p>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<!-- Submit Field -->
|
||||
<div class="form-group col-sm-12">
|
||||
{{-- Active/Deactive Checkbox --}}
|
||||
<div class="form-group col-sm-6 text-left">
|
||||
<div class="checkbox">
|
||||
<label class="checkbox-inline">
|
||||
{{ Form::label('active', 'Active: ') }}
|
||||
{{ Form::hidden('active', false) }}
|
||||
{{ Form::checkbox('active') }}
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
{{-- Form Actions --}}
|
||||
<div class="form-group col-sm-6">
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user