feedback_gem 0.2.5 → 0.2.6

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: b05db8498e73d2c201b064864652c1489e16c1b1eefde2e4814facacd70019f0
4
- data.tar.gz: 3ad927d6c96074cd92e126dd546b18233759812a1c37b9e9e2d7b46cb8e6c1b1
3
+ metadata.gz: 524b9ead796dab077f1632675f430a7e534d0608e54907326502f4a12e78c417
4
+ data.tar.gz: 9b59a193999d2b230e9bbe3edc73021e4f9caffa8cb592aeb5eb6ec14d935e17
5
5
  SHA512:
6
- metadata.gz: 966854e8c124b8a5894f4bf82471eaf2d1d305e7b66a6d8f0c7a6339a91e77005d585f5660cfc030ab3955919e16a3fb9256f1de632d672e2811163e6e2aaaca
7
- data.tar.gz: f817242e3035bb2c625277bccde919366ee5fb1fd1cc93e0a3aabf0201f7c776a66a8270efc77897b535ab774efa424542eae68cc33d7d659f0f261938e1a0c3
6
+ metadata.gz: 9b1d50a0cf7653c803ab8d058353bbfd59a03f6feceb55165c0f057ea33c2cc8f7896413e5975c3b469528ee9a2b3eca061a51ab87b8bd2ba540c42a98a87b70
7
+ data.tar.gz: cac979efcc20b90cef7530c1c27080946154c37b11df4ab4faaed805a6e22dc7020789376563917818ade172c0cb97aa26b0c27f321ec20dc79f6f9c873e2c27
@@ -12,5 +12,4 @@
12
12
  *
13
13
  *= require_tree .
14
14
  *= require_self
15
- *= require font-awesome
16
15
  */
@@ -44,38 +44,34 @@
44
44
  <%= link_to edit_feedback_path(feedback),:class=>'btn btn-secondary btns' do %>
45
45
  <i class="fa fa-pencil"></i>
46
46
  <% end %>
47
- <%= link_to feedback_path(feedback),method: :delete, data:{confirm: 'Are you sure?'}, :class=>'btn btn-danger btns' do %>
47
+ <%= link_to '#', "data-toggle"=>"modal", "data-target" => "#delete-#{feedback.id}",:class=>'btn btn-danger btn' do %>
48
48
  <i class="fa fa-trash"></i>
49
49
  <% end %>
50
+ <div class="modal fade" id="delete-<%= feedback.id%>" tabindex="-1" role="dialog" aria-labelledby="exampleModalScrollableTitle" aria-hidden="true">
51
+ <div class="modal-dialog modal-dialog-scrollable" role="document">
52
+ <div class="modal-content">
53
+ <div class="modal-header">
54
+ <h5 class="modal-title" id="exampleModalScrollableTitle">Delete</h5>
55
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
56
+ <span aria-hidden="true">&times;</span>
57
+ </button>
58
+ </div>
59
+ <div class="modal-body">
60
+ Do you want to delete the feedback?
61
+ </div>
62
+ <div class="modal-footer">
63
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
64
+ <%= link_to 'Yes', feedback_path(feedback), method: :delete, :class => 'btn btn-danger'%>
65
+ </div>
66
+ </div>
67
+ </div>
68
+ </div>
69
+ </div>
70
+ </div>
50
71
  </td>
51
72
  </tr>
52
73
  <% end %>
53
74
  </tbody>
54
75
  </table>
55
- <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModalScrollable">
56
- Launch demo modal
57
- </button>
58
-
59
- <!-- Modal -->
60
- <div class="modal fade" id="exampleModalScrollable" tabindex="-1" role="dialog" aria-labelledby="exampleModalScrollableTitle" aria-hidden="true">
61
- <div class="modal-dialog modal-dialog-scrollable" role="document">
62
- <div class="modal-content">
63
- <div class="modal-header">
64
- <h5 class="modal-title" id="exampleModalScrollableTitle">Modal title</h5>
65
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
66
- <span aria-hidden="true">&times;</span>
67
- </button>
68
- </div>
69
- <div class="modal-body">
70
- ...
71
- </div>
72
- <div class="modal-footer">
73
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
74
- <button type="button" class="btn btn-primary">Save changes</button>
75
- </div>
76
- </div>
77
- </div>
78
- </div>
79
76
  </div>
80
77
  </div>
81
-
@@ -7,7 +7,11 @@
7
7
 
8
8
  <%= stylesheet_link_tag "feedback_gem/application", media: "all" %>
9
9
  <%= javascript_include_tag "feedback_gem/application" %>
10
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" %>
10
+ <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
11
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
12
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
13
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
14
+ <link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
11
15
  </head>
12
16
  <body>
13
17
 
@@ -1,3 +1,3 @@
1
1
  module FeedbackGem
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feedback_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - geethatulasi-nyros