|
|
@@ -87,6 +87,10 @@
|
|
|
<th>Артикулы МАФ</th>
|
|
|
<th>Кол-во позиций</th>
|
|
|
<th>Бригадир</th>
|
|
|
+ @if(hasRole('admin'))
|
|
|
+ <th>Транспорт</th>
|
|
|
+ <th>Комментарий</th>
|
|
|
+ @endif
|
|
|
<th>Примечание</th>
|
|
|
@if(hasRole('admin'))
|
|
|
<th></th>
|
|
|
@@ -129,6 +133,12 @@
|
|
|
class="align-middle mafs-count-{{ $schedule->id }}">{{ $schedule->mafs_count }}</td>
|
|
|
<td style="background: {{ $schedule->brigadier->color }}"
|
|
|
class="align-middle">{{ $schedule->brigadier->name }}</td>
|
|
|
+ @if(hasRole('admin'))
|
|
|
+ <td style="background: {{ $schedule->brigadier->color }}"
|
|
|
+ class="align-middle transport-{{ $schedule->id }}">{{ $schedule->transport }}</td>
|
|
|
+ <td style="background: {{ $schedule->brigadier->color }}"
|
|
|
+ class="align-middle admin-comment-{{ $schedule->id }}">{{ $schedule->admin_comment }}</td>
|
|
|
+ @endif
|
|
|
<td style="background: {{ $schedule->brigadier->color }}"
|
|
|
class="align-middle comment-{{ $schedule->id }}">{{ $schedule->comment }}</td>
|
|
|
@if(hasRole('admin'))
|
|
|
@@ -315,7 +325,9 @@
|
|
|
@include('partials.textarea', ['name' => 'mafs', 'title' => 'МАФы', 'required' => true])
|
|
|
@include('partials.input', ['name' => 'mafs_count', 'title' => 'Кол-во МАФ', 'type' => 'number', 'required' => true])
|
|
|
@include('partials.select', ['name' => 'brigadier_id', 'title' => 'Бригадир', 'options' => $brigadiers, 'required' => true, 'first_empty' => true])
|
|
|
- @include('partials.textarea', ['name' => 'comment', 'title' => 'Комментарий'])
|
|
|
+ @include('partials.input', ['name' => 'transport', 'title' => 'Транспорт'])
|
|
|
+ @include('partials.textarea', ['name' => 'admin_comment', 'title' => 'Комментарий'])
|
|
|
+ @include('partials.textarea', ['name' => 'comment', 'title' => 'Примечание'])
|
|
|
<div class="text-center">
|
|
|
<button type="submit" class="btn btn-primary btn-sm">Сохранить</button>
|
|
|
</div>
|
|
|
@@ -348,6 +360,8 @@
|
|
|
let scheduleBrigadier = $(this).attr('data-schedule-brigadier');
|
|
|
let scheduleAddress = $(this).attr('data-schedule-address');
|
|
|
let scheduleComment = $('.comment-' + scheduleId).text();
|
|
|
+ let scheduleTransport = $('.transport-' + scheduleId).text();
|
|
|
+ let scheduleAdminComment = $('.admin-comment-' + scheduleId).text();
|
|
|
let scheduleMafs = $('.mafs-' + scheduleId).text();
|
|
|
let scheduleObjectType = $('.object-type-' + scheduleId).text();
|
|
|
let scheduleMafsCount = $('.mafs-count-' + scheduleId).text();
|
|
|
@@ -361,6 +375,8 @@
|
|
|
$('form#scheduleEditForm select[name=area_id]').val(scheduleArea);
|
|
|
$('form#scheduleEditForm select[name=brigadier_id]').val(scheduleBrigadier);
|
|
|
$('form#scheduleEditForm textarea[name=comment]').text(scheduleComment);
|
|
|
+ $('form#scheduleEditForm input[name=transport]').val(scheduleTransport);
|
|
|
+ $('form#scheduleEditForm textarea[name=admin_comment]').text(scheduleAdminComment);
|
|
|
$('form#scheduleEditForm textarea[name=mafs]').text(scheduleMafs);
|
|
|
$('form#scheduleEditForm input[name=mafs_count]').val(scheduleMafsCount);
|
|
|
$('form#scheduleEditForm input[name=address_code]').val(scheduleCode);
|
|
|
@@ -388,6 +404,8 @@
|
|
|
$('form#scheduleEditForm select[name=area_id]').val('');
|
|
|
$('form#scheduleEditForm select[name=brigadier_id]').val('');
|
|
|
$('form#scheduleEditForm textarea[name=comment]').text('');
|
|
|
+ $('form#scheduleEditForm input[name=transport]').val('');
|
|
|
+ $('form#scheduleEditForm textarea[name=admin_comment]').text('');
|
|
|
$('form#scheduleEditForm textarea[name=mafs]').text('');
|
|
|
$('form#scheduleEditForm input[name=mafs_count]').val('');
|
|
|
$('form#scheduleEditForm input[name=address_code]').val('');
|