edgarj 0.01.30 → 0.02.00

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: 651228d83ae7f3f3b5415d2ce044522c8fa5f826
4
- data.tar.gz: a3ecdbfbc74287563e55d3fca86f63fd8a473fff
3
+ metadata.gz: 9e3e6e7510b04f121b6f5add1e953a2407f09df1
4
+ data.tar.gz: 3e8d927d9ff6b07df4106db5cea124d8c65983c9
5
5
  SHA512:
6
- metadata.gz: f208dcc1c0c482fa715764159a33a91c8b0be399b0eed4b1a4bdbda35eb8c079381e1e5293f29884d8e9da8689169de2cef01de34723a814988fe053eb5aa45a
7
- data.tar.gz: e2648e3312e36da84403c6ad4b3a530c620e6766a9d10e52aac534ae3907089ea66dff5ff223beec70dc41a70606c5e7e5aed00000a478ca02e29874474164d3
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
- link_to("[#{I18n.t('edgarj.default.clear')}]", '#',
182
- onClick: "Edgarj.Popup.clear('#{j(popup_field.id_target)}','#{j(default_label)}'); return false;",
183
- id: popup_field.clear_link,
184
- style: 'display:' + (parent_name.blank? ? 'none' : '')) +
185
- f.hidden_field(col_name)).html_safe
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
@@ -16,3 +16,4 @@ edgarj:
16
16
  # locate popup link to 'field' or 'label' (default = 'field')
17
17
  popup_on: 'field'
18
18
  link_tag: '<span class="edgarj_field_belongs_to_button">▼</span>'
19
+ disable_clear_link: false
@@ -1,3 +1,3 @@
1
1
  module Edgarj
2
- VERSION = "0.01.30"
2
+ VERSION = "0.02.00"
3
3
  end
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.01.30
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-02-13 00:00:00.000000000 Z
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.4.1
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/fixtures/users.yml
409
- - test/fixtures/edgarj/model_permissions.yml
410
- - test/fixtures/edgarj/sssns.yml
411
- - test/fixtures/edgarj/user_group_users.yml
412
- - test/fixtures/edgarj/page_infos.yml
413
- - test/fixtures/edgarj/user_groups.yml
414
- - test/fixtures/authors.yml
415
- - test/fixtures/books.yml
416
- - test/dummy/Rakefile
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/app/decorators/models/edgarj/user_group_decorator.rb
422
- - test/dummy/app/assets/stylesheets/application.css
423
- - test/dummy/app/assets/stylesheets/authors.css
424
- - test/dummy/app/assets/stylesheets/scaffold.css
425
- - test/dummy/app/assets/javascripts/application.js
426
- - test/dummy/app/assets/javascripts/authors.js
427
- - test/dummy/app/views/layouts/login.html.erb
428
- - test/dummy/app/views/layouts/application.html.erb
429
- - test/dummy/app/models/author.rb
430
- - test/dummy/app/models/book.rb
431
- - test/dummy/app/models/user.rb
432
- - test/dummy/app/controllers/dummy_auth_mixin.rb
433
- - test/dummy/app/controllers/application_controller.rb
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/environments/test.rb
448
- - test/dummy/config/environment.rb
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/mime_types.rb
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/inflections.rb
455
- - test/dummy/config/initializers/strong_parameter.rb
456
- - test/dummy/config/initializers/session_store.rb
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/public/404.html
465
- - test/dummy/README.rdoc
466
- - test/dummy/db/schema.rb
467
- - test/dummy/db/migrate/20131218011851_create_books.rb
468
- - test/dummy/db/migrate/20131107120635_create_authors.rb
469
- - test/dummy/db/migrate/20140201000000_add_user_group_id_to_authors.rb
470
- - test/dummy/db/migrate/20140807065420_create_users.rb
471
- - test/dummy/test/unit/author_test.rb
472
- - test/dummy/test/unit/rails_config_test.rb
473
- - test/dummy/test/unit/book_test.rb
474
- - test/dummy/test/functional/books_controller_test.rb
475
- - test/dummy/test/functional/authors_popup_controller_test.rb
476
- - test/dummy/test/functional/authors_controller_test.rb
477
- - test/dummy/test/helpers/authors_helper_test.rb
478
- - test/dummy/script/rails
479
- - test/unit/edgarj/sssn_test.rb
480
- - test/unit/edgarj/model_permission_test.rb
481
- - test/unit/edgarj/user_group_test.rb
482
- - test/unit/edgarj/user_group_user_test.rb
483
- - test/unit/edgarj/page_info_test.rb
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/test_helper.rb
489
- - test/integration/navigation_test.rb
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: