-Add delete reports
This commit is contained in:
miroman-afk
2022-02-01 02:47:25 +03:00
parent 5497b611ef
commit 5b1c774259
8 changed files with 106 additions and 25 deletions

View File

@@ -102,11 +102,22 @@
<td>{{ report.name }}</td>
<td>{{ report.start_date }}</td>
<td>{{ report.end_date }}</td>
<td>
<td ng-if="delete_shift_value == 0">
<button class="btn btn-sm white" ng-click="archiveReport(report.type, report.start_date, report.end_date)">
<i class="material-icons">&#xE85C;</i>
</button>
</td>
<td ng-if="delete_shift_value > 0">
<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">&#xE5D2;</i>
</button>
<div class="dropdown-menu pull-right dropdown-menu-scale">
<a class="dropdown-item" ng-click="archiveReport(report.type, report.start_date, report.end_date)">Просмотр</a>
<a class="dropdown-item" ng-click="deleteReport(report)">Удалить отчет</a>
</div>
</div>
</td>
</tr>
</tbody>
</table>