-Add new setting "Delete shift"
-Move "Shift" frontend to V1 module
This commit is contained in:
miroman-afk
2022-02-01 01:55:15 +03:00
parent 57949aa89a
commit 5497b611ef
29 changed files with 1359 additions and 3 deletions

View File

@@ -0,0 +1,50 @@
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h5 class="modal-title">Управление синхронизацией</h5>
</div>
<div class="modal-body p-lg">
<div class="table-responsive">
<table class="table table-bordered">
<thead>
<th>Задача</th>
<th>Период</th>
<th style="width: 70px">Статус</th>
<th style="width: 70px"><i class="material-icons">&#xE3E7;</i></th>
</thead>
<tbody>
<tr ng-repeat="task in active_tasks">
<td>{{ task.name }} <span class="label primary m-r-xs left5">{{ task.code }}</span></td>
<td><input type="number" class="form-control" ng-model="task.period" ng-change="changePeriod(task)" /></td>
<td>
<label class="ui-switch ui-switch-md m-t-xs">
<input type="checkbox" checked="checked" ng-change="changeTask(task)" ng-model="task.active" />
<i></i>
</label>
</td>
<td>
<button class="btn btn-sm white" ng-click="runTask(task)"><i class="material-icons">&#xE037;</i></button>
</td>
</tr>
<tr ng-repeat="task in all_tasks" ng-if="isTaskActive(task)">
<td>{{ task.name }} <span class="label primary m-r-xs left5">{{ task.code }}</span></td>
<td><input type="number" class="form-control" ng-model="task.period" ng-change="changePeriod(task)" /></td>
<td>
<label class="ui-switch ui-switch-md m-t-xs">
<input type="checkbox" ng-change="changeTask(task)" ng-model="task.active" />
<i></i>
</label>
</td>
<td>
<button class="btn btn-sm white" ng-click="runTask(task)"><i class="material-icons">&#xE037;</i></button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>