form_creation 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dca3d1f5c12b60da49cd441a189bf2b748d97cfd2bdc651bcbfb60070f332824
|
4
|
+
data.tar.gz: 7a1afd6e742b73f3aa54276f585cc9688ae7bc047ccd0634626b79a65d754dff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 777dba4dc5dea21ed897531005ab68b083ccd7560a03e9a9b38f9b36b628fae7d14b58d11fe1e7f136203905355bcedbe0e1db88eca4c33674d859c6b33c8766
|
7
|
+
data.tar.gz: f1980554e04ad74a4c6779bf1709d722f10126947af2378e06c706926d7ea3f142079437010037df956039fd8185da60b5590f6b6528f49715ea70a8bf773b58
|
@@ -21,8 +21,28 @@
|
|
21
21
|
<td>
|
22
22
|
<%= link_to 'Show', post_path(p), class: "btn btn-info" %>
|
23
23
|
<%= link_to 'Edit', edit_post_path(p), class: "btn btn-warning"%>
|
24
|
-
|
25
|
-
|
24
|
+
<button type="button" class="btn btn-danger" data-toggle="modal" data-target="#post-<%= p.id %>">
|
25
|
+
Delete
|
26
|
+
</button>
|
27
|
+
<div class="modal fade" id="post-<%= p.id %>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
28
|
+
<div class="modal-dialog" role="document">
|
29
|
+
<div class="modal-content">
|
30
|
+
<div class="modal-header">
|
31
|
+
<h5 class="modal-title" id="exampleModalLabel">Delete</h5>
|
32
|
+
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
33
|
+
<span aria-hidden="true">×</span>
|
34
|
+
</button>
|
35
|
+
</div>
|
36
|
+
<div class="modal-body">
|
37
|
+
Are you sure?
|
38
|
+
</div>
|
39
|
+
<div class="modal-footer">
|
40
|
+
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
41
|
+
<%= link_to 'Delete', post_path(p), method: :delete, class: "btn btn-danger" %>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
</div>
|
26
46
|
</tr>
|
27
47
|
<% end %>
|
28
48
|
</tbody>
|
@@ -11,9 +11,9 @@
|
|
11
11
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
12
12
|
<script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script> -->
|
13
13
|
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
|
14
|
-
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js"></script>
|
15
|
-
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/additional-methods.min.js"></script>
|
16
|
-
|
14
|
+
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/jquery.validate.min.js"></script>
|
15
|
+
<script src="https://cdn.jsdelivr.net/jquery.validation/1.16.0/additional-methods.min.js"></script>
|
16
|
+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
|
17
17
|
</head>
|
18
18
|
<body>
|
19
19
|
|