feedback_gem 0.3.4 → 0.3.5

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: 35800554dff26f04ba2e60fd4700d71d67a9c2de8c44b0eb826ae9c33150045d
4
- data.tar.gz: d8df31f2e231dbc6574e10bd4c48bbd9acb6a0d62f19e615f5e29ecefdabc70f
3
+ metadata.gz: 81f6766c9630f90d2d0d252b3b213945a473ba91456fe2fec60ff725c4ecb576
4
+ data.tar.gz: d1266c98d4cacb35fe14bee664b9783ef90d15b8186c355e305c7c7e0dbcf2e8
5
5
  SHA512:
6
- metadata.gz: a9eebbbb186bf8d4c8efc4f85fd64cb104ee98229595155cd6f5d52940c1002045c62a204f58c0011198bab97ef4529bfefee09026e2fd19850ae0cc5c2e2ac0
7
- data.tar.gz: 8f9e2d9cd0a4b6c139d16720a122ffc94693e517f1873100f641fceeee3ff057298cfe7d62bdb0ea47b2f5edbc41fa8ad760c1862df2c36dc5d8b23b3c814b34
6
+ metadata.gz: d1ccce306157984c422c7859cfbcb2989285ae52430ac0aa69c56ec9ff4e652c5b6411c7c54efcefb41f7f97650f225e38268dbc34e67f187a71db98003b7ce0
7
+ data.tar.gz: a68e354ed478b34f000febc95d51ebb01b668defe0c540e448d85b3fae6544dba504d8f7a58e486f1c50713974fc9be2b9689c1237d7186ab5f752a341b91c18
data/README.md CHANGED
@@ -1,10 +1,17 @@
1
1
  --git clone https://github.com/geethatulasi-nyros/feedback_gem
2
2
  # FeedbackGem
3
- Short description and motivation.
3
+
4
+ ## Description
5
+ The feedback gem is used to implement feeback object in your rails application.
4
6
 
5
7
  ## Usage
6
8
  How to use my plugin.
7
9
 
10
+ ## Requirements
11
+ Bootstrap
12
+
13
+ Jquery
14
+
8
15
  ## Installation
9
16
  Add this line to your application's Gemfile:
10
17
 
@@ -33,4 +40,13 @@ mount FeedbackGem::Engine => "/feedback_gem"
33
40
  Contribution directions go here.
34
41
 
35
42
  ## License
