ok
Direktori : /home2/selectio/www/fms-worksuite/resources/views/taskboard/ |
Current File : //home2/selectio/www/fms-worksuite/resources/views/taskboard/edit.blade.php |
<div class="modal-header"> <h5 class="modal-title" id="modelHeading">@lang('modules.templateTasks.editBoardColumn')</h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> </div> <div class="modal-body"> <x-form id="updateTaskBoardColumn" method="PUT"> <div class="row"> <div class="col-md-12"> <x-forms.text class="mr-0 mr-lg-2 mr-md-2" :fieldLabel="__('modules.tasks.columnName')" fieldName="column_name" fieldId="column_name" :placeholder="__('placeholders.columnName')" :fieldValue="$boardColumn->column_name" fieldRequired="true" /> </div> <div class="col-md-6"> <x-forms.select fieldId="priority" :fieldLabel="__('modules.tasks.position')" fieldName="priority" search="true"> @for ($i = 1; $i <= $maxPriority; $i++) <option @if ($i == $boardColumn->priority) selected @endif>{{ $i }}</option> @endfor </x-forms.select> </div> <div class="col-md-6"> <div class="form-group my-3"> <x-forms.label fieldId="colorselector" fieldRequired="true" :fieldLabel="__('modules.tasks.labelColor')"> </x-forms.label> <x-forms.input-group id="colorpicker"> <input type="text" class="form-control height-35 f-14" value="{{ $boardColumn->label_color }}" placeholder="{{ __('placeholders.colorPicker') }}" name="label_color" id="colorselector"> <x-slot name="append"> <span class="input-group-text height-35 colorpicker-input-addon"><i></i></span> </x-slot> </x-forms.input-group> </div> </div> </div> </x-form> </div> <div class="modal-footer"> <x-forms.button-cancel data-dismiss="modal" class="border-0 mr-3">@lang('app.cancel')</x-forms.button-cancel> <x-forms.button-primary id="update-board-column" icon="check">@lang('app.save')</x-forms.button-primary> </div> <script src="{{ asset('vendor/jquery/bootstrap-colorpicker.js') }}"></script> <script> $("#updateTaskBoardColumn .select-picker").selectpicker(); $('#colorpicker').colorpicker({ "color": "{{ $boardColumn->label_color }}" }); $('#update-board-column').click(function() { var url = "{{ route('taskboards.update', $boardColumn->id) }}"; $.easyAjax({ url: url, container: '#updateTaskBoardColumn', disableButton: true, blockUI: true, buttonSelector: "#update-board-column", type: "POST", data: $('#updateTaskBoardColumn').serialize(), success: function(response) { if (response.status == 'success') { window.location.reload(); } } }) }); </script>