facilmap/frontend/app/map/views/manage-views.html

21 wiersze
1.1 KiB
HTML

<div class="modal-header">
<button type="button" class="close" ng-click="$dismiss()"><span aria-hidden="true">&times;</span></button>
<h3 class="modal-title">Manage Views</h3>
</div>
<div class="modal-body">
<div uib-alert class="alert-danger" ng-if="error">{{error.message || error}}</div>
<table class="table table-striped">
<tbody>
<tr ng-class="{success: view.id == client.padData.defaultView.id}" ng-repeat="view in client.views">
<td><a href="javascript:" ng-click="display(view)">{{view.name}}</a></td>
<td class="td-buttons">
<button type="button" ng-hide="view.id == client.padData.defaultView.id" ng-click="makeDefault(view)" class="btn btn-default" ng-disabled="saving[view.id]">Make default</button>
<button type="button" ng-click="confirm('Do you really want to delete the view “' + view.name + '”?') && delete(view)" ng-disabled="saving[view.id]" class="btn btn-default">Delete</button>
</td>
</tr>
</tbody>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" ng-click="$dismiss()">Close</button>
</div>