36
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
43
+
44
+ (The MIT License)
45
+
46
+ Copyright (c) 2019 Geetha Tulasi
47
+
48
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
49
+
50
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
51
+
52
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -5,51 +5,79 @@
5
5
  $(document).ready(function () {
6
6
  $("#new_feedback").validate({
7
7
  rules: {
8
- "feedback[name]": {required: true},
9
- "feedback[email]": {required: true, email: true},
10
- "feedback[subject]": {required: true},
11
- "feedback[description]": {required: true}
8
+ "feedback[name]": {required: true,maxlength:30},
9
+ "feedback[email]": {required: true, email: true,maxlenght:25},
10
+ "feedback[subject]": {required: true,maxlenth:30},
11
+ "feedback[description]": {required: true,maxlength:200}
12
12
  },
13
13
  messages:{
14
14
  "feedback[name]":{
15
- required:"Please enter name"
15
+ required:"Please enter name",
16
+ maxlength: "The name should not exceed than 30 characters"
16
17
  },
17
18
  "feedback[email]":{
18
- required:"Please enter email"
19
+ required:"Please enter email",
20
+ maxlength: "The email should not exceed than 25 characters"
19
21
  },
20
22
  "feedback[subject]":{
21
- required:"Please enter subject"
23
+ required:"Please enter subject",
24
+ maxlength: "The subject should not exceed than 30 characters"
22
25
  },
23
26
  "feedback[description]":{
24
- required:"Please enter description"
27
+ required:"Please enter description",
28
+ maxlength: "The description should not exceed than 200 characters"
25
29
  },
26
30
  }
27
31
  });
28
32
  $(".edit_feedback").validate({
29
33
  rules: {
30
- "feedback[name]": {required: true},
31
- "feedback[email]": {required: true, email: true},
32
- "feedback[subject]": {required: true},
33
- "feedback[description]": {required: true}
34
+ "feedback[name]": {required: true,maxlength:30},
35
+ "feedback[email]": {required: true, email: true,maxlenght:25},
36
+ "feedback[subject]": {required: true,maxlenth:30},
37
+ "feedback[description]": {required: true,maxlength:200}
34
38
  },
35
39
  messages:{
36
40
  "feedback[name]":{
37
- required:"Please enter name"
41
+ required:"Please enter name",
42
+ maxlength: "The name should not exceed than 30 characters"
38
43
  },
39
44
  "feedback[email]":{
40
- required:"Please enter email"
45
+ required:"Please enter email",
46
+ maxlength: "The email should not exceed than 25 characters"
41
47
  },
42
48
  "feedback[subject]":{
43
- required:"Please enter subject"
49
+ required:"Please enter subject",
50
+ maxlength: "The subject should not exceed than 30 characters"
44
51
  },
45
52
  "feedback[description]":{
46
- required:"Please enter description"
53
+ required:"Please enter description",
54
+ maxlength: "The description should not exceed than 200 characters"
47
55
  },
48
56
  }
49
57
  });
50
58
  $('#feedbacks_table').DataTable({
51
59
  "order": [[ 0, "desc" ]]
52
60
  });
61
+ $('#new_feedback_cancel').click(function(){
62
+ $('#new_feedback')[0].reset();
63
+ var validator = $("#new_feedback").validate();
64
+ validator.resetForm();
65
+ });
66
+ $('#edit_feedback_cancel').click(function(){
67
+ $('.edit_feedback')[0].reset();
68
+ var validator = $(".edit_feedback").validate();
69
+ validator.resetForm();
70
+ });
71
+ $('#new').on('hidden.bs.modal', function (e) {
72
+ $('#new_feedback')[0].reset();
73
+ var validator = $("#new_feedback").validate();
74
+ validator.resetForm();
75
+ });
76
+ $('.edit_feedback_form').on('hidden.bs.modal', function (e) {
77
+ $('.edit_feedback')[0].reset();
78
+ var validator = $(".edit_feedback").validate();
79
+ validator.resetForm();
80
+ });
53
81
  });
54
82
 
55
83
 
