spina-admin-conferences-fork 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +100 -0
- data/Rakefile +40 -0
- data/app/assets/config/spina_admin_conferences_manifest.js +3 -0
- data/app/assets/javascripts/controllers/spina/admin/conferences/conference_events_form_controller.js +174 -0
- data/app/assets/javascripts/controllers/spina/admin/conferences/presentation_attachments_form_controller.js +174 -0
- data/app/assets/javascripts/controllers/spina/admin/conferences/select_options_controller.js +215 -0
- data/app/assets/javascripts/importmap.json.erb +6 -0
- data/app/assets/javascripts/spina/admin/conferences/application.js +4 -0
- data/app/assets/stylesheets/spina/admin/conferences/application.sass +3 -0
- data/app/controllers/spina/admin/conferences/application_controller.rb +23 -0
- data/app/controllers/spina/admin/conferences/conferences_controller.rb +139 -0
- data/app/controllers/spina/admin/conferences/delegates_controller.rb +114 -0
- data/app/controllers/spina/admin/conferences/dietary_requirements_controller.rb +106 -0
- data/app/controllers/spina/admin/conferences/events_controller.rb +24 -0
- data/app/controllers/spina/admin/conferences/institutions_controller.rb +106 -0
- data/app/controllers/spina/admin/conferences/presentation_attachment_types_controller.rb +104 -0
- data/app/controllers/spina/admin/conferences/presentation_attachments_controller.rb +24 -0
- data/app/controllers/spina/admin/conferences/presentation_types_controller.rb +109 -0
- data/app/controllers/spina/admin/conferences/presentations_controller.rb +123 -0
- data/app/controllers/spina/admin/conferences/rooms_controller.rb +109 -0
- data/app/controllers/spina/admin/conferences/sessions_controller.rb +118 -0
- data/app/jobs/spina/admin/conferences/application_job.rb +11 -0
- data/app/jobs/spina/admin/conferences/delegate_import_job.rb +37 -0
- data/app/jobs/spina/admin/conferences/import_job.rb +26 -0
- data/app/jobs/spina/admin/conferences/presentation_import_job.rb +37 -0
- data/app/mailers/spina/admin/conferences/application_mailer.rb +13 -0
- data/app/models/spina/admin/conferences/application_record.rb +14 -0
- data/app/models/spina/admin/conferences/conference.rb +269 -0
- data/app/models/spina/admin/conferences/delegate.rb +89 -0
- data/app/models/spina/admin/conferences/dietary_requirement.rb +33 -0
- data/app/models/spina/admin/conferences/event.rb +85 -0
- data/app/models/spina/admin/conferences/institution.rb +46 -0
- data/app/models/spina/admin/conferences/presentation.rb +134 -0
- data/app/models/spina/admin/conferences/presentation_attachment.rb +27 -0
- data/app/models/spina/admin/conferences/presentation_attachment_type.rb +35 -0
- data/app/models/spina/admin/conferences/presentation_type.rb +60 -0
- data/app/models/spina/admin/conferences/room.rb +52 -0
- data/app/models/spina/admin/conferences/session.rb +56 -0
- data/app/models/spina/admin/conferences.rb +11 -0
- data/app/models/spina/parts/admin/conferences/date.rb +14 -0
- data/app/models/spina/parts/admin/conferences/email_address.rb +20 -0
- data/app/models/spina/parts/admin/conferences/time.rb +14 -0
- data/app/models/spina/parts/admin/conferences/url.rb +20 -0
- data/app/validators/spina/admin/conferences/conference_date_validator.rb +20 -0
- data/app/validators/spina/admin/conferences/email_address_validator.rb +28 -0
- data/app/validators/spina/admin/conferences/finish_date_validator.rb +20 -0
- data/app/validators/spina/admin/conferences/finish_time_validator.rb +20 -0
- data/app/validators/spina/admin/conferences/http_url_validator.rb +28 -0
- data/app/views/layouts/spina/admin/conferences/application.html.haml +6 -0
- data/app/views/layouts/spina/admin/conferences/conferences.html.haml +17 -0
- data/app/views/layouts/spina/admin/conferences/delegates.html.haml +8 -0
- data/app/views/layouts/spina/admin/conferences/dietary_requirements.html.haml +8 -0
- data/app/views/layouts/spina/admin/conferences/institutions.html.haml +15 -0
- data/app/views/layouts/spina/admin/conferences/presentation_attachment_types.html.haml +8 -0
- data/app/views/layouts/spina/admin/conferences/presentations.html.haml +8 -0
- data/app/views/spina/admin/conferences/application/_conferences.html.haml +12 -0
- data/app/views/spina/admin/conferences/application/_delegates.html.haml +11 -0
- data/app/views/spina/admin/conferences/application/_dietary_requirements.html.haml +9 -0
- data/app/views/spina/admin/conferences/application/_empty_list.html.haml +3 -0
- data/app/views/spina/admin/conferences/application/_errors.html.haml +11 -0
- data/app/views/spina/admin/conferences/application/_errors.turbo_stream.haml +1 -0
- data/app/views/spina/admin/conferences/application/_institutions.html.haml +10 -0
- data/app/views/spina/admin/conferences/application/_presentation_attachment_types.html.haml +10 -0
- data/app/views/spina/admin/conferences/application/_presentation_types.html.haml +11 -0
- data/app/views/spina/admin/conferences/application/_presentations.html.haml +11 -0
- data/app/views/spina/admin/conferences/application/_rooms.html.haml +11 -0
- data/app/views/spina/admin/conferences/application/_sessions.html.haml +11 -0
- data/app/views/spina/admin/conferences/conferences/_conference.html.haml +9 -0
- data/app/views/spina/admin/conferences/conferences/_event_fields.html.haml +31 -0
- data/app/views/spina/admin/conferences/conferences/_event_row.html.haml +5 -0
- data/app/views/spina/admin/conferences/conferences/_form.html.haml +27 -0
- data/app/views/spina/admin/conferences/conferences/_form_conference_details.html.haml +27 -0
- data/app/views/spina/admin/conferences/conferences/_form_parts.html.haml +8 -0
- data/app/views/spina/admin/conferences/conferences/_form_structure.html.haml +19 -0
- data/app/views/spina/admin/conferences/conferences/_form_structure_item.html.haml +13 -0
- data/app/views/spina/admin/conferences/conferences/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/conferences/index.html.haml +7 -0
- data/app/views/spina/admin/conferences/conferences/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/delegates/_delegate.html.haml +13 -0
- data/app/views/spina/admin/conferences/delegates/_form.html.haml +24 -0
- data/app/views/spina/admin/conferences/delegates/_form_delegate_details.html.haml +53 -0
- data/app/views/spina/admin/conferences/delegates/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/delegates/index.html.haml +13 -0
- data/app/views/spina/admin/conferences/delegates/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/dietary_requirements/_dietary_requirement.html.haml +6 -0
- data/app/views/spina/admin/conferences/dietary_requirements/_form.html.haml +23 -0
- data/app/views/spina/admin/conferences/dietary_requirements/_form_dietary_requirement_details.html.haml +8 -0
- data/app/views/spina/admin/conferences/dietary_requirements/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/dietary_requirements/index.html.haml +7 -0
- data/app/views/spina/admin/conferences/dietary_requirements/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/events/new.js.erb +21 -0
- data/app/views/spina/admin/conferences/institutions/_form.html.haml +24 -0
- data/app/views/spina/admin/conferences/institutions/_form_institution_details.html.haml +29 -0
- data/app/views/spina/admin/conferences/institutions/_institution.html.haml +7 -0
- data/app/views/spina/admin/conferences/institutions/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/institutions/index.html.haml +7 -0
- data/app/views/spina/admin/conferences/institutions/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/presentation_attachment_types/_form.html.haml +23 -0
- data/app/views/spina/admin/conferences/presentation_attachment_types/_presentation_attachment_type.html.haml +6 -0
- data/app/views/spina/admin/conferences/presentation_attachment_types/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/presentation_attachment_types/index.html.haml +7 -0
- data/app/views/spina/admin/conferences/presentation_attachment_types/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/presentation_attachments/new.js.erb +21 -0
- data/app/views/spina/admin/conferences/presentation_types/_form.html.haml +24 -0
- data/app/views/spina/admin/conferences/presentation_types/_form_presentation_type_details.html.haml +16 -0
- data/app/views/spina/admin/conferences/presentation_types/_presentation_type.html.haml +8 -0
- data/app/views/spina/admin/conferences/presentation_types/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/presentation_types/index.html.haml +7 -0
- data/app/views/spina/admin/conferences/presentation_types/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/presentations/_attachment_fields.html.haml +18 -0
- data/app/views/spina/admin/conferences/presentations/_attachment_row.html.haml +2 -0
- data/app/views/spina/admin/conferences/presentations/_form.html.haml +23 -0
- data/app/views/spina/admin/conferences/presentations/_form_presentation_details.html.haml +55 -0
- data/app/views/spina/admin/conferences/presentations/_presentation.html.haml +11 -0
- data/app/views/spina/admin/conferences/presentations/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/presentations/index.html.haml +13 -0
- data/app/views/spina/admin/conferences/presentations/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/rooms/_form.html.haml +23 -0
- data/app/views/spina/admin/conferences/rooms/_form_room_details.html.haml +16 -0
- data/app/views/spina/admin/conferences/rooms/_room.html.haml +8 -0
- data/app/views/spina/admin/conferences/rooms/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/rooms/index.html.haml +7 -0
- data/app/views/spina/admin/conferences/rooms/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/sessions/_form.html.haml +23 -0
- data/app/views/spina/admin/conferences/sessions/_form_session_details.html.haml +21 -0
- data/app/views/spina/admin/conferences/sessions/_session.html.haml +8 -0
- data/app/views/spina/admin/conferences/sessions/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/sessions/index.html.haml +7 -0
- data/app/views/spina/admin/conferences/sessions/new.html.haml +1 -0
- data/app/views/spina/admin/hooks/conferences/_head.html.haml +7 -0
- data/app/views/spina/admin/hooks/conferences/_primary_navigation.html.haml +21 -0
- data/app/views/spina/admin/hooks/conferences/_settings_secondary_navigation.html.haml +6 -0
- data/app/views/spina/admin/parts/admin/conferences/dates/_form.html.haml +2 -0
- data/app/views/spina/admin/parts/admin/conferences/email_addresses/_form.html.haml +2 -0
- data/app/views/spina/admin/parts/admin/conferences/times/_form.html.haml +2 -0
- data/app/views/spina/admin/parts/admin/conferences/urls/_form.html.haml +2 -0
- data/config/initializers/assets.rb +13 -0
- data/config/locales/en.yml +351 -0
- data/config/routes.rb +27 -0
- data/db/migrate/20180907141228_create_spina_dates.rb +11 -0
- data/db/migrate/20180907141229_create_spina_email_addresses.rb +11 -0
- data/db/migrate/20180907141230_create_spina_urls.rb +11 -0
- data/db/migrate/20180907141231_create_spina_conferences_institutions.rb +12 -0
- data/db/migrate/20180907141232_create_spina_conferences_delegates.rb +15 -0
- data/db/migrate/20180907141234_create_spina_conferences_dietary_requirements.rb +11 -0
- data/db/migrate/20180907141235_create_spina_conferences_conferences.rb +12 -0
- data/db/migrate/20180907141236_create_spina_conferences_presentation_types.rb +13 -0
- data/db/migrate/20180907141238_create_join_table_spina_conferences_conference_delegate.rb +7 -0
- data/db/migrate/20180907141239_create_join_table_spina_conferences_delegate_presentation.rb +7 -0
- data/db/migrate/20180907141240_create_join_table_spina_conferences_delegate_dietary_requirement.rb +7 -0
- data/db/migrate/20180907141242_add_type_to_spina_pages.rb +7 -0
- data/db/migrate/20180907141243_create_spina_conferences_conference_page_parts.rb +14 -0
- data/db/migrate/20180914121905_add_logo_ref_to_spina_conferences_institutions.rb +7 -0
- data/db/migrate/20180916135431_create_spina_conferences_rooms.rb +13 -0
- data/db/migrate/20180916135432_create_spina_conferences_room_possessions.rb +10 -0
- data/db/migrate/20180916135433_create_spina_conferences_room_uses.rb +10 -0
- data/db/migrate/20180916135434_create_spina_conferences_presentations.rb +15 -0
- data/db/migrate/20181009122503_create_spina_times.rb +11 -0
- data/db/migrate/20181009130631_rename_spina_page_parts.rb +10 -0
- data/db/migrate/20181012190811_rename_spina_conferences_page_parts.rb +10 -0
- data/db/migrate/20181012213049_change_start_time_in_spina_conferences_conferences.rb +15 -0
- data/db/migrate/20181012214813_rename_start_time_in_spina_conferences_conferences.rb +7 -0
- data/db/migrate/20181017155705_add_dependent_option_to_foreign_keys.rb +36 -0
- data/db/migrate/20190408131354_change_spina_resources.rb +56 -0
- data/db/migrate/20190622131423_create_spina_conferences_parts.rb +12 -0
- data/db/migrate/20190701174807_remove_spina_conference_pages.rb +199 -0
- data/db/migrate/20190704135524_add_constraints_to_columns.rb +24 -0
- data/db/migrate/20200126034441_create_spina_conferences_presentation_attachment_types.rb +11 -0
- data/db/migrate/20200126213718_create_spina_conferences_presentation_attachments.rb +19 -0
- data/db/migrate/20200420104603_create_spina_conferences_dietary_requirement_name_translations.rb +19 -0
- data/db/migrate/20200420104740_create_spina_conferences_institution_name_and_city_translations.rb +20 -0
- data/db/migrate/20200420105057_create_spina_conferences_presentation_title_and_abstract_translations.rb +20 -0
- data/db/migrate/20200420105144_create_spina_conferences_presentation_attachment_type_name_translations.rb +20 -0
- data/db/migrate/20200420105201_create_spina_conferences_presentation_type_name_translations.rb +19 -0
- data/db/migrate/20200420105458_create_spina_conferences_room_building_and_number_translations.rb +20 -0
- data/db/migrate/20200420110407_move_attributes_to_translation_tables.rb +161 -0
- data/db/migrate/20200420120706_remove_name_from_spina_conferences_dietary_requirements.rb +7 -0
- data/db/migrate/20200420120759_remove_name_and_city_from_spina_conferences_institutions.rb +8 -0
- data/db/migrate/20200420120946_remove_title_and_abstract_from_spina_conferences_presentations.rb +8 -0
- data/db/migrate/20200420121310_remove_name_from_spina_conferences_presentation_attachment_types.rb +7 -0
- data/db/migrate/20200420121321_remove_name_from_spina_conferences_presentation_types.rb +7 -0
- data/db/migrate/20200420121443_remove_building_and_number_from_spina_conferences_rooms.rb +8 -0
- data/db/migrate/20200502133408_create_spina_conferences_conference_name_translations.rb +19 -0
- data/db/migrate/20200502183409_set_name_for_spina_conferences_conferences.rb +47 -0
- data/db/migrate/20200502183410_remove_institution_from_spina_conferences_conferences.rb +8 -0
- data/db/migrate/20200502183719_remove_spina_conferences_room_possessions.rb +60 -0
- data/db/migrate/20200503230732_rename_spina_conferences_room_uses.rb +8 -0
- data/db/migrate/20200510125131_create_spina_conferences_session_name_translations.rb +19 -0
- data/db/migrate/20200802165242_create_spina_conferences_events.rb +13 -0
- data/db/migrate/20200802184921_create_spina_conferences_event_name_description_and_location_translations.rb +21 -0
- data/db/migrate/20200911161632_update_spina_conferences_parts.rb +23 -0
- data/db/migrate/20200911161651_update_spina_parts.rb +37 -0
- data/db/migrate/20200911161726_move_presentation_parts.rb +101 -0
- data/db/migrate/20200911161739_move_conference_parts.rb +221 -0
- data/db/migrate/20201002122517_remove_spina_conferences_conference_page_parts.rb +14 -0
- data/db/migrate/20201007125625_add_timestamps_to_spina_conferences_parts.rb +10 -0
- data/db/migrate/20210315164409_add_json_attributes_to_spina_conferences_presentations.rb +7 -0
- data/db/migrate/20210315164410_add_json_attributes_to_spina_conferences_conferences.rb +7 -0
- data/db/migrate/20210315164411_convert_partables_to_json.rb +407 -0
- data/db/migrate/20210417102513_add_locale_to_action_text_rich_texts.rb +11 -0
- data/db/migrate/20210417102514_move_texts_to_action_text_rich_texts.rb +82 -0
- data/lib/spina/admin/conferences/engine.rb +31 -0
- data/lib/spina/admin/conferences/migration/renaming.rb +79 -0
- data/lib/spina/admin/conferences/railtie.rb +34 -0
- data/lib/spina/admin/conferences/version.rb +10 -0
- data/lib/spina/admin/conferences.rb +23 -0
- data/lib/tasks/spina/admin/conferences_tasks.rake +14 -0
- metadata +603 -0
@@ -0,0 +1,351 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization
|
2
|
+
# and are automatically loaded by Rails. If you want to use locales other
|
3
|
+
# than English, add the necessary files in this directory.
|
4
|
+
#
|
5
|
+
# To use the locales, use `I18n.t`:
|
6
|
+
#
|
7
|
+
# I18n.t 'hello'
|
8
|
+
#
|
9
|
+
# In views, this is aliased to just `t`:
|
10
|
+
#
|
11
|
+
# <%= t('hello') %>
|
12
|
+
#
|
13
|
+
# To use a different locale, set it with `I18n.locale`:
|
14
|
+
#
|
15
|
+
# I18n.locale = :es
|
16
|
+
#
|
17
|
+
# This would use the information in config/locales/es.yml.
|
18
|
+
#
|
19
|
+
# The following keys must be escaped otherwise they will not be retrieved by
|
20
|
+
# the default I18n backend:
|
21
|
+
#
|
22
|
+
# true, false, on, off, yes, no
|
23
|
+
#
|
24
|
+
# Instead, surround them with single quotes.
|
25
|
+
#
|
26
|
+
# en:
|
27
|
+
# 'true': 'foo'
|
28
|
+
#
|
29
|
+
# To learn more, please read the Rails Internationalization guide
|
30
|
+
# available at http://guides.rubyonrails.org/i18n.html.
|
31
|
+
|
32
|
+
en:
|
33
|
+
spina:
|
34
|
+
show: Show
|
35
|
+
languages:
|
36
|
+
en-GB: British English
|
37
|
+
email: Email
|
38
|
+
media_library:
|
39
|
+
images: Images # This translation is apparently not provided by Spina for some reason
|
40
|
+
images:
|
41
|
+
delete: Delete # Ditto
|
42
|
+
choose: Choose
|
43
|
+
admin:
|
44
|
+
conferences:
|
45
|
+
title: Conferences
|
46
|
+
conferences:
|
47
|
+
index:
|
48
|
+
new: New conference
|
49
|
+
import: Import CSV
|
50
|
+
new:
|
51
|
+
new: New conference
|
52
|
+
create:
|
53
|
+
new: New conference
|
54
|
+
saved: Conference saved
|
55
|
+
update:
|
56
|
+
saved: Conference saved
|
57
|
+
destroy:
|
58
|
+
destroyed: Conference deleted
|
59
|
+
form:
|
60
|
+
save: Save conference
|
61
|
+
conference_details: Conference details
|
62
|
+
parts: Parts
|
63
|
+
delegates: Delegates
|
64
|
+
presentations: Presentations
|
65
|
+
presentation_types: Presentation types
|
66
|
+
rooms: Rooms
|
67
|
+
form_conference_details:
|
68
|
+
delete_confirmation:
|
69
|
+
"Are you sure you want to delete the conference <strong>%{name}</strong>?"
|
70
|
+
delegates:
|
71
|
+
index:
|
72
|
+
new: New delegate
|
73
|
+
import: Import CSV
|
74
|
+
new:
|
75
|
+
new: New delegate
|
76
|
+
create:
|
77
|
+
new: New delegate
|
78
|
+
saved: Delegate saved
|
79
|
+
update:
|
80
|
+
saved: Delegate saved
|
81
|
+
destroy:
|
82
|
+
destroyed: Delegate deleted
|
83
|
+
form:
|
84
|
+
save: Save delegate
|
85
|
+
delegate_details: Delegate details
|
86
|
+
conferences: Conferences
|
87
|
+
presentations: Presentations
|
88
|
+
form_delegate_details:
|
89
|
+
delete_confirmation: "Are you sure you want to delete the delegate <strong>%{delegate}</strong>?"
|
90
|
+
presenters:
|
91
|
+
new: New presenter
|
92
|
+
save: Save presenter
|
93
|
+
delete_confirmation: "Are you sure you want to delete the presenter <strong>%{presenter}</strong>?"
|
94
|
+
no_presenters: There are no presenters
|
95
|
+
presenter_details: Presenter details
|
96
|
+
conferences: Conferences
|
97
|
+
presentations: Presentations
|
98
|
+
presentations:
|
99
|
+
index:
|
100
|
+
new: New presentation
|
101
|
+
import: Import CSV
|
102
|
+
new:
|
103
|
+
new: New presentation
|
104
|
+
create:
|
105
|
+
new: New presentation
|
106
|
+
saved: Presentation saved
|
107
|
+
update:
|
108
|
+
saved: Presentation saved
|
109
|
+
destroy:
|
110
|
+
destroyed: Presentation deleted
|
111
|
+
form:
|
112
|
+
save: Save presentation
|
113
|
+
presentation_details: Presentation details
|
114
|
+
presenters: Presenters
|
115
|
+
form_presentation_details:
|
116
|
+
delete_confirmation: "Are you sure you want to delete the presentation <strong>%{presentation}</strong>?"
|
117
|
+
presentation_types:
|
118
|
+
index:
|
119
|
+
new: New presentation type
|
120
|
+
import: Import CSV
|
121
|
+
new:
|
122
|
+
new: New presentation type
|
123
|
+
create:
|
124
|
+
new: New presentation type
|
125
|
+
saved: Presentation type saved
|
126
|
+
update:
|
127
|
+
saved: Presentation type saved
|
128
|
+
destroy:
|
129
|
+
destroyed: Presentation type deleted
|
130
|
+
form:
|
131
|
+
save: Save presentation type
|
132
|
+
presentation_type_details: Presentation type details
|
133
|
+
presentations: Presentations
|
134
|
+
sessions: Sessions
|
135
|
+
form_presentation_type_details:
|
136
|
+
delete_confirmation:
|
137
|
+
"Are you sure you want to delete the presentation type <strong>%{presentation_type}</strong>?"
|
138
|
+
dietary_requirements:
|
139
|
+
index:
|
140
|
+
new: New dietary requirement
|
141
|
+
import: Import CSV
|
142
|
+
new:
|
143
|
+
new: New dietary requirement
|
144
|
+
create:
|
145
|
+
new: New dietary requirement
|
146
|
+
saved: Dietary requirement saved
|
147
|
+
update:
|
148
|
+
saved: Dietary requirement saved
|
149
|
+
destroy:
|
150
|
+
destroyed: Dietary requirement deleted
|
151
|
+
form:
|
152
|
+
save: Save dietary requirement
|
153
|
+
dietary_requirement_details: Dietary requirement details
|
154
|
+
delegates: Delegates
|
155
|
+
form_dietary_requirement_details:
|
156
|
+
delete_confirmation:
|
157
|
+
"Are you sure you want to delete the dietary requirement <strong>%{dietary_requirement}</strong>?"
|
158
|
+
presentation_attachment_types:
|
159
|
+
index:
|
160
|
+
new: New presentation attachment type
|
161
|
+
new:
|
162
|
+
new: New presentation attachment type
|
163
|
+
create:
|
164
|
+
new: New presentation attachment type
|
165
|
+
saved: Presentation attachment type saved
|
166
|
+
update:
|
167
|
+
saved: Presentation attachment type saved
|
168
|
+
destroy:
|
169
|
+
destroyed: Presentation attachment type deleted
|
170
|
+
form:
|
171
|
+
save: Save presentation attachment type
|
172
|
+
delete_confirmation:
|
173
|
+
"Are you sure you want to delete the presentation attachment type
|
174
|
+
<strong>%{presentation_attachment_type}</strong>?"
|
175
|
+
institutions:
|
176
|
+
index:
|
177
|
+
new: New institution
|
178
|
+
import: Import CSV
|
179
|
+
new:
|
180
|
+
new: New institution
|
181
|
+
create:
|
182
|
+
new: New institution
|
183
|
+
saved: Institution saved
|
184
|
+
update:
|
185
|
+
saved: Institution saved
|
186
|
+
destroy:
|
187
|
+
destroyed: Institution deleted
|
188
|
+
form:
|
189
|
+
save: Save institution
|
190
|
+
institution_details: Institution details
|
191
|
+
rooms: Rooms
|
192
|
+
conferences: Conferences
|
193
|
+
delegates: Delegates
|
194
|
+
form_institution_details:
|
195
|
+
delete_confirmation: "Are you sure you want to delete the institution <strong>%{institution}</strong>?"
|
196
|
+
rooms:
|
197
|
+
index:
|
198
|
+
new: New room
|
199
|
+
import: Import CSV
|
200
|
+
new:
|
201
|
+
new: New room
|
202
|
+
create:
|
203
|
+
new: New room
|
204
|
+
saved: Room saved
|
205
|
+
update:
|
206
|
+
saved: Room saved
|
207
|
+
destroy:
|
208
|
+
destroyed: Room deleted
|
209
|
+
form:
|
210
|
+
save: Save room
|
211
|
+
room_details: Room details
|
212
|
+
presentations: Presentations
|
213
|
+
form_room_details:
|
214
|
+
delete_confirmation: "Are you sure you want to delete the room <strong>%{room}</strong>?"
|
215
|
+
sessions:
|
216
|
+
index:
|
217
|
+
new: New session
|
218
|
+
new:
|
219
|
+
new: New session
|
220
|
+
create:
|
221
|
+
new: New session
|
222
|
+
saved: Session saved
|
223
|
+
update:
|
224
|
+
saved: Session saved
|
225
|
+
destroy:
|
226
|
+
destroyed: Session deleted
|
227
|
+
form:
|
228
|
+
save: Save session
|
229
|
+
session_details: Session details
|
230
|
+
presentations: Presentations
|
231
|
+
form_session_details:
|
232
|
+
delete_confirmation: "Are you sure you want to delete the session <strong>%{session}</strong>?"
|
233
|
+
application:
|
234
|
+
conferences:
|
235
|
+
no_conferences: There are no conferences
|
236
|
+
delegates:
|
237
|
+
no_delegates: There are no delegates
|
238
|
+
dietary_requirements:
|
239
|
+
no_dietary_requirements: There are no dietary requirements
|
240
|
+
institutions:
|
241
|
+
no_institutions: There are no institutions
|
242
|
+
presentation_types:
|
243
|
+
no_presentation_types: There are no presentation types
|
244
|
+
presentations:
|
245
|
+
no_presentations: There are no presentations
|
246
|
+
presentation_attachment_types:
|
247
|
+
no_presentation_attachment_types: There are no presentation attachment types
|
248
|
+
rooms:
|
249
|
+
no_rooms: There are no rooms
|
250
|
+
sessions:
|
251
|
+
no_sessions: There are no sessions
|
252
|
+
activerecord:
|
253
|
+
models:
|
254
|
+
spina/admin/conferences/conference:
|
255
|
+
one: Conference
|
256
|
+
other: Conferences
|
257
|
+
spina/admin/conferences/event:
|
258
|
+
one: Event
|
259
|
+
other: Events
|
260
|
+
spina/admin/conferences/delegate:
|
261
|
+
one: Delegate
|
262
|
+
other: Delegates
|
263
|
+
spina/admin/conferences/presentation:
|
264
|
+
one: Presentation
|
265
|
+
other: Presentations
|
266
|
+
spina/admin/conferences/presentation_attachment:
|
267
|
+
one: Presentation attachment
|
268
|
+
other: Presentation attachments
|
269
|
+
spina/admin/conferences/presentation_type:
|
270
|
+
one: Presentation type
|
271
|
+
other: Presentation types
|
272
|
+
spina/admin/conferences/dietary_requirement:
|
273
|
+
one: Dietary requirement
|
274
|
+
other: Dietary requirements
|
275
|
+
spina/admin/conferences/presentation_attachment_type:
|
276
|
+
one: Presentation attachment type
|
277
|
+
other: Presentation attachment types
|
278
|
+
spina/admin/conferences/institution:
|
279
|
+
one: Institution
|
280
|
+
other: Institutions
|
281
|
+
spina/admin/conferences/room:
|
282
|
+
one: Room
|
283
|
+
other: Rooms
|
284
|
+
spina/admin/conferences/session:
|
285
|
+
one: Session
|
286
|
+
other: Sessions
|
287
|
+
attributes:
|
288
|
+
spina/admin/conferences/conference:
|
289
|
+
name: Name
|
290
|
+
year: Year
|
291
|
+
start_datetime: Start time
|
292
|
+
finish_datetime: Finish time
|
293
|
+
events: Events
|
294
|
+
spina/admin/conferences/event:
|
295
|
+
name: Name
|
296
|
+
location: Location
|
297
|
+
start_datetime: Start time
|
298
|
+
finish_datetime: Finish time
|
299
|
+
description: Description
|
300
|
+
spina/admin/conferences/delegate:
|
301
|
+
first_name: First name
|
302
|
+
last_name: Last name
|
303
|
+
full_name: "%{first_name} %{last_name}"
|
304
|
+
reversed_name: "%{last_name}, %{first_name}"
|
305
|
+
name_and_institution: "%{name}, %{institution}"
|
306
|
+
name: Name
|
307
|
+
institution: Institution
|
308
|
+
email_address: Email address
|
309
|
+
url: Website
|
310
|
+
conferences: Conferences
|
311
|
+
dietary_requirements: Dietary requirements
|
312
|
+
spina/admin/conferences/presentation:
|
313
|
+
title: Title
|
314
|
+
start_datetime: Start time
|
315
|
+
abstract: Abstract
|
316
|
+
room_type: Type
|
317
|
+
presenters: Presenters
|
318
|
+
conference: Conference
|
319
|
+
session: Session
|
320
|
+
attachments: Attachments
|
321
|
+
spina/admin/conferences/presentation_attachment:
|
322
|
+
type: Type
|
323
|
+
spina/admin/conferences/presentation_type:
|
324
|
+
name: Name
|
325
|
+
duration: Duration
|
326
|
+
spina/admin/conferences/dietary_requirement:
|
327
|
+
name: Name
|
328
|
+
spina/admin/conferences/presentation_attachment_type:
|
329
|
+
name: Name
|
330
|
+
spina/admin/conferences/institution:
|
331
|
+
name: Name
|
332
|
+
city: City
|
333
|
+
logo: Logo
|
334
|
+
spina/admin/conferences/room:
|
335
|
+
building: Building
|
336
|
+
number: Number
|
337
|
+
institution: Institution
|
338
|
+
name: "%{building} %{number}"
|
339
|
+
spina/admin/conferences/session:
|
340
|
+
name: Name
|
341
|
+
presentation_type: Presentation type
|
342
|
+
room: Room
|
343
|
+
errors:
|
344
|
+
messages:
|
345
|
+
outside_conference: is not during the selected conference
|
346
|
+
invalid_email_address: is not an email address
|
347
|
+
invalid_time: is not a time
|
348
|
+
invalid_date: is not a date
|
349
|
+
before_start_date: is before start date
|
350
|
+
before_start_time: is before start time
|
351
|
+
invalid_http_https_url: is not a valid HTTP or HTTPS URL
|
data/config/routes.rb
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
Spina::Engine.routes.draw do
|
4
|
+
namespace :admin, path: Spina.config.backend_path do
|
5
|
+
namespace :conferences do
|
6
|
+
root to: 'conferences#index'
|
7
|
+
resources :conferences, except: [:show] do
|
8
|
+
resources :events, only: [:new]
|
9
|
+
end
|
10
|
+
resources :events, only: [:new]
|
11
|
+
resources :institutions, except: [:show]
|
12
|
+
resources :rooms, except: [:show]
|
13
|
+
resources :sessions, except: [:show]
|
14
|
+
resources :delegates, except: [:show] do
|
15
|
+
post :import, on: :collection
|
16
|
+
end
|
17
|
+
resources :presentations, except: [:show] do
|
18
|
+
post :import, on: :collection
|
19
|
+
resources :presentation_attachments, only: [:new]
|
20
|
+
end
|
21
|
+
resources :presentation_attachments, only: [:new]
|
22
|
+
resources :presentation_types, except: [:show]
|
23
|
+
resources :dietary_requirements, except: [:show]
|
24
|
+
resources :presentation_attachment_types, except: [:show]
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateSpinaConferencesInstitutions < ActiveRecord::Migration[5.2] # :nodoc:
|
4
|
+
def change
|
5
|
+
create_table :spina_conferences_institutions do |t|
|
6
|
+
t.string :name
|
7
|
+
t.string :city
|
8
|
+
|
9
|
+
t.timestamps null: false
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateSpinaConferencesDelegates < ActiveRecord::Migration[5.2] # :nodoc:
|
4
|
+
def change
|
5
|
+
create_table :spina_conferences_delegates do |t|
|
6
|
+
t.string :first_name
|
7
|
+
t.string :last_name
|
8
|
+
t.string :email_address
|
9
|
+
t.string :url
|
10
|
+
t.references :institution, foreign_key: { to_table: :spina_conferences_institutions }
|
11
|
+
|
12
|
+
t.timestamps null: false
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateSpinaConferencesDietaryRequirements < ActiveRecord::Migration[5.2] # :nodoc:
|
4
|
+
def change
|
5
|
+
create_table :spina_conferences_dietary_requirements do |t|
|
6
|
+
t.string :name
|
7
|
+
|
8
|
+
t.timestamps null: false
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateSpinaConferencesConferences < ActiveRecord::Migration[5.2] # :nodoc:
|
4
|
+
def change
|
5
|
+
create_table :spina_conferences_conferences do |t|
|
6
|
+
t.daterange :dates
|
7
|
+
t.references :institution, foreign_key: { to_table: :spina_conferences_institutions }
|
8
|
+
|
9
|
+
t.timestamps null: false
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateSpinaConferencesPresentationTypes < ActiveRecord::Migration[5.2] # :nodoc:
|
4
|
+
def change
|
5
|
+
create_table :spina_conferences_presentation_types do |t|
|
6
|
+
t.string :name
|
7
|
+
t.interval :duration
|
8
|
+
t.references :conference, foreign_key: { to_table: :spina_conferences_conferences }
|
9
|
+
|
10
|
+
t.timestamps null: false
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateSpinaConferencesConferencePageParts < ActiveRecord::Migration[5.2] #:nodoc:
|
4
|
+
def change
|
5
|
+
create_table :spina_conferences_conference_page_parts do |t|
|
6
|
+
t.belongs_to :conference_page, foreign_key: { to_table: :spina_pages, on_delete: :cascade },
|
7
|
+
index: { name: 'index_spina_conferences_parts_on_page_id' }
|
8
|
+
t.belongs_to :conference_page_partable, polymorphic: true,
|
9
|
+
index: { name: 'index_spina_conferences_parts_on_partable_type_and_partable_id' }
|
10
|
+
|
11
|
+
t.timestamps
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateSpinaConferencesRooms < ActiveRecord::Migration[5.2] # :nodoc:
|
4
|
+
def change
|
5
|
+
create_table :spina_conferences_rooms do |t|
|
6
|
+
t.string :number
|
7
|
+
t.string :building
|
8
|
+
t.references :institution, foreign_key: { to_table: :spina_conferences_institutions }
|
9
|
+
|
10
|
+
t.timestamps null: false
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateSpinaConferencesRoomPossessions < ActiveRecord::Migration[5.2] # :nodoc:
|
4
|
+
def change
|
5
|
+
create_table :spina_conferences_room_possessions do |t| # rubocop:disable Rails/CreateTableWithTimestamps
|
6
|
+
t.references :room, foreign_key: { to_table: :spina_conferences_rooms }
|
7
|
+
t.references :conference, foreign_key: { to_table: :spina_conferences_conferences }
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateSpinaConferencesRoomUses < ActiveRecord::Migration[5.2] # :nodoc:
|
4
|
+
def change
|
5
|
+
create_table :spina_conferences_room_uses do |t| # rubocop:disable Rails/CreateTableWithTimestamps
|
6
|
+
t.references :room_possession, foreign_key: { to_table: :spina_conferences_room_possessions }
|
7
|
+
t.references :presentation_type, foreign_key: { to_table: :spina_conferences_presentation_types }
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateSpinaConferencesPresentations < ActiveRecord::Migration[5.2] # :nodoc:
|
4
|
+
def change
|
5
|
+
create_table :spina_conferences_presentations do |t|
|
6
|
+
t.string :title
|
7
|
+
t.date :date
|
8
|
+
t.time :start_time
|
9
|
+
t.text :abstract
|
10
|
+
t.references :room_use, foreign_key: { to_table: :spina_conferences_room_uses }
|
11
|
+
|
12
|
+
t.timestamps null: false
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class RenameSpinaPageParts < ActiveRecord::Migration[5.2] # :nodoc:
|
4
|
+
def change
|
5
|
+
rename_table 'spina_dates', 'spina_conferences_dates'
|
6
|
+
rename_table 'spina_email_addresses', 'spina_conferences_email_addresses'
|
7
|
+
rename_table 'spina_urls', 'spina_conferences_urls'
|
8
|
+
rename_table 'spina_times', 'spina_conferences_times'
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class RenameSpinaConferencesPageParts < ActiveRecord::Migration[5.2] # :nodoc:
|
4
|
+
def change
|
5
|
+
rename_table 'spina_conferences_dates', 'spina_conferences_date_parts'
|
6
|
+
rename_table 'spina_conferences_email_addresses', 'spina_conferences_email_address_parts'
|
7
|
+
rename_table 'spina_conferences_urls', 'spina_conferences_url_parts'
|
8
|
+
rename_table 'spina_conferences_times', 'spina_conferences_time_parts'
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class ChangeStartTimeInSpinaConferencesConferences < ActiveRecord::Migration[5.2] # :nodoc:
|
4
|
+
def up
|
5
|
+
remove_column :spina_conferences_presentations, :date
|
6
|
+
remove_column :spina_conferences_presentations, :start_time
|
7
|
+
add_column :spina_conferences_presentations, :start_time, :datetime
|
8
|
+
end
|
9
|
+
|
10
|
+
def down
|
11
|
+
remove_column :spina_conferences_presentations, :start_time
|
12
|
+
add_column :spina_conferences_presentations, :date, :date
|
13
|
+
add_column :spina_conferences_presentations, :start_time, :time
|
14
|
+
end
|
15
|
+
end
|