inline_forms 5.0.17 → 5.0.18
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77b83cb4c26fb63ab88bdba4b47d8696022c183a
|
|
4
|
+
data.tar.gz: 4c3a672f959085ccef0aeebd35495db1c7523d89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c769b9f73ffea49cfb36ff83eb056f90397307990937e6e0048b10e928affb51951ecb8c1ec8d3bc91ff72179ab9dde71f0b5de9e3fa5f9fb95669a88c3282f5
|
|
7
|
+
data.tar.gz: 52517ec04ea8ae2351238a58e56c8e30bf381a867b15ce40ee53c7022bb09c3a627ac6e3ff5c0eae230fb78384b72280a6a8bd8026efadb64dcb96561f59c443
|
|
@@ -1,50 +1,51 @@
|
|
|
1
1
|
GENERATOR_PATH = File.dirname(File.expand_path(__FILE__)) + '/../'
|
|
2
2
|
|
|
3
|
-
create_file 'Gemfile', "# created by inline_forms #{ENV['inline_forms_version']}\n"
|
|
3
|
+
create_file 'Gemfile', "# created by inline_forms #{ENV['inline_forms_version']} on {Date.today}\n"
|
|
4
4
|
|
|
5
5
|
add_source 'https://rubygems.org'
|
|
6
6
|
|
|
7
|
-
gem 'rails', '~> 5.0.2'
|
|
8
|
-
gem 'rake'
|
|
9
|
-
gem 'jquery-rails'
|
|
10
|
-
gem 'jquery-ui-sass-rails'
|
|
11
|
-
gem 'capistrano'
|
|
12
|
-
gem 'will_paginate' #, git: 'https://github.com/acesuares/will_paginate.git'
|
|
13
|
-
gem 'tabs_on_rails', git: 'https://github.com/acesuares/tabs_on_rails.git', :branch => 'update_remote'
|
|
14
|
-
gem 'ckeditor'
|
|
15
7
|
gem 'cancan', git: 'https://github.com/acesuares/cancan.git', :branch => '2.0'
|
|
8
|
+
gem 'capistrano'
|
|
16
9
|
gem 'carrierwave'
|
|
17
|
-
gem '
|
|
18
|
-
gem '
|
|
10
|
+
gem 'ckeditor'
|
|
11
|
+
gem 'coffee-rails'
|
|
12
|
+
gem 'compass-rails'
|
|
19
13
|
gem 'devise'
|
|
14
|
+
gem 'foundation-icons-sass-rails'
|
|
15
|
+
gem 'foundation-rails', '~> 5.5'
|
|
16
|
+
gem 'i18n-active_record', git: 'https://github.com/acesuares/i18n-active_record.git'
|
|
20
17
|
gem 'inline_forms', '>=5'
|
|
21
|
-
gem '
|
|
18
|
+
gem 'jquery-rails'
|
|
19
|
+
gem 'jquery-timepicker-rails'
|
|
20
|
+
gem 'jquery-ui-sass-rails'
|
|
22
21
|
gem 'mini_magick'
|
|
22
|
+
gem 'mysql2'
|
|
23
|
+
gem 'paper_trail'
|
|
23
24
|
gem 'rails-i18n'
|
|
24
|
-
gem '
|
|
25
|
-
gem '
|
|
26
|
-
gem '
|
|
25
|
+
gem 'rails', '~> 5.0.6'
|
|
26
|
+
gem 'rake'
|
|
27
|
+
gem 'remotipart', '~> 1.0'
|
|
27
28
|
gem 'rvm-capistrano', require: false
|
|
28
|
-
gem '
|
|
29
|
-
gem 'mysql2'
|
|
29
|
+
gem 'rvm'
|
|
30
30
|
gem 'sass-rails'
|
|
31
|
-
gem '
|
|
32
|
-
gem 'compass-rails'
|
|
33
|
-
gem 'foundation-icons-sass-rails'
|
|
31
|
+
gem 'tabs_on_rails', git: 'https://github.com/acesuares/tabs_on_rails.git', :branch => 'update_remote'
|
|
34
32
|
gem 'therubyracer'
|
|
35
33
|
gem 'uglifier'
|
|
34
|
+
gem 'unicorn'
|
|
35
|
+
gem 'validation_hints'
|
|
36
|
+
gem 'will_paginate' #, git: 'https://github.com/acesuares/will_paginate.git'
|
|
36
37
|
|
|
37
38
|
|
|
38
39
|
gem_group :development do
|
|
39
|
-
gem 'yaml_db'
|
|
40
|
-
gem 'seed_dump', git: 'https://github.com/acesuares/seed_dump.git'
|
|
41
|
-
gem 'switch_user'
|
|
42
|
-
gem 'sqlite3'
|
|
43
|
-
gem 'rspec-rails'
|
|
44
|
-
gem 'shoulda'
|
|
45
40
|
gem 'bundler'
|
|
46
|
-
gem 'rspec'
|
|
47
41
|
gem 'listen'
|
|
42
|
+
gem 'rspec-rails'
|
|
43
|
+
gem 'rspec'
|
|
44
|
+
gem 'seed_dump', git: 'https://github.com/acesuares/seed_dump.git'
|
|
45
|
+
gem 'shoulda'
|
|
46
|
+
gem 'sqlite3'
|
|
47
|
+
gem 'switch_user'
|
|
48
|
+
gem 'yaml_db'
|
|
48
49
|
end
|
|
49
50
|
|
|
50
51
|
say "- Running bundle..."
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# -*- encoding : utf-8 -*-
|
|
2
|
+
InlineForms::SPECIAL_COLUMN_TYPES[:time_select]=:time
|
|
3
|
+
|
|
4
|
+
# time
|
|
5
|
+
def time_select_show(object, attribute)
|
|
6
|
+
link_to_inline_edit object, attribute, object.send(attribute).nil? ? "<i class='fi-plus'></i>".html_safe : object.send(attribute).to_datetime.strftime("%l:%M%P")
|
|
7
|
+
end
|
|
8
|
+
|
|
9
|
+
def time_select_edit(object, attribute)
|
|
10
|
+
css_id = 'timepicker_' + object.class.to_s.underscore + '_' + object.id.to_s + '_' + attribute.to_s
|
|
11
|
+
out = text_field_tag attribute, ( object.send(attribute).nil? ? "" : object.send(attribute).to_datetime.strftime("%l:%M%P") ), :id => css_id, :class =>'timepicker'
|
|
12
|
+
out << "<script>$('##{css_id}').timepicker();</script>".html_safe
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
def time_select_update(object, attribute)
|
|
16
|
+
object[attribute.to_sym] = params[attribute.to_sym]
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def time_select_info(object, attribute)
|
|
20
|
+
object.send(attribute).nil? ? "-" : object.send(attribute).to_date
|
|
21
|
+
end
|
|
22
|
+
|
data/lib/inline_forms/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: inline_forms
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.0.
|
|
4
|
+
version: 5.0.18
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ace Suares
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-
|
|
12
|
+
date: 2017-10-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rvm
|
|
@@ -200,6 +200,7 @@ files:
|
|
|
200
200
|
- lib/app/helpers/form_elements/text_area.rb
|
|
201
201
|
- lib/app/helpers/form_elements/text_area_without_ckeditor.rb
|
|
202
202
|
- lib/app/helpers/form_elements/text_field.rb
|
|
203
|
+
- lib/app/helpers/form_elements/time.rb
|
|
203
204
|
- lib/app/helpers/inline_forms_helper.rb
|
|
204
205
|
- lib/app/models/geo_code_curacao.rb
|
|
205
206
|
- lib/app/validators/curacao_id_number_validator.rb
|