nyros_form2 0.3.9 → 0.4

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: e572bef99078c3ad3f37b5b708ff78845b3ce5c5b8dc15d016f7e55238f7d5bf
4
- data.tar.gz: '090eaad58e6e68700ca9ca847244b71a0ccb9bea0c15736d3348ef9520ba58d4'
3
+ metadata.gz: ec30dff04b3b56a55e56d2178da04279aa7a87115b6710ff3ddbebbbc4e16749
4
+ data.tar.gz: ac6bf87bf096d50c1dfa5c5be5b3c6096fc340c5990142ea583deae650346f54
5
5
  SHA512:
6
- metadata.gz: b718f8a66ccf4d03a0a07b7483bc916ad298a7e24a5490227f9b7bbe59a21b115719bf01cb330ac82051b51f0c90b89b9ca519fd5508cbbd815eb2cb69a1b99d
7
- data.tar.gz: 84d505b404071269eb074d37b7f3e904942ce95568a67cb1b77a56cb0fae63786a6aa96dc96664c630f1d95f909c00fd49be9e9f7a4cb90e5e33f3d3ea381c6f
6
+ metadata.gz: 8e3e584f0652830c1766b9ee1b83b3b431df23a23736bde504f9ada6dbff943d4ee65fba5a637bc97cdbb8366fae1b39a271755b9bd0620db85367c91b8a40ad
7
+ data.tar.gz: 7765e2a1ec871c41c4081739ad1cd7e50054ebc3fc0e529542dc404832d73f6eadd5af682e1a14dc079951c73924764c207df209c279cd5cd1ceb341fb73afb3
@@ -1,3 +1,3 @@
1
1
  //= link_directory ../javascripts/nyros_form2 .js
2
2
  //= link_directory ../stylesheets/nyros_form2 .css
3
- //= link nyros_form2/application.css
3
+ //= link nyros_form2/application.scss
@@ -13,6 +13,13 @@
13
13
 
14
14
  //= require rails-ujs
15
15
  //= require activestorage
16
+ //= require turbolinks
17
+ //= require jquery
18
+ //= require bootstrap-sprockets
16
19
  //= require_tree .
17
20
 
18
21
 
22
+ //= require dataTables/jquery.dataTables
23
+ //= require dataTables/bootstrap/3/jquery.dataTables.bootstrap
24
+
25
+
@@ -10,10 +10,19 @@
10
10
  * files in this directory. Styles in this file should be added after the last require_* statement.
11
11
  * It is generally better to create a new file per style scope.
12
12
  *
13
- *= require_tree .
13
+ *= require_tree .
14
14
  *= require_self
15
+
15
16
  */
16
17
 
18
+ @import "bootstrap";
19
+
20
+
21
+
22
+
23
+
24
+
25
+
17
26
 
18
27
 
19
28
 
@@ -2,6 +2,8 @@
2
2
  Place all the styles related to the matching controller here.
3
3
  They will automatically be included in application.css.
4
4
  */
5
+
6
+
5
7
  .form-group{
6
8
  width:356px;
7
9
  margin-bottom: 30px;
@@ -4,6 +4,10 @@ module NyrosForm2
4
4
  class UsersController < ApplicationController
5
5
  def index
6
6
  @users = User.all.order('created_at DESC')
7
+ respond_to do |format|
8
+ format.html
9
+ format.json { render json: @users }
10
+ end
7
11
  end
8
12
 
9
13
  def new
@@ -8,12 +8,12 @@
8
8
  <%= javascript_include_tag "nyros_form2/application" %>
9
9
 
10
10
  <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.19.0/jquery.validate.min.js"></script>
11
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
12
-
13
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
11
+ <!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
12
+ --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
14
13
  <script src="https://cdn.jsdelivr.net/jquery.validation/1.15.1/jquery.validate.min.js"></script>
15
14
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
16
-
15
+ <script src="https://cdn.datatables.net/1.10.4/js/jquery.dataTables.min.js"></script>
16
+ <link rel="stylesheet" href="https://cdn.datatables.net/1.10.4/css/jquery.dataTables.min.css">
17
17
  </head>
18
18
 
19
19
  <body>
@@ -1,11 +1,12 @@
1
- <br><br><br>
1
+ <br><br>
2
+
2
3
  <div class="container">
3
4
  <div>
4
5
  <h2 style="float: left">Users</h2>
5
6
  <%= link_to "Create New User", new_user_path, :class => 'btn btn-sm btn-success', :style => 'float:right'%>
6
7
  </div><br><br><br>
7
8
 
8
- <table class="table table-bordered">
9
+ <table class="table table-bordered" id="table_id">
9
10
  <thead>
10
11
  <tr>
11
12
  <th>Id</th>
@@ -53,3 +54,11 @@
53
54
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
54
55
 
55
56
 
57
+ <script type="text/javascript">
58
+ $(document).ready(function () {
59
+ $('#table_id').dataTable({
60
+ "pageLength": 5,
61
+ "lengthMenu": [5, 10, 20, 50, 100, 200, 500],
62
+ });
63
+ });
64
+ </script>
@@ -1,3 +1,3 @@
1
1
  module NyrosForm2
2
- VERSION = '0.3.9'
2
+ VERSION = '0.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nyros_form2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - raju rekadi
@@ -51,8 +51,8 @@ files:
51
51
  - app/assets/config/nyros_form2_manifest.js
52
52
  - app/assets/javascripts/nyros_form2/application.js
53
53
  - app/assets/javascripts/nyros_form2/users.js
54
- - app/assets/stylesheets/nyros_form2/application.css
55
- - app/assets/stylesheets/nyros_form2/users.css
54
+ - app/assets/stylesheets/nyros_form2/application.scss
55
+ - app/assets/stylesheets/nyros_form2/users.scss
56
56
  - app/controllers/nyros_form2/application_controller.rb
57
57
  - app/controllers/nyros_form2/users_controller.rb
58
58
  - app/helpers/nyros_form2/application_helper.rb