form_creation 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 352b54ceb678fd107c07d9b41757710f9d989da61a625e4f9fdd4d2d3ffca100
4
- data.tar.gz: 8f9740f6bafd932f8fb9eb3e7e439caea160ea8b2edc672009fee1e8d25f8580
3
+ metadata.gz: dca3d1f5c12b60da49cd441a189bf2b748d97cfd2bdc651bcbfb60070f332824
4
+ data.tar.gz: 7a1afd6e742b73f3aa54276f585cc9688ae7bc047ccd0634626b79a65d754dff
5
5
  SHA512:
6
- metadata.gz: 61c0249295ba7eb61ccee2327fbf52b4886c8ce997127799351f9e509970ccd1144fdf80665349a9d8a2ebeaba5e87f53c12ad09babece5af0c4a40efc8eddce
7
- data.tar.gz: d5fed68b316489c4668e452635c6d9a622c1580d33913d7bc36ff9581ab3a9b81174c9795d1050edbb58185345e5010aba92bdbd2bf83d3558660867ab8f392b
6
+ metadata.gz: 777dba4dc5dea21ed897531005ab68b083ccd7560a03e9a9b38f9b36b628fae7d14b58d11fe1e7f136203905355bcedbe0e1db88eca4c33674d859c6b33c8766
7
+ data.tar.gz: f1980554e04ad74a4c6779bf1709d722f10126947af2378e06c706926d7ea3f142079437010037df956039fd8185da60b5590f6b6528f49715ea70a8bf773b58
@@ -21,4 +21,10 @@
21
21
  .error {
22
22
  color: red;
23
23
  font-size: 14px;
24
- }
24
+ }
25
+ .fade:not(.show) {
26
+ opacity: 0.8 !important;
27
+ }
28
+ .modal-content {
29
+ margin-top: 145px;
30
+ }
@@ -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
- <%= link_to 'Delete', post_path(p), method: :delete, data: {confirm: "Are you sure?"}, class: "btn btn-danger" %>
25
- </td>
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">&times;</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
 
@@ -1,3 +1,3 @@
1
1
  module FormCreation
2
- VERSION = '0.1.2'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: form_creation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - madhubabu-nyros