Small fixes to the color picker (sorry)

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-04-04 00:27:05 -07:00
parent 6164e8b3fa
commit 5919f3843d

View file

@ -35,12 +35,12 @@
<!-- Chart color -->
<div class="form-group{{ $errors->has('color') ? ' has-error' : '' }}">
{{ Form::label('color', trans('admin/statuslabels/table.color'), ['class' => 'col-md-3 control-label']) }}
<div class="col-md-2">
<div class="col-md-9">
<div class="input-group color">
{{ Form::text('color', Request::old('color', $item->color), array('class' => 'form-control', 'style' => 'width: 100px;', 'maxlength'=>'10')) }}
{{ Form::text('color', Request::old('color', $item->color), array('class' => 'form-control col-md-10', 'maxlength'=>'20')) }}
<div class="input-group-addon"><i></i></div>
</div><!-- /.input group -->
{!! $errors->first('header_color', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
{!! $errors->first('color', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
</div>
</div>
@ -72,8 +72,17 @@
@section('moar_scripts')
<!-- bootstrap color picker -->
<script nonce="{{ csrf_token() }}">
//color picker with addon
$(".color").colorpicker();
$(function() {
$('.color').colorpicker({
color: '#AA3399',
format: 'hex'
});
});
</script>
@stop