spina-admin-conferences 1.3.8 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/spina_admin_conferences_manifest.js +0 -2
  3. data/app/assets/stylesheets/spina/admin/conferences/application.sass +0 -15
  4. data/app/controllers/spina/admin/conferences/application_controller.rb +6 -3
  5. data/app/controllers/spina/admin/conferences/conferences_controller.rb +19 -28
  6. data/app/controllers/spina/admin/conferences/delegates_controller.rb +3 -5
  7. data/app/controllers/spina/admin/conferences/dietary_requirements_controller.rb +2 -2
  8. data/app/controllers/spina/admin/conferences/institutions_controller.rb +2 -2
  9. data/app/controllers/spina/admin/conferences/presentation_attachment_types_controller.rb +2 -2
  10. data/app/controllers/spina/admin/conferences/presentation_types_controller.rb +2 -2
  11. data/app/controllers/spina/admin/conferences/presentations_controller.rb +5 -6
  12. data/app/controllers/spina/admin/conferences/rooms_controller.rb +2 -2
  13. data/app/controllers/spina/admin/conferences/sessions_controller.rb +2 -2
  14. data/app/jobs/spina/admin/conferences/presentation_import_job.rb +2 -3
  15. data/app/models/spina/admin/conferences/conference.rb +4 -7
  16. data/app/models/spina/admin/conferences/event.rb +21 -58
  17. data/app/models/spina/admin/conferences/presentation.rb +15 -33
  18. data/app/models/spina/parts/admin/conferences/date.rb +14 -0
  19. data/app/models/spina/parts/admin/conferences/email_address.rb +20 -0
  20. data/app/models/spina/parts/admin/conferences/time.rb +14 -0
  21. data/app/models/spina/parts/admin/conferences/url.rb +20 -0
  22. data/app/views/spina/admin/conferences/{delegates/_form_conferences.html.haml → application/_conferences.html.haml} +2 -4
  23. data/app/views/spina/admin/conferences/{conferences/_form_delegates.html.haml → application/_delegates.html.haml} +2 -3
  24. data/app/views/spina/admin/conferences/application/_dietary_requirements.html.haml +9 -0
  25. data/app/views/spina/admin/conferences/application/_institutions.html.haml +10 -0
  26. data/app/views/spina/admin/conferences/application/_presentation_attachment_types.html.haml +10 -0
  27. data/app/views/spina/admin/conferences/{conferences/_form_presentation_types.html.haml → application/_presentation_types.html.haml} +2 -3
  28. data/app/views/spina/admin/conferences/{rooms/_form_presentations.html.haml → application/_presentations.html.haml} +2 -3
  29. data/app/views/spina/admin/conferences/{conferences/_form_rooms.html.haml → application/_rooms.html.haml} +2 -3
  30. data/app/views/spina/admin/conferences/{presentation_types/_form_sessions.html.haml → application/_sessions.html.haml} +2 -3
  31. data/app/views/spina/admin/conferences/conferences/_event_fields.html.haml +15 -21
  32. data/app/views/spina/admin/conferences/conferences/_form.html.haml +7 -3
  33. data/app/views/spina/admin/conferences/conferences/_form_conference_details.html.haml +22 -24
  34. data/app/views/spina/admin/conferences/conferences/_form_parts.html.haml +7 -14
  35. data/app/views/spina/admin/conferences/conferences/index.html.haml +2 -13
  36. data/app/views/spina/admin/conferences/delegates/_form.html.haml +4 -3
  37. data/app/views/spina/admin/conferences/delegates/_form_delegate_details.html.haml +47 -32
  38. data/app/views/spina/admin/conferences/delegates/index.html.haml +2 -12
  39. data/app/views/spina/admin/conferences/dietary_requirements/_form.html.haml +3 -3
  40. data/app/views/spina/admin/conferences/dietary_requirements/_form_dietary_requirement_details.html.haml +7 -8
  41. data/app/views/spina/admin/conferences/dietary_requirements/index.html.haml +2 -10
  42. data/app/views/spina/admin/conferences/institutions/_form.html.haml +4 -3
  43. data/app/views/spina/admin/conferences/institutions/_form_institution_details.html.haml +29 -35
  44. data/app/views/spina/admin/conferences/institutions/index.html.haml +2 -11
  45. data/app/views/spina/admin/conferences/presentation_attachment_types/_form.html.haml +2 -2
  46. data/app/views/spina/admin/conferences/presentation_attachment_types/index.html.haml +2 -10
  47. data/app/views/spina/admin/conferences/presentation_types/_form.html.haml +4 -3
  48. data/app/views/spina/admin/conferences/presentation_types/_form_presentation_type_details.html.haml +13 -17
  49. data/app/views/spina/admin/conferences/presentation_types/index.html.haml +2 -12
  50. data/app/views/spina/admin/conferences/presentations/_attachment_fields.html.haml +6 -15
  51. data/app/views/spina/admin/conferences/presentations/_form.html.haml +3 -3
  52. data/app/views/spina/admin/conferences/presentations/_form_presentation_details.html.haml +56 -55
  53. data/app/views/spina/admin/conferences/presentations/index.html.haml +2 -12
  54. data/app/views/spina/admin/conferences/rooms/_form.html.haml +3 -3
  55. data/app/views/spina/admin/conferences/rooms/_form_room_details.html.haml +13 -15
  56. data/app/views/spina/admin/conferences/rooms/index.html.haml +2 -12
  57. data/app/views/spina/admin/conferences/sessions/_form.html.haml +3 -3
  58. data/app/views/spina/admin/conferences/sessions/_form_session_details.html.haml +18 -20
  59. data/app/views/spina/admin/conferences/sessions/_session.html.haml +1 -1
  60. data/app/views/spina/admin/conferences/sessions/index.html.haml +2 -12
  61. data/app/views/spina/admin/hooks/conferences/_primary_navigation.html.haml +4 -4
  62. data/app/views/spina/admin/hooks/conferences/_settings_secondary_navigation.html.haml +2 -2
  63. data/app/views/spina/admin/parts/admin/conferences/dates/_form.html.haml +2 -0
  64. data/app/views/spina/admin/parts/admin/conferences/email_addresses/_form.html.haml +2 -0
  65. data/app/views/spina/admin/parts/admin/conferences/times/_form.html.haml +2 -0
  66. data/app/views/spina/admin/parts/admin/conferences/urls/_form.html.haml +2 -0
  67. data/config/locales/en.yml +26 -29
  68. data/db/migrate/20210315164409_add_json_attributes_to_spina_conferences_presentations.rb +7 -0
  69. data/db/migrate/20210315164410_add_json_attributes_to_spina_conferences_conferences.rb +7 -0
  70. data/db/migrate/20210315164411_convert_partables_to_json.rb +407 -0
  71. data/lib/spina/admin/conferences/engine.rb +7 -0
  72. data/lib/spina/admin/conferences/version.rb +1 -1
  73. data/lib/tasks/spina/admin/conferences_tasks.rake +11 -1
  74. metadata +25 -29
  75. data/app/helpers/spina/admin/conferences/conferences_helper.rb +0 -44
  76. data/app/models/spina/admin/conferences/date_part.rb +0 -15
  77. data/app/models/spina/admin/conferences/email_address_part.rb +0 -21
  78. data/app/models/spina/admin/conferences/part.rb +0 -20
  79. data/app/models/spina/admin/conferences/time_part.rb +0 -53
  80. data/app/models/spina/admin/conferences/url_part.rb +0 -21
  81. data/app/views/spina/admin/conferences/conferences/_form_presentations.html.haml +0 -12
  82. data/app/views/spina/admin/conferences/delegates/_form_presentations.html.haml +0 -12
  83. data/app/views/spina/admin/conferences/dietary_requirements/_form_delegates.html.haml +0 -12
  84. data/app/views/spina/admin/conferences/institutions/_form_delegates.html.haml +0 -12
  85. data/app/views/spina/admin/conferences/institutions/_form_rooms.html.haml +0 -12
  86. data/app/views/spina/admin/conferences/presentation_types/_form_presentations.html.haml +0 -12
  87. data/app/views/spina/admin/conferences/presentations/_form_presenters.html.haml +0 -12
  88. data/app/views/spina/admin/conferences/sessions/_form_presentations.html.haml +0 -12
  89. data/app/views/spina/admin/partables/admin/conferences/date_parts/_form.html.haml +0 -5
  90. data/app/views/spina/admin/partables/admin/conferences/email_address_parts/_form.html.haml +0 -5
  91. data/app/views/spina/admin/partables/admin/conferences/time_parts/_form.html.haml +0 -7
  92. data/app/views/spina/admin/partables/admin/conferences/url_parts/_form.html.haml +0 -5
