v2.5
Update RestoreShift frontend
This commit is contained in:
119
web/views/shifts/index.html
Normal file
119
web/views/shifts/index.html
Normal file
@@ -0,0 +1,119 @@
|
||||
|
||||
<div id="container-floating">
|
||||
<div class="nd3 nds" data-toggle="tooltip" data-placement="left" title="Повторно выгрузить" ng-click="add()" style="background-color: #3c80f6" onmouseenter="$(this).tooltip('show')">
|
||||
<i class="material-icons"></i>
|
||||
</div>
|
||||
|
||||
<div class="nd1 nds" data-toggle="tooltip" data-placement="left" title="Обновить" ng-click="update()" style="background-color: #d3a411"
|
||||
onmouseenter="$(this).tooltip('show')">
|
||||
<i class="material-icons"></i>
|
||||
</div>
|
||||
|
||||
<div id="floating-button" data-toggle="tooltip" data-placement="left" title="Действия" onmouseenter="$(this).tooltip('show')">
|
||||
<p class="plus">
|
||||
<i class="material-icons"></i>
|
||||
</p>
|
||||
<p class="edit">
|
||||
<i class="material-icons"></i>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="padding">
|
||||
<div class="box">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered m-a-0">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Открыта</th>
|
||||
<th>Закрыта</th>
|
||||
<th>Выручка, BYN</th>
|
||||
<th style="width: 80px">
|
||||
<i class="material-icons"></i>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr ng-repeat="(index, shift) in shifts">
|
||||
<td>{{ shift.id }}</td>
|
||||
<td>
|
||||
{{ shift.opened }} <br>
|
||||
<small class="text-muted">{{ shift.open }}</small>
|
||||
</td>
|
||||
<td>
|
||||
{{ shift.closed }} <br>
|
||||
<small class="text-muted">{{ shift.close }}</small>
|
||||
</td>
|
||||
<td>{{ shift.sum | curr}}</td>
|
||||
<td>
|
||||
<div class="dropdown inline" style="margin-top: -5px; position: absolute;">
|
||||
<button class="btn white dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="padding: 0.2rem 0.4rem">
|
||||
<i class="material-icons"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu pull-right dropdown-menu-scale">
|
||||
<a class="dropdown-item" ng-click="reportStatistic(shift)">По статистике</a>
|
||||
<a class="dropdown-item" ng-click="reportRealisation(shift)">По реализации</a>
|
||||
<a class="dropdown-item" ng-click="reportDelete(shift)">По удалениям</a>
|
||||
<a class="dropdown-item" ng-click="reportStaff(shift)">По персоналу</a>
|
||||
<a class="dropdown-item" ng-click="reportPay(shift)">По отделам</a>
|
||||
<a class="dropdown-item" ng-click="reportOut(shift)">По внешним заказам</a>
|
||||
<a class="dropdown-item" ng-click="restoreShift(shift)">Восстановить смену</a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<footer class="dker p-a">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 text-center">
|
||||
<ul class="pagination pagination-sm m-a-0">
|
||||
<li>
|
||||
<a ng-click="prevPage()" ng-class="currentPage == 1 ? 'disabled' : ''">
|
||||
<i class="fa fa-chevron-left"></i>
|
||||
</a>
|
||||
</li>
|
||||
<li ng-class="page == currentPage ? 'active' : ''" ng-repeat="page in pages" ng-click="showPage(page)">
|
||||
<a href>{{ page }}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a ng-click="nextPage()" ng-class="currentPage == countOfPages ? 'disabled' : ''">
|
||||
<i class="fa fa-chevron-right"></i>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="report-delete" data-backdrop="true">
|
||||
<div ui-include="'../views/reports/items/deleted.html'"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="report-realisation" data-backdrop="true">
|
||||
<div ui-include="'../views/reports/items/realisation.html'"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="report-statistic" data-backdrop="true">
|
||||
<div ui-include="'../views/reports/items/statistic.html'"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="report-staff" data-backdrop="true">
|
||||
<div ui-include="'../views/reports/items/staff.html'"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="report-payment" data-backdrop="true">
|
||||
<div ui-include="'../views/reports/items/payment.html'"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="report-out" data-backdrop="true">
|
||||
<div ui-include="'../views/out.html'"></div>
|
||||
</div>
|
||||
|
||||
<div class="modal fade" id="reImport" data-backdrop="true">
|
||||
<div ui-include="'../views/shifts/reimport.html'"></div>
|
||||
</div>
|
||||
65
web/views/shifts/reimport.html
Normal file
65
web/views/shifts/reimport.html
Normal file
@@ -0,0 +1,65 @@
|
||||
<div class="modal-dialog modal-lg">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">Выберите диапазон дат для повторной выгрузки файлов реализаций</h5>
|
||||
</div>
|
||||
<div class="modal-body text-center p-lg" style="height: 366px">
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>С</label>
|
||||
<div class='input-group date' ui-jp="datetimepicker" ui-options="{
|
||||
format: 'DD.MM.YYYY',
|
||||
icons: {
|
||||
time: 'fa fa-clock-o',
|
||||
date: 'fa fa-calendar',
|
||||
up: 'fa fa-chevron-up',
|
||||
down: 'fa fa-chevron-down',
|
||||
previous: 'fa fa-chevron-left',
|
||||
next: 'fa fa-chevron-right',
|
||||
today: 'fa fa-screenshot',
|
||||
clear: 'fa fa-trash',
|
||||
close: 'fa fa-remove'
|
||||
}
|
||||
}">
|
||||
<input type='text' class="form-control" ng-model="start_date" />
|
||||
<span class="input-group-addon">
|
||||
<i class="material-icons"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
<div class="form-group">
|
||||
<label>По</label>
|
||||
<div class='input-group date' ui-jp="datetimepicker" ui-options="{
|
||||
format: 'DD.MM.YYYY',
|
||||
icons: {
|
||||
time: 'fa fa-clock-o',
|
||||
date: 'fa fa-calendar',
|
||||
up: 'fa fa-chevron-up',
|
||||
down: 'fa fa-chevron-down',
|
||||
previous: 'fa fa-chevron-left',
|
||||
next: 'fa fa-chevron-right',
|
||||
today: 'fa fa-screenshot',
|
||||
clear: 'fa fa-trash',
|
||||
close: 'fa fa-remove'
|
||||
}
|
||||
}">
|
||||
<input type='text' class="form-control" ng-model="end_date" />
|
||||
<span class="input-group-addon">
|
||||
<i class="material-icons"></i>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn dark-white p-x-md" data-dismiss="modal">Отмена</button>
|
||||
<button type="button" class="btn success p-x-md" ng-click="create()">Создать запрос</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user