edgarj 0.01.30 → 0.02.00
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/edgarj/assoc_helper.rb +10 -6
- data/config/settings.yml +1 -0
- data/lib/edgarj/version.rb +1 -1
- metadata +74 -74
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e3e6e7510b04f121b6f5add1e953a2407f09df1
|
4
|
+
data.tar.gz: 3e8d927d9ff6b07df4106db5cea124d8c65983c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b0dab11366400e92ced689e9af747550951bdddcbc43583411f824affa11420050413b654af3e0cdfd0d261ffcaa0d49959cf9749dfd0a3f57f83b0ef643c0f
|
7
|
+
data.tar.gz: 25502b0bc83b440f0bd1a6fe777a056d2ae46ed585a89647426156135faf347e3c3204f937985b86d6c2e6155ea1fea1eea9c3daf514c7286e0c6f64464c86f5
|
@@ -177,12 +177,16 @@ module Edgarj
|
|
177
177
|
# popup_field:: Edgarj::PopupHelper::PopupField object
|
178
178
|
# parent_name:: initial parent name
|
179
179
|
def draw_belongs_to_clear_link(f, col_name, popup_field, parent_name, default_label)
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
180
|
+
if Settings.edgarj.belongs_to.disable_clear_link
|
181
|
+
f.hidden_field(col_name)
|
182
|
+
else
|
183
|
+
(' ' +
|
184
|
+
link_to("[#{I18n.t('edgarj.default.clear')}]", '#',
|
185
|
+
onClick: "Edgarj.Popup.clear('#{j(popup_field.id_target)}','#{j(default_label)}'); return false;",
|
186
|
+
id: popup_field.clear_link,
|
187
|
+
style: 'display:' + (parent_name.blank? ? 'none' : '')) +
|
188
|
+
f.hidden_field(col_name)).html_safe
|
189
|
+
end
|
186
190
|
end
|
187
191
|
|
188
192
|
# draw 'belongs_to' popup data-entry field
|
data/config/settings.yml
CHANGED
data/lib/edgarj/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edgarj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.02.00
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fuminori Ido
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -400,94 +400,94 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
400
400
|
version: '0'
|
401
401
|
requirements: []
|
402
402
|
rubyforge_project:
|
403
|
-
rubygems_version: 2.
|
403
|
+
rubygems_version: 2.2.2
|
404
404
|
signing_key:
|
405
405
|
specification_version: 4
|
406
406
|
summary: Scaffold with Ajax, search, sort, 'belongs_to' popup, and more.
|
407
407
|
test_files:
|
408
|
-
- test/
|
409
|
-
- test/
|
410
|
-
- test/
|
411
|
-
- test/
|
412
|
-
- test/
|
413
|
-
- test/
|
414
|
-
- test/
|
415
|
-
- test/
|
416
|
-
- test/
|
408
|
+
- test/integration/navigation_test.rb
|
409
|
+
- test/unit/helpers/edgarj/model_permissions_helper_test.rb
|
410
|
+
- test/unit/helpers/edgarj/user_group_users_helper_test.rb
|
411
|
+
- test/unit/edgarj/user_group_user_test.rb
|
412
|
+
- test/unit/edgarj/sssn_test.rb
|
413
|
+
- test/unit/edgarj/user_group_test.rb
|
414
|
+
- test/unit/edgarj/page_info_test.rb
|
415
|
+
- test/unit/edgarj/model_permission_test.rb
|
416
|
+
- test/support/edgarj/controller_supporter.rb
|
417
|
+
- test/test_helper.rb
|
418
|
+
- test/dummy/test/helpers/authors_helper_test.rb
|
419
|
+
- test/dummy/test/unit/book_test.rb
|
420
|
+
- test/dummy/test/unit/author_test.rb
|
421
|
+
- test/dummy/test/unit/rails_config_test.rb
|
422
|
+
- test/dummy/test/functional/authors_controller_test.rb
|
423
|
+
- test/dummy/test/functional/books_controller_test.rb
|
424
|
+
- test/dummy/test/functional/authors_popup_controller_test.rb
|
425
|
+
- test/dummy/README.rdoc
|
417
426
|
- test/dummy/config.ru
|
418
|
-
- test/dummy/bin/rails
|
419
427
|
- test/dummy/bin/bundle
|
420
428
|
- test/dummy/bin/rake
|
421
|
-
- test/dummy/
|
422
|
-
- test/dummy/
|
423
|
-
- test/dummy/
|
424
|
-
- test/dummy/
|
425
|
-
- test/dummy/
|
426
|
-
- test/dummy/
|
427
|
-
- test/dummy/
|
428
|
-
- test/dummy/
|
429
|
-
- test/dummy/
|
430
|
-
- test/dummy/
|
431
|
-
- test/dummy/
|
432
|
-
- test/dummy/
|
433
|
-
- test/dummy/
|
434
|
-
- test/dummy/app/controllers/authors_popup_controller.rb
|
435
|
-
- test/dummy/app/controllers/books_controller.rb
|
436
|
-
- test/dummy/app/controllers/authors_controller.rb
|
437
|
-
- test/dummy/app/helpers/authors_helper.rb
|
438
|
-
- test/dummy/app/helpers/authors_popup_helper.rb
|
439
|
-
- test/dummy/app/helpers/application_helper.rb
|
440
|
-
- test/dummy/app/helpers/books_helper.rb
|
441
|
-
- test/dummy/config/locales/en.yml
|
442
|
-
- test/dummy/config/locales/ja.yml
|
443
|
-
- test/dummy/config/application.rb
|
444
|
-
- test/dummy/config/edgarj/menu_config.rb
|
429
|
+
- test/dummy/bin/rails
|
430
|
+
- test/dummy/db/schema.rb
|
431
|
+
- test/dummy/db/migrate/20131218011851_create_books.rb
|
432
|
+
- test/dummy/db/migrate/20140807065420_create_users.rb
|
433
|
+
- test/dummy/db/migrate/20140201000000_add_user_group_id_to_authors.rb
|
434
|
+
- test/dummy/db/migrate/20131107120635_create_authors.rb
|
435
|
+
- test/dummy/Rakefile
|
436
|
+
- test/dummy/config/routes.rb
|
437
|
+
- test/dummy/config/boot.rb
|
438
|
+
- test/dummy/config/environment.rb
|
439
|
+
- test/dummy/config/database.yml
|
440
|
+
- test/dummy/config/settings.yml
|
441
|
+
- test/dummy/config/environments/test.rb
|
445
442
|
- test/dummy/config/environments/production.rb
|
446
443
|
- test/dummy/config/environments/development.rb
|
447
|
-
- test/dummy/config/
|
448
|
-
- test/dummy/config/
|
444
|
+
- test/dummy/config/application.rb
|
445
|
+
- test/dummy/config/edgarj/menu_config.rb
|
446
|
+
- test/dummy/config/locales/en.yml
|
447
|
+
- test/dummy/config/locales/ja.yml
|
448
|
+
- test/dummy/config/initializers/strong_parameter.rb
|
449
|
+
- test/dummy/config/initializers/inflections.rb
|
449
450
|
- test/dummy/config/initializers/wrap_parameters.rb
|
450
|
-
- test/dummy/config/initializers/
|
451
|
-
- test/dummy/config/initializers/backtrace_silencers.rb
|
451
|
+
- test/dummy/config/initializers/session_store.rb
|
452
452
|
- test/dummy/config/initializers/secret_token.rb
|
453
453
|
- test/dummy/config/initializers/filter_parameter_logging.rb
|
454
|
-
- test/dummy/config/initializers/
|
455
|
-
- test/dummy/config/initializers/
|
456
|
-
- test/dummy/
|
457
|
-
- test/dummy/config/routes.rb
|
458
|
-
- test/dummy/config/settings.yml
|
459
|
-
- test/dummy/config/database.yml
|
460
|
-
- test/dummy/config/boot.rb
|
454
|
+
- test/dummy/config/initializers/mime_types.rb
|
455
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
456
|
+
- test/dummy/script/rails
|
461
457
|
- test/dummy/public/favicon.ico
|
458
|
+
- test/dummy/public/404.html
|
462
459
|
- test/dummy/public/422.html
|
463
460
|
- test/dummy/public/500.html
|
464
|
-
- test/dummy/
|
465
|
-
- test/dummy/
|
466
|
-
- test/dummy/
|
467
|
-
- test/dummy/
|
468
|
-
- test/dummy/
|
469
|
-
- test/dummy/
|
470
|
-
- test/dummy/
|
471
|
-
- test/dummy/
|
472
|
-
- test/dummy/
|
473
|
-
- test/dummy/
|
474
|
-
- test/dummy/
|
475
|
-
- test/dummy/
|
476
|
-
- test/dummy/
|
477
|
-
- test/dummy/
|
478
|
-
- test/dummy/
|
479
|
-
- test/
|
480
|
-
- test/
|
481
|
-
- test/
|
482
|
-
- test/
|
483
|
-
- test/
|
484
|
-
- test/unit/helpers/edgarj/user_group_users_helper_test.rb
|
485
|
-
- test/unit/helpers/edgarj/model_permissions_helper_test.rb
|
486
|
-
- test/support/edgarj/controller_supporter.rb
|
461
|
+
- test/dummy/app/views/layouts/login.html.erb
|
462
|
+
- test/dummy/app/views/layouts/application.html.erb
|
463
|
+
- test/dummy/app/decorators/models/edgarj/user_group_decorator.rb
|
464
|
+
- test/dummy/app/helpers/authors_helper.rb
|
465
|
+
- test/dummy/app/helpers/books_helper.rb
|
466
|
+
- test/dummy/app/helpers/application_helper.rb
|
467
|
+
- test/dummy/app/helpers/authors_popup_helper.rb
|
468
|
+
- test/dummy/app/models/book.rb
|
469
|
+
- test/dummy/app/models/author.rb
|
470
|
+
- test/dummy/app/models/user.rb
|
471
|
+
- test/dummy/app/assets/javascripts/authors.js
|
472
|
+
- test/dummy/app/assets/javascripts/application.js
|
473
|
+
- test/dummy/app/assets/stylesheets/scaffold.css
|
474
|
+
- test/dummy/app/assets/stylesheets/authors.css
|
475
|
+
- test/dummy/app/assets/stylesheets/application.css
|
476
|
+
- test/dummy/app/controllers/authors_controller.rb
|
477
|
+
- test/dummy/app/controllers/books_controller.rb
|
478
|
+
- test/dummy/app/controllers/dummy_auth_mixin.rb
|
479
|
+
- test/dummy/app/controllers/application_controller.rb
|
480
|
+
- test/dummy/app/controllers/authors_popup_controller.rb
|
487
481
|
- test/edgar_test.rb
|
488
|
-
- test/
|
489
|
-
- test/
|
482
|
+
- test/fixtures/authors.yml
|
483
|
+
- test/fixtures/users.yml
|
484
|
+
- test/fixtures/edgarj/page_infos.yml
|
485
|
+
- test/fixtures/edgarj/user_group_users.yml
|
486
|
+
- test/fixtures/edgarj/user_groups.yml
|
487
|
+
- test/fixtures/edgarj/model_permissions.yml
|
488
|
+
- test/fixtures/edgarj/sssns.yml
|
489
|
+
- test/fixtures/books.yml
|
490
490
|
- test/functional/edgarj/user_group_users_controller_test.rb
|
491
|
-
- test/functional/edgarj/model_permissions_controller_test.rb
|
492
491
|
- test/functional/edgarj/edgarj_controller_test.rb
|
492
|
+
- test/functional/edgarj/model_permissions_controller_test.rb
|
493
493
|
has_rdoc:
|