spina-admin-conferences-fork 2.1.1 → 3.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (133) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +40 -57
  3. data/app/assets/config/spina_admin_conferences_manifest.js +3 -3
  4. data/app/assets/javascripts/spina/admin/conferences/application.js +0 -4
  5. data/app/assets/javascripts/{controllers/spina/admin/conferences → spina/admin/conferences/controllers}/select_options_controller.js +1 -1
  6. data/app/assets/stylesheets/spina/admin/conferences/application.tailwind.css +0 -0
  7. data/app/components/spina/admin/conferences/application_component.rb +11 -0
  8. data/app/components/spina/admin/conferences/form_group_component.html.haml +4 -0
  9. data/app/components/spina/admin/conferences/form_group_component.rb +17 -0
  10. data/app/controllers/spina/admin/conferences/application_controller.rb +8 -1
  11. data/app/controllers/spina/admin/conferences/conferences_controller.rb +13 -25
  12. data/app/controllers/spina/admin/conferences/delegates_controller.rb +12 -24
  13. data/app/controllers/spina/admin/conferences/dietary_requirements_controller.rb +12 -24
  14. data/app/controllers/spina/admin/conferences/institutions_controller.rb +12 -24
  15. data/app/controllers/spina/admin/conferences/presentation_attachment_types_controller.rb +12 -24
  16. data/app/controllers/spina/admin/conferences/presentation_types_controller.rb +12 -26
  17. data/app/controllers/spina/admin/conferences/presentations_controller.rb +12 -24
  18. data/app/controllers/spina/admin/conferences/rooms_controller.rb +12 -26
  19. data/app/controllers/spina/admin/conferences/sessions_controller.rb +12 -26
  20. data/app/jobs/spina/admin/conferences/import_job.rb +2 -2
  21. data/app/models/spina/admin/conferences/conference.rb +1 -1
  22. data/app/models/spina/admin/conferences/delegate.rb +3 -3
  23. data/app/models/spina/admin/conferences/presentation.rb +1 -1
  24. data/app/views/spina/admin/conferences/application/_conferences.html.haml +10 -11
  25. data/app/views/spina/admin/conferences/application/_delegates.html.haml +9 -10
  26. data/app/views/spina/admin/conferences/application/_dietary_requirements.html.haml +7 -8
  27. data/app/views/spina/admin/conferences/application/_empty_list.html.haml +1 -1
  28. data/app/views/spina/admin/conferences/application/_institutions.html.haml +8 -9
  29. data/app/views/spina/admin/conferences/application/_presentation_attachment_types.html.haml +8 -9
  30. data/app/views/spina/admin/conferences/application/_presentation_types.html.haml +9 -10
  31. data/app/views/spina/admin/conferences/application/_presentations.html.haml +9 -10
  32. data/app/views/spina/admin/conferences/application/_rooms.html.haml +9 -10
  33. data/app/views/spina/admin/conferences/application/_sessions.html.haml +9 -10
  34. data/app/views/spina/admin/conferences/conferences/_conference.html.haml +13 -9
  35. data/app/views/spina/admin/conferences/conferences/_event_fields.html.haml +18 -25
  36. data/app/views/spina/admin/conferences/conferences/_form.html.haml +24 -22
  37. data/app/views/spina/admin/conferences/conferences/_form_conference_details.html.haml +29 -22
  38. data/app/views/spina/admin/conferences/conferences/_form_delegates.html.haml +1 -0
  39. data/app/views/spina/admin/conferences/conferences/_form_parts.html.haml +6 -7
  40. data/app/views/spina/admin/conferences/conferences/_form_presentation_types.html.haml +1 -0
  41. data/app/views/spina/admin/conferences/conferences/_form_presentations.html.haml +1 -0
  42. data/app/views/spina/admin/conferences/conferences/_form_rooms.html.haml +1 -0
  43. data/app/views/spina/admin/conferences/conferences/index.html.haml +25 -5
  44. data/app/views/spina/admin/conferences/delegates/_delegate.html.haml +10 -12
  45. data/app/views/spina/admin/conferences/delegates/_form.html.haml +23 -19
  46. data/app/views/spina/admin/conferences/delegates/_form_conferences.html.haml +1 -0
  47. data/app/views/spina/admin/conferences/delegates/_form_delegate_details.html.haml +24 -53
  48. data/app/views/spina/admin/conferences/delegates/_form_presentations.html.haml +1 -0
  49. data/app/views/spina/admin/conferences/delegates/index.html.haml +17 -11
  50. data/app/views/spina/admin/conferences/dietary_requirements/_dietary_requirement.html.haml +7 -6
  51. data/app/views/spina/admin/conferences/dietary_requirements/_form.html.haml +23 -18
  52. data/app/views/spina/admin/conferences/dietary_requirements/_form_delegates.html.haml +1 -0
  53. data/app/views/spina/admin/conferences/dietary_requirements/_form_dietary_requirement_details.html.haml +4 -8
  54. data/app/views/spina/admin/conferences/dietary_requirements/index.html.haml +9 -5
  55. data/app/views/spina/admin/conferences/institutions/_form.html.haml +23 -19
  56. data/app/views/spina/admin/conferences/institutions/_form_delegates.html.haml +1 -0
  57. data/app/views/spina/admin/conferences/institutions/_form_institution_details.html.haml +25 -25
  58. data/app/views/spina/admin/conferences/institutions/_form_rooms.html.haml +1 -0
  59. data/app/views/spina/admin/conferences/institutions/_institution.html.haml +9 -7
  60. data/app/views/spina/admin/conferences/institutions/index.html.haml +22 -5
  61. data/app/views/spina/admin/conferences/presentation_attachment_types/_form.html.haml +17 -20
  62. data/app/views/spina/admin/conferences/presentation_attachment_types/_presentation_attachment_type.html.haml +7 -6
  63. data/app/views/spina/admin/conferences/presentation_attachment_types/index.html.haml +9 -5
  64. data/app/views/spina/admin/conferences/presentation_types/_form.html.haml +23 -19
  65. data/app/views/spina/admin/conferences/presentation_types/_form_presentation_type_details.html.haml +8 -16
  66. data/app/views/spina/admin/conferences/presentation_types/_form_presentations.html.haml +1 -0
  67. data/app/views/spina/admin/conferences/presentation_types/_form_sessions.html.haml +1 -0
  68. data/app/views/spina/admin/conferences/presentation_types/_presentation_type.html.haml +11 -8
  69. data/app/views/spina/admin/conferences/presentation_types/index.html.haml +25 -5
  70. data/app/views/spina/admin/conferences/presentations/_attachment_fields.html.haml +10 -16
  71. data/app/views/spina/admin/conferences/presentations/_form.html.haml +23 -18
  72. data/app/views/spina/admin/conferences/presentations/_form_presentation_details.html.haml +56 -55
  73. data/app/views/spina/admin/conferences/presentations/_form_presenters.html.haml +1 -0
  74. data/app/views/spina/admin/conferences/presentations/_presentation.html.haml +10 -8
  75. data/app/views/spina/admin/conferences/presentations/index.html.haml +18 -11
  76. data/app/views/spina/admin/conferences/rooms/_form.html.haml +23 -18
  77. data/app/views/spina/admin/conferences/rooms/_form_presentations.html.haml +1 -0
  78. data/app/views/spina/admin/conferences/rooms/_form_room_details.html.haml +8 -16
  79. data/app/views/spina/admin/conferences/rooms/_room.html.haml +11 -8
  80. data/app/views/spina/admin/conferences/rooms/index.html.haml +22 -5
  81. data/app/views/spina/admin/conferences/sessions/_form.html.haml +23 -18
  82. data/app/views/spina/admin/conferences/sessions/_form_presentations.html.haml +1 -0
  83. data/app/views/spina/admin/conferences/sessions/_form_session_details.html.haml +14 -19
  84. data/app/views/spina/admin/conferences/sessions/_session.html.haml +11 -8
  85. data/app/views/spina/admin/conferences/sessions/index.html.haml +25 -5
  86. data/app/views/spina/admin/hooks/conferences/_head.html.haml +0 -6
  87. data/app/views/spina/admin/hooks/conferences/_primary_navigation.html.haml +25 -19
  88. data/app/views/spina/admin/hooks/conferences/_settings_secondary_navigation.html.haml +0 -6
  89. data/app/views/spina/admin/parts/admin/conferences/dates/_form.html.haml +2 -2
  90. data/app/views/spina/admin/parts/admin/conferences/email_addresses/_form.html.haml +2 -2
  91. data/app/views/spina/admin/parts/admin/conferences/times/_form.html.haml +2 -2
  92. data/app/views/spina/admin/parts/admin/conferences/urls/_form.html.haml +2 -2
  93. data/config/locales/en.yml +31 -40
  94. data/config/routes.rb +1 -4
  95. data/db/migrate/20180907141242_add_type_to_spina_pages.rb +1 -1
  96. data/db/migrate/20180907141243_create_spina_conferences_conference_page_parts.rb +1 -1
  97. data/db/migrate/20181017155705_add_dependent_option_to_foreign_keys.rb +1 -1
  98. data/db/migrate/20190408131354_change_spina_resources.rb +10 -10
  99. data/db/migrate/20190701174807_remove_spina_conference_pages.rb +15 -15
  100. data/db/migrate/20190704135524_add_constraints_to_columns.rb +1 -1
  101. data/db/migrate/20200126213718_create_spina_conferences_presentation_attachments.rb +1 -1
  102. data/db/migrate/20200802184921_create_spina_conferences_event_name_description_and_location_translations.rb +1 -1
  103. data/db/migrate/20200911161739_move_conference_parts.rb +3 -3
  104. data/db/migrate/20201002122517_remove_spina_conferences_conference_page_parts.rb +1 -1
  105. data/db/migrate/20201007125625_add_timestamps_to_spina_conferences_parts.rb +2 -2
  106. data/db/migrate/20210315164411_convert_partables_to_json.rb +10 -18
  107. data/db/migrate/20210417102513_add_locale_to_action_text_rich_texts.rb +1 -1
  108. data/lib/spina/admin/conferences/engine.rb +13 -0
  109. data/lib/spina/admin/conferences/migration/renaming.rb +4 -4
  110. data/lib/spina/admin/conferences/railtie.rb +1 -0
  111. data/lib/spina/admin/conferences/version.rb +1 -1
  112. data/lib/spina/admin/conferences.rb +1 -2
  113. metadata +65 -82
  114. data/app/assets/javascripts/controllers/spina/admin/conferences/conference_events_form_controller.js +0 -174
  115. data/app/assets/javascripts/controllers/spina/admin/conferences/presentation_attachments_form_controller.js +0 -174
  116. data/app/assets/javascripts/importmap.json.erb +0 -6
  117. data/app/assets/stylesheets/spina/admin/conferences/application.sass +0 -3
  118. data/app/controllers/spina/admin/conferences/events_controller.rb +0 -24
  119. data/app/controllers/spina/admin/conferences/presentation_attachments_controller.rb +0 -24
  120. data/app/views/layouts/spina/admin/conferences/application.html.haml +0 -6
  121. data/app/views/layouts/spina/admin/conferences/conferences.html.haml +0 -17
  122. data/app/views/layouts/spina/admin/conferences/delegates.html.haml +0 -8
  123. data/app/views/layouts/spina/admin/conferences/dietary_requirements.html.haml +0 -8
  124. data/app/views/layouts/spina/admin/conferences/institutions.html.haml +0 -15
  125. data/app/views/layouts/spina/admin/conferences/presentation_attachment_types.html.haml +0 -8
  126. data/app/views/layouts/spina/admin/conferences/presentations.html.haml +0 -8
  127. data/app/views/spina/admin/conferences/conferences/_event_row.html.haml +0 -5
  128. data/app/views/spina/admin/conferences/conferences/_form_structure.html.haml +0 -19
  129. data/app/views/spina/admin/conferences/conferences/_form_structure_item.html.haml +0 -13
  130. data/app/views/spina/admin/conferences/events/new.js.erb +0 -21
  131. data/app/views/spina/admin/conferences/presentation_attachments/new.js.erb +0 -21
  132. data/app/views/spina/admin/conferences/presentations/_attachment_row.html.haml +0 -2
  133. data/config/initializers/assets.rb +0 -13
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spina-admin-conferences-fork
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 3.0.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Louis Van Steene
@@ -9,120 +9,118 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2021-11-08 00:00:00.000000000 Z
12
+ date: 2022-02-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: icalendar
15
+ name: haml-rails
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '2.5'
20
+ version: '2.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '2.5'
27
+ version: '2.0'
28
28
  - !ruby/object:Gem::Dependency
29
- name: mobility-actiontext
29
+ name: icalendar
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - '='
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 0.2.0
34
+ version: '2.5'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - '='
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 0.2.0
41
+ version: '2.5'
42
42
  - !ruby/object:Gem::Dependency
43
- name: rails
43
+ name: mobility-actiontext
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '6.0'
48
+ version: '0.2'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '6.0'
55
+ version: '0.2'
56
56
  - !ruby/object:Gem::Dependency
57
- name: rails-i18n
57
+ name: rails
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - "~>"
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '6.0'
63
+ - - "<"
64
+ - !ruby/object:Gem::Version
65
+ version: '8'
63
66
  type: :runtime
64
67
  prerelease: false
65
68
  version_requirements: !ruby/object:Gem::Requirement
66
69
  requirements:
67
- - - "~>"
70
+ - - ">="
68
71
  - !ruby/object:Gem::Version
69
72
  version: '6.0'
70
- - !ruby/object:Gem::Dependency
71
- name: redis
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - "~>"
75
- - !ruby/object:Gem::Version
76
- version: '4.2'
77
- type: :runtime
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - "~>"
73
+ - - "<"
82
74
  - !ruby/object:Gem::Version
83
- version: '4.2'
75
+ version: '8'
84
76
  - !ruby/object:Gem::Dependency
85
- name: spina
77
+ name: rails-i18n
86
78
  requirement: !ruby/object:Gem::Requirement
87
79
  requirements:
88
- - - "~>"
80
+ - - ">="
89
81
  - !ruby/object:Gem::Version
90
- version: '2.0'
82
+ version: '6.0'
83
+ - - "<"
84
+ - !ruby/object:Gem::Version
85
+ version: '8'
91
86
  type: :runtime
92
87
  prerelease: false
93
88
  version_requirements: !ruby/object:Gem::Requirement
94
89
  requirements:
95
- - - "~>"
90
+ - - ">="
96
91
  - !ruby/object:Gem::Version
97
- version: '2.0'
92
+ version: '6.0'
93
+ - - "<"
94
+ - !ruby/object:Gem::Version
95
+ version: '8'
98
96
  - !ruby/object:Gem::Dependency
99
- name: stimulus-rails
97
+ name: redis
100
98
  requirement: !ruby/object:Gem::Requirement
101
99
  requirements:
102
100
  - - "~>"
103
101
  - !ruby/object:Gem::Version
104
- version: 0.2.2
102
+ version: '4.2'
105
103
  type: :runtime
106
104
  prerelease: false
107
105
  version_requirements: !ruby/object:Gem::Requirement
108
106
  requirements:
109
107
  - - "~>"
110
108
  - !ruby/object:Gem::Version
111
- version: 0.2.2
109
+ version: '4.2'
112
110
  - !ruby/object:Gem::Dependency
113
- name: turbo-rails
111
+ name: spina
114
112
  requirement: !ruby/object:Gem::Requirement
115
113
  requirements:
116
114
  - - "~>"
117
115
  - !ruby/object:Gem::Version
118
- version: 0.5.9
116
+ version: '2.8'
119
117
  type: :runtime
120
118
  prerelease: false
121
119
  version_requirements: !ruby/object:Gem::Requirement
122
120
  requirements:
123
121
  - - "~>"
124
122
  - !ruby/object:Gem::Version
125
- version: 0.5.9
123
+ version: '2.8'
126
124
  - !ruby/object:Gem::Dependency
127
125
  name: capybara
128
126
  requirement: !ruby/object:Gem::Requirement
@@ -165,20 +163,6 @@ dependencies:
165
163
  - - "~>"
166
164
  - !ruby/object:Gem::Version
167
165
  version: '1.12'
168
- - !ruby/object:Gem::Dependency
169
- name: minitest-rails
170
- requirement: !ruby/object:Gem::Requirement
171
- requirements:
172
- - - "~>"
173
- - !ruby/object:Gem::Version
174
- version: '6.0'
175
- type: :development
176
- prerelease: false
177
- version_requirements: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - "~>"
180
- - !ruby/object:Gem::Version
181
- version: '6.0'
182
166
  - !ruby/object:Gem::Dependency
183
167
  name: minitest-reporters
184
168
  requirement: !ruby/object:Gem::Requirement
@@ -283,14 +267,14 @@ dependencies:
283
267
  requirements:
284
268
  - - "~>"
285
269
  - !ruby/object:Gem::Version
286
- version: '3.142'
270
+ version: '4.1'
287
271
  type: :development
288
272
  prerelease: false
289
273
  version_requirements: !ruby/object:Gem::Requirement
290
274
  requirements:
291
275
  - - "~>"
292
276
  - !ruby/object:Gem::Version
293
- version: '3.142'
277
+ version: '4.1'
294
278
  - !ruby/object:Gem::Dependency
295
279
  name: sidekiq
296
280
  requirement: !ruby/object:Gem::Requirement
@@ -353,14 +337,14 @@ dependencies:
353
337
  requirements:
354
338
  - - "~>"
355
339
  - !ruby/object:Gem::Version
356
- version: '4.4'
340
+ version: '5.0'
357
341
  type: :development
358
342
  prerelease: false
359
343
  version_requirements: !ruby/object:Gem::Requirement
360
344
  requirements:
361
345
  - - "~>"
362
346
  - !ruby/object:Gem::Version
363
- version: '4.4'
347
+ version: '5.0'
364
348
  description: Keep track of conference attendees and presentations with this plugin.
365
349
  email:
366
350
  - louis@lvs.me.uk
@@ -373,20 +357,18 @@ files:
373
357
  - README.md
374
358
  - Rakefile
375
359
  - app/assets/config/spina_admin_conferences_manifest.js
376
- - app/assets/javascripts/controllers/spina/admin/conferences/conference_events_form_controller.js
377
- - app/assets/javascripts/controllers/spina/admin/conferences/presentation_attachments_form_controller.js
378
- - app/assets/javascripts/controllers/spina/admin/conferences/select_options_controller.js
379
- - app/assets/javascripts/importmap.json.erb
380
360
  - app/assets/javascripts/spina/admin/conferences/application.js
381
- - app/assets/stylesheets/spina/admin/conferences/application.sass
361
+ - app/assets/javascripts/spina/admin/conferences/controllers/select_options_controller.js
362
+ - app/assets/stylesheets/spina/admin/conferences/application.tailwind.css
363
+ - app/components/spina/admin/conferences/application_component.rb
364
+ - app/components/spina/admin/conferences/form_group_component.html.haml
365
+ - app/components/spina/admin/conferences/form_group_component.rb
382
366
  - app/controllers/spina/admin/conferences/application_controller.rb
383
367
  - app/controllers/spina/admin/conferences/conferences_controller.rb
384
368
  - app/controllers/spina/admin/conferences/delegates_controller.rb
385
369
  - app/controllers/spina/admin/conferences/dietary_requirements_controller.rb
386
- - app/controllers/spina/admin/conferences/events_controller.rb
387
370
  - app/controllers/spina/admin/conferences/institutions_controller.rb
388
371
  - app/controllers/spina/admin/conferences/presentation_attachment_types_controller.rb
389
- - app/controllers/spina/admin/conferences/presentation_attachments_controller.rb
390
372
  - app/controllers/spina/admin/conferences/presentation_types_controller.rb
391
373
  - app/controllers/spina/admin/conferences/presentations_controller.rb
392
374
  - app/controllers/spina/admin/conferences/rooms_controller.rb
@@ -418,13 +400,6 @@ files:
418
400
  - app/validators/spina/admin/conferences/finish_date_validator.rb
419
401
  - app/validators/spina/admin/conferences/finish_time_validator.rb
420
402
  - app/validators/spina/admin/conferences/http_url_validator.rb
421
- - app/views/layouts/spina/admin/conferences/application.html.haml
422
- - app/views/layouts/spina/admin/conferences/conferences.html.haml
423
- - app/views/layouts/spina/admin/conferences/delegates.html.haml
424
- - app/views/layouts/spina/admin/conferences/dietary_requirements.html.haml
425
- - app/views/layouts/spina/admin/conferences/institutions.html.haml
426
- - app/views/layouts/spina/admin/conferences/presentation_attachment_types.html.haml
427
- - app/views/layouts/spina/admin/conferences/presentations.html.haml
428
403
  - app/views/spina/admin/conferences/application/_conferences.html.haml
429
404
  - app/views/spina/admin/conferences/application/_delegates.html.haml
430
405
  - app/views/spina/admin/conferences/application/_dietary_requirements.html.haml
@@ -439,30 +414,35 @@ files:
439
414
  - app/views/spina/admin/conferences/application/_sessions.html.haml
440
415
  - app/views/spina/admin/conferences/conferences/_conference.html.haml
441
416
  - app/views/spina/admin/conferences/conferences/_event_fields.html.haml
442
- - app/views/spina/admin/conferences/conferences/_event_row.html.haml
443
417
  - app/views/spina/admin/conferences/conferences/_form.html.haml
444
418
  - app/views/spina/admin/conferences/conferences/_form_conference_details.html.haml
419
+ - app/views/spina/admin/conferences/conferences/_form_delegates.html.haml
445
420
  - app/views/spina/admin/conferences/conferences/_form_parts.html.haml
446
- - app/views/spina/admin/conferences/conferences/_form_structure.html.haml
447
- - app/views/spina/admin/conferences/conferences/_form_structure_item.html.haml
421
+ - app/views/spina/admin/conferences/conferences/_form_presentation_types.html.haml
422
+ - app/views/spina/admin/conferences/conferences/_form_presentations.html.haml
423
+ - app/views/spina/admin/conferences/conferences/_form_rooms.html.haml
448
424
  - app/views/spina/admin/conferences/conferences/edit.html.haml
449
425
  - app/views/spina/admin/conferences/conferences/index.html.haml
450
426
  - app/views/spina/admin/conferences/conferences/new.html.haml
451
427
  - app/views/spina/admin/conferences/delegates/_delegate.html.haml
452
428
  - app/views/spina/admin/conferences/delegates/_form.html.haml
429
+ - app/views/spina/admin/conferences/delegates/_form_conferences.html.haml
453
430
  - app/views/spina/admin/conferences/delegates/_form_delegate_details.html.haml
431
+ - app/views/spina/admin/conferences/delegates/_form_presentations.html.haml
454
432
  - app/views/spina/admin/conferences/delegates/edit.html.haml
455
433
  - app/views/spina/admin/conferences/delegates/index.html.haml
456
434
  - app/views/spina/admin/conferences/delegates/new.html.haml
457
435
  - app/views/spina/admin/conferences/dietary_requirements/_dietary_requirement.html.haml
458
436
  - app/views/spina/admin/conferences/dietary_requirements/_form.html.haml
437
+ - app/views/spina/admin/conferences/dietary_requirements/_form_delegates.html.haml
459
438
  - app/views/spina/admin/conferences/dietary_requirements/_form_dietary_requirement_details.html.haml
460
439
  - app/views/spina/admin/conferences/dietary_requirements/edit.html.haml
461
440
  - app/views/spina/admin/conferences/dietary_requirements/index.html.haml
462
441
  - app/views/spina/admin/conferences/dietary_requirements/new.html.haml
463
- - app/views/spina/admin/conferences/events/new.js.erb
464
442
  - app/views/spina/admin/conferences/institutions/_form.html.haml
443
+ - app/views/spina/admin/conferences/institutions/_form_delegates.html.haml
465
444
  - app/views/spina/admin/conferences/institutions/_form_institution_details.html.haml
445
+ - app/views/spina/admin/conferences/institutions/_form_rooms.html.haml
466
446
  - app/views/spina/admin/conferences/institutions/_institution.html.haml
467
447
  - app/views/spina/admin/conferences/institutions/edit.html.haml
468
448
  - app/views/spina/admin/conferences/institutions/index.html.haml
@@ -472,28 +452,31 @@ files:
472
452
  - app/views/spina/admin/conferences/presentation_attachment_types/edit.html.haml
473
453
  - app/views/spina/admin/conferences/presentation_attachment_types/index.html.haml
474
454
  - app/views/spina/admin/conferences/presentation_attachment_types/new.html.haml
475
- - app/views/spina/admin/conferences/presentation_attachments/new.js.erb
476
455
  - app/views/spina/admin/conferences/presentation_types/_form.html.haml
477
456
  - app/views/spina/admin/conferences/presentation_types/_form_presentation_type_details.html.haml
457
+ - app/views/spina/admin/conferences/presentation_types/_form_presentations.html.haml
458
+ - app/views/spina/admin/conferences/presentation_types/_form_sessions.html.haml
478
459
  - app/views/spina/admin/conferences/presentation_types/_presentation_type.html.haml
479
460
  - app/views/spina/admin/conferences/presentation_types/edit.html.haml
480
461
  - app/views/spina/admin/conferences/presentation_types/index.html.haml
481
462
  - app/views/spina/admin/conferences/presentation_types/new.html.haml
482
463
  - app/views/spina/admin/conferences/presentations/_attachment_fields.html.haml
483
- - app/views/spina/admin/conferences/presentations/_attachment_row.html.haml
484
464
  - app/views/spina/admin/conferences/presentations/_form.html.haml
485
465
  - app/views/spina/admin/conferences/presentations/_form_presentation_details.html.haml
466
+ - app/views/spina/admin/conferences/presentations/_form_presenters.html.haml
486
467
  - app/views/spina/admin/conferences/presentations/_presentation.html.haml
487
468
  - app/views/spina/admin/conferences/presentations/edit.html.haml
488
469
  - app/views/spina/admin/conferences/presentations/index.html.haml
489
470
  - app/views/spina/admin/conferences/presentations/new.html.haml
490
471
  - app/views/spina/admin/conferences/rooms/_form.html.haml
472
+ - app/views/spina/admin/conferences/rooms/_form_presentations.html.haml
491
473
  - app/views/spina/admin/conferences/rooms/_form_room_details.html.haml
492
474
  - app/views/spina/admin/conferences/rooms/_room.html.haml
493
475
  - app/views/spina/admin/conferences/rooms/edit.html.haml
494
476
  - app/views/spina/admin/conferences/rooms/index.html.haml
495
477
  - app/views/spina/admin/conferences/rooms/new.html.haml
496
478
  - app/views/spina/admin/conferences/sessions/_form.html.haml
479
+ - app/views/spina/admin/conferences/sessions/_form_presentations.html.haml
497
480
  - app/views/spina/admin/conferences/sessions/_form_session_details.html.haml
498
481
  - app/views/spina/admin/conferences/sessions/_session.html.haml
499
482
  - app/views/spina/admin/conferences/sessions/edit.html.haml
@@ -506,7 +489,6 @@ files:
506
489
  - app/views/spina/admin/parts/admin/conferences/email_addresses/_form.html.haml
507
490
  - app/views/spina/admin/parts/admin/conferences/times/_form.html.haml
508
491
  - app/views/spina/admin/parts/admin/conferences/urls/_form.html.haml
509
- - config/initializers/assets.rb
510
492
  - config/locales/en.yml
511
493
  - config/routes.rb
512
494
  - db/migrate/20180907141228_create_spina_dates.rb
@@ -580,7 +562,8 @@ files:
580
562
  homepage: https://jmalcic.github.io/projects/spina-admin-conferences
581
563
  licenses:
582
564
  - MIT
583
- metadata: {}
565
+ metadata:
566
+ rubygems_mfa_required: 'true'
584
567
  post_install_message:
585
568
  rdoc_options: []
586
569
  require_paths:
@@ -592,9 +575,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
592
575
  version: '2.7'
593
576
  required_rubygems_version: !ruby/object:Gem::Requirement
594
577
  requirements:
595
- - - ">="
578
+ - - ">"
596
579
  - !ruby/object:Gem::Version
597
- version: '0'
580
+ version: 1.3.1
598
581
  requirements: []
599
582
  rubygems_version: 3.1.6
600
583
  signing_key:
@@ -1,174 +0,0 @@
1
- /**
2
- * @external Controller
3
- * @see {@link https://stimulusjs.org}
4
- */
5
- import { Controller } from 'stimulus'
6
-
7
- /**
8
- * @classdesc Controller that manages conference event inputs.
9
- */
10
- export default class extends Controller {
11
- // noinspection JSUnusedGlobalSymbols
12
- static get targets() {
13
- return [
14
- /**
15
- * @private
16
- * @property {HTMLElement[]} formLinkTargets - The form link elements.
17
- */
18
- 'formLink',
19
- /**
20
- * @private
21
- * @property {HTMLElement} addFormLinkTarget - The button element for adding forms.
22
- */
23
- 'addFormLink',
24
- /**
25
- * @private
26
- * @property {HTMLElement[]} formPaneTargets - The form pane elements.
27
- */
28
- 'formPane',
29
- /**
30
- * @private
31
- * @property {HTMLElement[]} destroyFieldTargets - The destroy field hidden inputs.
32
- */
33
- 'destroyField',
34
- /**
35
- * @private
36
- * @property {HTMLElement[]} formLinkLabelTargets - The form link label elements.
37
- */
38
- 'formLinkLabel'
39
- ]
40
- }
41
- // noinspection JSUnusedGlobalSymbols
42
- /**
43
- * @private
44
- * @property {string} activeClass - The class used to mark elements as active.
45
- */
46
- static get classes() {
47
- return ['active']
48
- }
49
-
50
- /**
51
- * Returns visible form pane targets.
52
- * @private
53
- * @return {HTMLElement[]} Form pane targets currently shown.
54
- */
55
- get visibleFormPaneTargets() {
56
- return this.getVisibleTargets(this.formPaneTargets)
57
- }
58
-
59
- /**
60
- * Returns visible form link targets.
61
- * @private
62
- * @return {HTMLElement[]} Form link targets currently shown.
63
- */
64
- get visibleFormLinkTargets() {
65
- return this.getVisibleTargets(this.formLinkTargets)
66
- }
67
-
68
- // noinspection JSUnusedGlobalSymbols
69
- /**
70
- * Removes the form for the button firing the event.
71
- * @param {Event} event - The event fired by the button.
72
- */
73
- removeForm(event) {
74
- if (!(event.currentTarget instanceof HTMLElement)) return
75
- const index = this.getIndexOfChild(this.formPaneTargets, event.currentTarget)
76
- const visibleIndex = this.getIndexOfChild(this.visibleFormPaneTargets, event.currentTarget)
77
- this.destroyFieldTargets[index].value = true.toString()
78
- this.hideTargetPair(index)
79
- if (this.visibleFormPaneTargets.length > 0) {
80
- let newIndex = visibleIndex <= this.visibleFormPaneTargets.length - 1 ? visibleIndex : visibleIndex - 1
81
- this.makeTargetPairActive(newIndex)
82
- }
83
- this.updateURL()
84
- }
85
-
86
- // noinspection JSUnusedGlobalSymbols
87
- /**
88
- * Updates the form link labels with new type.
89
- * @param {Event} event - The event fired by the select element.
90
- */
91
- updateType(event) {
92
- if (!(event.currentTarget instanceof HTMLSelectElement)) return
93
- const index = this.getIndexOfChild(this.formPaneTargets, event.currentTarget)
94
- this.formLinkLabelTargets[index].textContent = event.currentTarget.selectedOptions[0].label
95
- }
96
-
97
- /**
98
- * Updates the URL used to get new forms.
99
- */
100
- updateURL() {
101
- const params = new URLSearchParams(this.addFormLinkTarget.search)
102
- params.set('index', String(this.formPaneTargets.length))
103
- params.set('active', String(this.visibleFormPaneTargets.length === 0))
104
- this.addFormLinkTarget.search = params.toString()
105
- }
106
-
107
- /**
108
- * Hides a form pane and form link target sharing an index.
109
- * @private
110
- * @private
111
- * @param {Number} index - The index of the targets to hide.
112
- */
113
- hideTargetPair(index) {
114
- this.hide(this.formPaneTargets[index])
115
- this.hide(this.formLinkTargets[index])
116
- }
117
-
118
- /**
119
- * Marks a form pane and form link target sharing an index as active.
120
- * @private
121
- * @param {Number} index - The index of the targets to show.
122
- */
123
- makeTargetPairActive(index) {
124
- this.makeActive(this.visibleFormPaneTargets[index])
125
- this.makeActive(this.visibleFormLinkTargets[index])
126
- }
127
-
128
- /**
129
- * Makes an element inactive and hides it.
130
- * @private
131
- * @param {HTMLElement} element - The element.
132
- */
133
- hide(element) {
134
- this.makeInactive(element)
135
- element.hidden = true
136
- }
137
-
138
- /**
139
- * Makes an element inactive.
140
- * @private
141
- * @param {HTMLElement} element - The element.
142
- */
143
- makeInactive(element) {
144
- element.classList.remove(this.activeClass)
145
- }
146
-
147
- /**
148
- * Makes an element active.
149
- * @private
150
- * @param {HTMLElement} element - The element.
151
- */
152
- makeActive(element) {
153
- element.classList.add(this.activeClass)
154
- }
155
-
156
- /**
157
- * Gets the index of an element within a collection.
158
- * @private
159
- * @param {HTMLElement[]} collection
160
- * @param {HTMLElement} child
161
- */
162
- getIndexOfChild(collection, child) {
163
- return collection.indexOf(collection.find(element => element.contains(child)))
164
- }
165
-
166
- /**
167
- * Gets visible targets within a collection.
168
- * @private
169
- * @param {HTMLElement[]} targets
170
- */
171
- getVisibleTargets(targets) {
172
- return targets.filter(target => target.hidden === false)
173
- }
174
- }