@@ -1,12 +0,0 @@
1
- #delegates.tab-content.well
2
- .table-container
3
- %table.table
4
- %thead
5
- %tr
6
- %th= Spina::Admin::Conferences::Delegate.human_attribute_name :name
7
- %th= Spina::Admin::Conferences::Delegate.human_attribute_name :email_address
8
- %th= Spina::Admin::Conferences::Delegate.human_attribute_name :institution
9
- %th
10
-
11
- %tbody
12
- = render @institution.delegates.any? ? @institution.delegates : 'empty_list', message: t('spina.admin.conferences.delegates.index.no_delegates')
@@ -1,12 +0,0 @@
1
- #rooms.tab-content.well
2
- .table-container
3
- %table.table
4
- %thead
5
- %tr
6
- %th= Spina::Admin::Conferences::Room.human_attribute_name :institution
7
- %th= Spina::Admin::Conferences::Room.human_attribute_name :building
8
- %th= Spina::Admin::Conferences::Room.human_attribute_name :number
9
- %th
10
-
11
- %tbody
12
- = render @institution.rooms.any? ? @institution.rooms : 'empty_list', message: t('spina.admin.conferences.rooms.index.no_rooms')
@@ -1,12 +0,0 @@
1
- #presentations.tab-content.well
2
- .table-container
3
- %table.table
4
- %thead
5
- %tr
6
- %th= Spina::Admin::Conferences::Presentation.human_attribute_name :conference
7
- %th= Spina::Admin::Conferences::Presentation.human_attribute_name :title
8
- %th= Spina::Admin::Conferences::Presentation.human_attribute_name :presenters
9
- %th
10
-
11
- %tbody
12
- = render @presentation_type.presentations.any? ? @presentation_type.presentations : 'empty_list', message: t('spina.admin.conferences.presentations.index.no_presentations')
@@ -1,12 +0,0 @@
1
- #presenters.tab-content.well
2
- .table-container
3
- %table.table
4
- %thead
5
- %tr
6
- %th= Spina::Admin::Conferences::Delegate.human_attribute_name :name
7
- %th= Spina::Admin::Conferences::Delegate.human_attribute_name :email_address
8
- %th= Spina::Admin::Conferences::Delegate.human_attribute_name :institution
9
- %th
10
-
11
- %tbody
12
- = render @presentation.presenters.any? ? @presentation.presenters : 'empty_list', message: t('spina.admin.conferences.presenters.no_presenters')
@@ -1,12 +0,0 @@
1
- #presentations.tab-content.well
2
- .table-container
3
- %table.table
4
- %thead
5
- %tr
6
- %th= Spina::Admin::Conferences::Presentation.human_attribute_name :conference
7
- %th= Spina::Admin::Conferences::Presentation.human_attribute_name :title
8
- %th= Spina::Admin::Conferences::Presentation.human_attribute_name :presenters
9
- %th
10
-
11
- %tbody
12
- = render @session.presentations.any? ? @session.presentations : 'empty_list', message: t('spina.admin.conferences.presentations.index.no_presentations')
@@ -1,5 +0,0 @@
1
- .horizontal-form-label
2
- = f.object.title
3
- .horizontal-form-content
4
- = f.fields_for :partable, f.object.partable do |ff|
5
- = ff.date_field :content
@@ -1,5 +0,0 @@
1
- .horizontal-form-label
2
- = f.object.title
3
- .horizontal-form-content
4
- = f.fields_for :partable, f.object.partable do |ff|
5
- = ff.email_field :content
@@ -1,7 +0,0 @@
1
- .horizontal-form-label
2
- = f.object.title
3
- = f.fields_for :partable, f.object.partable do |ff|
4
- .horizontal-form-content
5
- .input-group
6
- = ff.date_field :date
7
- = ff.time_field :time
@@ -1,5 +0,0 @@
1
- .horizontal-form-label
2
- = f.object.title
3
- .horizontal-form-content
4
- = f.fields_for :partable, f.object.partable do |ff|
5
- = ff.url_field :content