-
Notifications
You must be signed in to change notification settings - Fork 67
/
index.html
34 lines (31 loc) · 1.11 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<!-- modal -->
<div class="transparent" ng-if="modal"></div>
<div class="cm-container" ng-if="modal">
<div class="cm">
<h3>Do you really want to delete <span ng-bind="blog.short_name"></span>?</h3>
<div class="cm-buttons">
<button class="btn btn-danger" ng-click="deleteBlog(blog._id)">Yes</button>
<button class="btn btn-default" ng-click="cancelModal()">No</button>
</div>
</div>
</div>
<!-- container -->
<div class="container">
<h1><a ui-sref="admin-create-blog">Create Blog</a></h1>
<div class="table-responsive">
<table class="table table-striped ">
<thead>
<tr>
<th>Name</th>
<th>Delete</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="b in blogs | orderBy: '-created_at'">
<td><a ui-sref="admin-update-blog({id: b._id })" ng-bind="b.name"></a></td>
<td><a ng-click="showDeleteModal(b._id)" class="delete">Delete</a></td>
</tr>
</tbody>
</table>
</div>
</div>