@@ -67,4 +67,6 @@ html, body {
67
67
  .error {
68
68
  color: red;
69
69
  }
70
-
70
+ .actions{
71
+ width:10;
72
+ }
@@ -3,7 +3,7 @@
3
3
  <%=f.label :name %>
4
4
  </div>
5
5
  <div class='offset-1 col col-md-9'>
6
- <%=f.text_field :name,:class=>"input",required: true %>
6
+ <%=f.text_field :name,:class=>"input"%>
7
7
  </div>
8
8
  </div>
9
9
  <div class='row formfields'>
@@ -11,7 +11,7 @@
11
11
  <%=f.label :email %>
12
12
  </div>
13
13
  <div class='offset-1 col col-md-9'>
14
- <%=f.text_field :email,:class=>"input",required: true,type: "email" %>
14
+ <%=f.text_field :email,:class=>"input"%>
15
15
  </div>
16
16
  </div>
17
17
  <div class='row formfields'>
@@ -19,7 +19,7 @@
19
19
  <%=f.label :subject %>
20
20
  </div>
21
21
  <div class='offset-1 col col-md-9'>
22
- <%=f.text_field :subject,:class=>"input",required: true %>
22
+ <%=f.text_field :subject,:class=>"input"%>
23
23
  </div>
24
24
  </div>
25
25
  <div class='row formfields'>
@@ -27,6 +27,6 @@
27
27
  <%=f.label :description %>
28
28
  </div>
29
29
  <div class='offset-1 col col-md-9'>
30
- <%=f.text_field :description,:class=>"input",required: true %>
30
+ <%=f.text_area :description,:class=>"input"%>
31
31
  </div>
32
32
  </div>
@@ -8,17 +8,13 @@
8
8
  <%=link_to '#', "data-toggle"=>"modal", "data-target" => "#new",:class=>'btn btn-warning navbar-brand ml-auto' do %>
9
9
  <i>Create new feedback</i>
10
10
  <%end%>
11
- <!--<%= form_tag(feedbacks_path, :method => "get", id: "feedback-form",:class=>"form-inline") do %>
12
- <%= text_field_tag :search, params[:search], placeholder: "Search feedbacks",:class=>"form-control mr-sm-2" %>
13
- <%= submit_tag "Search",:class=>"btn btn-outline-success my-2 my-sm-0" %>
14
- <% end %>-->
15
11
  </nav>
16
12
  <div class="modal fade" id="new" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
17
13
  <div class="modal-dialog" role="document">
18
14
  <div class="modal-content">
19
15
  <div class="modal-header">
20
16
  <h5 class="modal-title" id="exampleModalLabel">Create Feedback</h5>
21
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
17
+ <button type="button" class="close" data-dismiss="modal" aria-label="Cancel">
22
18
  <span aria-hidden="true">&times;</span>
23
19
  </button>
24
20
  </div>
@@ -29,145 +25,145 @@
29
25
  </div>
30
26
  </div>
31
27
  <div class="modal-footer">
32
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
28
+ <button type="button" class="btn btn-secondary" data-dismiss="modal" id="new_feedback_cancel">Cancel</button>
33
29
  <%=f.submit 'Create' ,:class=>'btn btn-success'%>
34
30
  </div>
35
31
  <%end %>
36
32
  </div>
37
33
  </div>
38
34
  </div>
39
- <div class="feedbacklist">
40
- <table class="table table-bordered table-hover" id="feedbacks_table">
41
- <thead class="thead-light">
42
- <tr>
43
- <th>sl.no</th>
44
- <th>Name</th>
45
- <th>Email</th>
46
- <th>Subject</th>
47
- <th>Description</th>
48
- <th>Actions</th>
49
- </tr>
50
- </thead>
51
- <tbody>
52
- <% @feedbacks.each do |feedback| %>
35
+ <div class="row">
36
+ <div class=" table-responsive feedbacklist">
37
+ <table class="table table-bordered table-hover" id="feedbacks_table">
38
+ <thead class="thead-light">
53
39
  <tr>
54
- <td class="feedback-list">
55
- <%= feedback.id %>
56
- </td>
57
- <td>
58
- <strong><%= feedback.name %></strong>
59
- </td>
60
- <td>
61
- <%= feedback.email %>
62
- </td>
63
- <td>
64
- <strong><%= feedback.subject %></strong>
65
- </td>
66
- <td>
67
- <%= feedback.description %>
68
- </td>
69
- <td>
70
- <%= link_to '#', "data-toggle"=>"modal", "data-target" => "#show-#{feedback.id}",:class=>'btn btn-info btns' do %>
71
- <i class="fa fa-eye"></i>
72
- <% end %>
73
- <%= link_to '#', "data-toggle"=>"modal", "data-target" => "#edit-#{feedback.id}",:class=>'btn btn-secondary btns' do %>
74
- <i class="fa fa-pencil"></i>
75
- <% end %>
76
- <%= link_to '#', "data-toggle"=>"modal", "data-target" => "#delete-#{feedback.id}",:class=>'btn btn-danger btn' do %>
77
- <i class="fa fa-trash"></i>
78
- <% end %>
40
+ <th scope="col">sl.no</th>
41
+ <th scope="col">Name</th>
42
+ <th scope="col">Email</th>
43
+ <th scope="col">Subject</th>
44
+ <th scope="col">Description</th>
45
+ <th scope="col" style="width:20%">Actions</th>
46
+ </tr>
47
+ </thead>
48
+ <tbody>
49
+ <% @feedbacks.each do |feedback| %>
50
+ <tr>
51
+ <td class="feedback-list">
52
+ <%= feedback.id %>
53
+ </td>
54
+ <td>
55
+ <strong><%= feedback.name %></strong>
56
+ </td>
57
+ <td>
58
+ <%= feedback.email %>
59
+ </td>
60
+ <td>
61
+ <%= feedback.subject %>
62
+ </td>
63
+ <td>
64
+ <%= feedback.description %>
65
+ </td>
66
+ <td>
67
+ <%= link_to '#', "data-toggle"=>"modal", "data-target" => "#show-#{feedback.id}",:class=>'btn btn-info btns' do %>
68
+ <i class="fa fa-eye"></i>
69
+ <% end %>
70
+ <%= link_to '#', "data-toggle"=>"modal", "data-target" => "#edit-#{feedback.id}",:class=>'btn btn-secondary btns' do %>
71
+ <i class="fa fa-pencil"></i>
72
+ <% end %>
73
+ <%= link_to '#', "data-toggle"=>"modal", "data-target" => "#delete-#{feedback.id}",:class=>'btn btn-danger btn' do %>
74
+ <i class="fa fa-trash"></i>
75
+ <% end %>
79
76
  <div class="modal fade" id="delete-<%= feedback.id%>" tabindex="-1" role="dialog" aria-labelledby="exampleModalScrollableTitle" aria-hidden="true">
80
- <div class="modal-dialog modal-dialog-scrollable" role="document">
81
- <div class="modal-content">
82
- <div class="modal-header">
83
- <h5 class="modal-title" id="exampleModalScrollableTitle">Delete</h5>
84
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
85
- <span aria-hidden="true">&times;</span>
86
- </button>
87
- </div>
88
- <div class="modal-body">
89
- Do you want to delete the feedback?
90
- </div>
91
- <div class="modal-footer">
92
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
93
- <%= link_to 'Yes', feedback_path(feedback), method: :delete, :class => 'btn btn-danger'%>
94
- </div>
95
- </div>
96
- </div>
97
- </div>
98
- <div class="modal fade" id="show-<%= feedback.id%>" tabindex="-1" role="dialog" aria-labelledby="exampleModalScrollableTitle" aria-hidden="true">
99
- <div class="modal-dialog modal-dialog-scrollable" role="document">
100
- <div class="modal-content">
101
- <div class="modal-header">
102
- <h5 class="modal-title" id="exampleModalScrollableTitle">Feedback from <%= feedback.name%></h5>
103
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
104
- <span aria-hidden="true">&times;</span>
105
- </button>
77
+ <div class="modal-dialog modal-dialog-scrollable" role="document">
78
+ <div class="modal-content">
79
+ <div class="modal-header">
80
+ <h5 class="modal-title" id="exampleModalScrollableTitle">Delete</h5>
81
+ <button type="button" class="close" data-dismiss="modal" aria-label="Cancel">
82
+ <span aria-hidden="true">&times;</span>
83
+ </button>
84
+ </div>
85
+ <div class="modal-body">
86
+ Do you want to delete the feedback?
87
+ </div>
88
+ <div class="modal-footer">
89
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
90
+ <%= link_to 'Yes', feedback_path(feedback), method: :delete, :class => 'btn btn-danger'%>
91
+ </div>
92
+ </div>
93
+ </div>
94
+ </div>
95
+ <div class="modal fade" id="show-<%= feedback.id%>" tabindex="-1" role="dialog" aria-labelledby="exampleModalScrollableTitle" aria-hidden="true">
96
+ <div class="modal-dialog modal-dialog-scrollable" role="document">
97
+ <div class="modal-content">
98
+ <div class="modal-header">
99
+ <h5 class="modal-title" id="exampleModalScrollableTitle">Feedback from <%= feedback.name%></h5>
100
+ <button type="button" class="close" data-dismiss="modal" aria-label="Cancel">
101
+ <span aria-hidden="true">&times;</span>
102
+ </button>
103
+ </div>
104
+ <div class="modal-body">
105
+ <div class="row">
106
+ <div class="col-md-4">
107
+ <strong>Name:</strong>
108
+ </div>
109
+ <div class="col-md-8">
110
+ <%= feedback.name %>
111
+ </div>
112
+ <div class="col-md-4">
113
+ <strong>email:</strong>
114
+ </div>
115
+ <div class="col-md-8">
116
+ <%= feedback.email %>
117
+ </div>
118
+ <div class="col-md-4">
119
+ <strong>subject:</strong>
120
+ </div>
121
+ <div class="col-md-8">
122
+ <%= feedback.subject %>
123
+ </div>
124
+ <div class="col-md-4">
125
+ <strong>feedback:</strong>
126
+ </div>
127
+ <div class="col-md-8">
128
+ <%= feedback.description %>
129
+ </div>
106
130
  </div>
131
+ </div>
132
+ <div class="modal-footer">
133
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
134
+ </div>
135
+ </div>
136
+ </div>
137
+ </div>
138
+ <div class="modal fade edit_feedback_form" id="edit-<%= feedback.id%>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
139
+ <div class="modal-dialog" role="document">
140
+ <div class="modal-content">
141
+ <div class="modal-header">
142
+ <h5 class="modal-title" id="exampleModalLabel">Edit Feedback</h5>
143
+ <button type="button" class="close" data-dismiss="modal" aria-label="Cancel">
144
+ <span aria-hidden="true">&times;</span>
145
+ </button>
146
+ </div>
147
+ <%= form_for feedback,url: feedback_path(feedback),method: :put do |f| %>
107
148
  <div class="modal-body">
108
- <div class="row">
109
- <div class="col-md-4">
110
- <strong>Name:</strong>
111
- </div>
112
- <div class="col-md-8">
113
- <%= feedback.name %>
114
- </div>
115
- <div class="col-md-4">
116
- <strong>email:</strong>
117
- </div>
118
- <div class="col-md-8">
119
- <%= feedback.email %>
120
- </div>
121
- <div class="col-md-4">
122
- <strong>subject:</strong>
123
- </div>
124
- <div class="col-md-8">
125
- <%= feedback.subject %>
126
- </div>
127
- <div class="col-md-4">
128
- <strong>feedback:</strong>
129
- </div>
130
- <div class="col-md-8">
131
- <%= feedback.description %>
132
- </div>
133
- </div>
149
+ <div>
150
+ <%= render :partial => "form", :locals =>{:f=>f} %>
151
+ </div>
134
152
  </div>
135
153
  <div class="modal-footer">
136
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
137
- </div>
138
- </div>
139
- </div>
140
- </div>
141
- <div class="modal fade" id="edit-<%= feedback.id%>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
142
- <div class="modal-dialog" role="document">
143
- <div class="modal-content">
144
- <div class="modal-header">
145
- <h5 class="modal-title" id="exampleModalLabel">Edit Feedback</h5>
146
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
147
- <span aria-hidden="true">&times;</span>
148
- </button>
154
+ <button type="button" class="btn btn-secondary" data-dismiss="modal" id="edit_feedback_cancel">Cancel</button>
155
+ <%=f.submit 'Update' ,:class=>'btn btn-success'%>
149
156
  </div>
150
- <%= form_for feedback,url: feedback_path(feedback),method: :put do |f| %>
151
- <div class="modal-body">
152
- <div>
153
- <%= render :partial => "form", :locals =>{:f=>f} %>
154
- </div>
155
- </div>
156
- <div class="modal-footer">
157
- <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
158
- <%=f.submit 'Update' ,:class=>'btn btn-success'%>
159
- </div>
160
- <%end %>
161
- </div>
162
- </div>
163
- </div>
157
+ <%end %>
158
+ </div>
159
+ </div>
164
160
  </div>
165
- </div>
166
- </td>
167
- </tr>
168
- <% end %>
169
- </tbody>
170
- </table>
161
+ </td>
162
+ </tr>
163
+ <% end %>
164
+ </tbody>
165
+ </table>
166
+ </div>
171
167
  </div>
172
168
  </div>
173
169
 
@@ -1,71 +1,84 @@
1
1
  <div class="container">
2
- <% flash.each do |key, value| %>
3
- <div class="<%= flash_class(key) %>">
4
- <%= value %>
5
- </div>
6
- <% end %>
7
- <div class="new">
8
- <%= form_for :feedback,method: :post,url: feedbacks_path do |f| %>
9
- <div class="row formfields">
10
- <div class='col col-md-2'>
11
- <%=f.label :name %>
12
- </div>
13
- <div class='offset-1 col col-md-9'>
14
- <%=f.text_field :name,:class=>"input",required: true %>
15
- </div>
16
- </div>
17
- <div class='row formfields'>
18
- <div class='col col-md-2'>
19
- <%=f.label :email %>
20
- </div>
21
- <div class='offset-1 col col-md-9'>
22
- <%=f.text_field :email,:class=>"input",required: true,type: "email" %>
23
- </div>
24
- </div>
25
- <div class='row formfields'>
26
- <div class='col col-md-2'>
27
- <%=f.label :subject %>
28
- </div>
29
- <div class='offset-1 col col-md-9'>
30
- <%=f.text_field :subject,:class=>"input",required: true %>
31
- </div>
32
- </div>
33
- <div class='row formfields'>
34
- <div class='col col-md-2'>
35
- <%=f.label :description %>
36
- </div>
37
- <div class='offset-1 col col-md-9'>
38
- <%=f.text_field :description,:class=>"input",required: true %>
39
- </div>
40
- </div>
41
- <div class="row formfields">
42
- <div class="offset-8 col-6 col-md-4">
43
- <%=link_to 'Back', feedbacks_path,:class=>'btn btn-secondary' %>
44
- <%=f.submit 'Submit' ,:class=>'btn btn-success'%>
45
- </div>
46
- </div>
47
- <%end %>
2
+
3
+ <nav class="navbar navbar-light bg-light">
4
+ <%=link_to '#', "data-toggle"=>"modal", "data-target" => "#new",:class=>'btn btn-warning navbar-brand ml-auto' do %>
5
+ <i>Create new feedback</i>
6
+ <%end%>
7
+ </nav>
8
+ <div class="modal fade" id="new" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
9
+ <div class="modal-dialog" role="document">
10
+ <div class="modal-content">
11
+ <div class="modal-header">
12
+ <h5 class="modal-title" id="exampleModalLabel">Create Feedback</h5>
13
+ <button type="button" class="close" data-dismiss="modal" aria-label="Cancel">
14
+ <span aria-hidden="true">&times;</span>
15
+ </button>
16
+ </div>
17
+ <%= form_for :feedback,method: :post,url: feedbacks_path,:html=>{id:"new_feedback"} do |f| %>
18
+ <div class="modal-body">
19
+ <div>
20
+ <%= render :partial => "form", :locals =>{:f=>f} %>
21
+ </div>
22
+ </div>
23
+ <div class="modal-footer">
24
+ <button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
25
+ <%=f.submit 'Create' ,:class=>'btn btn-success'%>
26
+ </div>
27
+ <%end %>
28
+ </div>
29
+ </div>
30
+ </div>
31
+
32
+
33
+ <!-- Columns start at 50% wide on mobile and bump up to 33.3% wide on desktop -->
34
+ <div class="row">
35
+
36
+ <table class="table table-bordered table-hover" id="new-table">
37
+ <thead>
38
+ <tr>
39
+
40
+ <th>Heading</th>
41
+ <th>Heading</th>
42
+ <th>Heading</th>
43
+ <th>Heading</th>
44
+ <th>Heading</th>
45
+ <th>Heading</th>
46
+ <th>Heading</th>
47
+ <th>Heading</th>
48
+ <th>Heading</th>
49
+ </tr>
50
+ </thead>
51
+ <tbody>
52
+ <tr>
53
+
54
+ <td>Cell</td>
55
+ <td>Cell</td>
56
+ <td>Cell</td>
57
+ <td>Cell</td>
58
+ <td>Cell</td>
59
+ <td>Use .table-responsive{-sm|-md|-lg|-xl} classes as needed to create responsive tables up to a particular breakpoint. From that breakpoint and up, the table will behave normally and not scroll horizontally. Use .table-responsive{-sm|-md|-lg|-xl} classes as needed to create responsive tables up to a particular breakpoint. From that breakpoint and up, the table will behave normally and not scroll horizontally.</td>
60
+ <td>Cell</td>
61
+ <td>Cell</td>
62
+ <td>Cell</td>
63
+ </tr>
64
+ <tr>
65
+
66
+ <td>Cell</td>
67
+ <td>Cell</td>
68
+ <td>Cell</td>
69
+ <td>Cell</td>
70
+ <td>Cell</td>
71
+ <td>Cell</td>
72
+ <td>Cell</td>
73
+ <td>Cell</td>
74
+ <td>Cell</td>
75
+ </tr>
76
+
77
+ </tbody>
78
+ </table>
79
+
48
80
  </div>
49
- </div>
50
81
 
51
- <table id="your-table-id" class="display">
52
- <thead>
53
- <tr>
54
- <th>Column1</th>
55
- <th>Column2</th>
56
- <th>Column3</th>
57
- </tr>
58
- </thead>
59
- <tbody>
60
- <tr>
61
- <td>Data11</td>
62
- <td>Data12</td>
63
- <td>Data13</td>
64
- </tr>
65
- <tr>
66
- <td>Data21</td>
67
- <td>Data22</td>
68
- <td>Data23</td>
69
- </tr>
70
- </tbody>
71
- </table>
82
+
83
+
84
+ </div>
@@ -1,3 +1,3 @@
1
1
  module FeedbackGem
2
- VERSION = '0.3.4'
2
+ VERSION = '0.3.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feedback_gem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - geethatulasi-nyros
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-30 00:00:00.000000000 Z
11
+ date: 2019-10-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails