spina-admin-conferences 1.3.3
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 +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +101 -0
- data/Rakefile +40 -0
- data/app/assets/config/spina_admin_conferences_manifest.js +4 -0
- data/app/assets/javascripts/spina/admin/conferences/application.es6 +20 -0
- data/app/assets/javascripts/spina/admin/conferences/controllers/conference_events_form_controller.es6 +175 -0
- data/app/assets/javascripts/spina/admin/conferences/controllers/presentation_attachments_form_controller.es6 +175 -0
- data/app/assets/javascripts/spina/admin/conferences/controllers/select_options_controller.es6 +216 -0
- data/app/assets/stylesheets/spina/admin/conferences/application.sass +14 -0
- data/app/controllers/spina/admin/conferences/application_controller.rb +20 -0
- data/app/controllers/spina/admin/conferences/conferences_controller.rb +148 -0
- data/app/controllers/spina/admin/conferences/delegates_controller.rb +116 -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 +124 -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/helpers/spina/admin/conferences/conferences_helper.rb +44 -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 +38 -0
- data/app/mailers/spina/admin/conferences/application_mailer.rb +13 -0
- data/app/models/spina/admin/conferences.rb +11 -0
- data/app/models/spina/admin/conferences/application_record.rb +14 -0
- data/app/models/spina/admin/conferences/conference.rb +152 -0
- data/app/models/spina/admin/conferences/date_part.rb +15 -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/email_address_part.rb +21 -0
- data/app/models/spina/admin/conferences/event.rb +120 -0
- data/app/models/spina/admin/conferences/institution.rb +46 -0
- data/app/models/spina/admin/conferences/part.rb +20 -0
- data/app/models/spina/admin/conferences/presentation.rb +143 -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/time_part.rb +53 -0
- data/app/models/spina/admin/conferences/url_part.rb +21 -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/conferences.html.haml +19 -0
- data/app/views/layouts/spina/admin/conferences/delegates.html.haml +10 -0
- data/app/views/layouts/spina/admin/conferences/dietary_requirements.html.haml +10 -0
- data/app/views/layouts/spina/admin/conferences/institutions.html.haml +17 -0
- data/app/views/layouts/spina/admin/conferences/presentation_attachment_types.html.haml +10 -0
- data/app/views/layouts/spina/admin/conferences/presentations.html.haml +10 -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.js.erb +2 -0
- data/app/views/spina/admin/conferences/conferences/_conference.html.haml +9 -0
- data/app/views/spina/admin/conferences/conferences/_event_fields.html.haml +39 -0
- data/app/views/spina/admin/conferences/conferences/_event_row.html.haml +5 -0
- data/app/views/spina/admin/conferences/conferences/_form.html.haml +23 -0
- data/app/views/spina/admin/conferences/conferences/_form_conference_details.html.haml +29 -0
- data/app/views/spina/admin/conferences/conferences/_form_delegates.html.haml +12 -0
- data/app/views/spina/admin/conferences/conferences/_form_parts.html.haml +15 -0
- data/app/views/spina/admin/conferences/conferences/_form_presentation_types.html.haml +12 -0
- data/app/views/spina/admin/conferences/conferences/_form_presentations.html.haml +12 -0
- data/app/views/spina/admin/conferences/conferences/_form_rooms.html.haml +12 -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 +18 -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 +23 -0
- data/app/views/spina/admin/conferences/delegates/_form_conferences.html.haml +14 -0
- data/app/views/spina/admin/conferences/delegates/_form_delegate_details.html.haml +38 -0
- data/app/views/spina/admin/conferences/delegates/_form_presentations.html.haml +12 -0
- data/app/views/spina/admin/conferences/delegates/edit.html.haml +1 -0
- data/app/views/spina/admin/conferences/delegates/index.html.haml +23 -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_delegates.html.haml +12 -0
- data/app/views/spina/admin/conferences/dietary_requirements/_form_dietary_requirement_details.html.haml +9 -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 +15 -0
- data/app/views/spina/admin/conferences/dietary_requirements/new.html.haml +1 -0
- data/app/views/spina/admin/conferences/events/new.js.erb +27 -0
- data/app/views/spina/admin/conferences/institutions/_form.html.haml +23 -0
- data/app/views/spina/admin/conferences/institutions/_form_delegates.html.haml +12 -0
- data/app/views/spina/admin/conferences/institutions/_form_institution_details.html.haml +35 -0
- data/app/views/spina/admin/conferences/institutions/_form_rooms.html.haml +12 -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 +16 -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 +15 -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 +23 -0
- data/app/views/spina/admin/conferences/presentation_types/_form_presentation_type_details.html.haml +20 -0
- data/app/views/spina/admin/conferences/presentation_types/_form_presentations.html.haml +12 -0
- data/app/views/spina/admin/conferences/presentation_types/_form_sessions.html.haml +12 -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 +17 -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 +27 -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/_form_presenters.html.haml +12 -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 +23 -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_presentations.html.haml +12 -0
- data/app/views/spina/admin/conferences/rooms/_form_room_details.html.haml +18 -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 +17 -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_presentations.html.haml +12 -0
- data/app/views/spina/admin/conferences/sessions/_form_session_details.html.haml +23 -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 +17 -0
- data/app/views/spina/admin/conferences/sessions/new.html.haml +1 -0
- data/app/views/spina/admin/hooks/conferences/_head.html.haml +2 -0
- data/app/views/spina/admin/hooks/conferences/_primary_navigation.html.haml +20 -0
- data/app/views/spina/admin/hooks/conferences/_settings_secondary_navigation.html.haml +4 -0
- data/app/views/spina/admin/partables/admin/conferences/date_parts/_form.html.haml +5 -0
- data/app/views/spina/admin/partables/admin/conferences/email_address_parts/_form.html.haml +5 -0
- data/app/views/spina/admin/partables/admin/conferences/time_parts/_form.html.haml +7 -0
- data/app/views/spina/admin/partables/admin/conferences/url_parts/_form.html.haml +5 -0
- data/config/initializers/assets.rb +13 -0
- data/config/initializers/types.rb +13 -0
- data/config/locales/en.yml +354 -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 +219 -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 +9 -0
- data/lib/spina/admin/conferences.rb +20 -0
- data/lib/spina/admin/conferences/engine.rb +26 -0
- data/lib/spina/admin/conferences/migration/renaming.rb +81 -0
- data/lib/spina/admin/conferences/railtie.rb +34 -0
- data/lib/spina/admin/conferences/types/interval_type.rb +29 -0
- data/lib/spina/admin/conferences/version.rb +10 -0
- data/lib/tasks/spina/admin/conferences_tasks.rake +4 -0
- metadata +561 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
= render 'form'
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
- content_for(:header_actions) do
|
|
2
|
+
= link_to new_admin_conferences_institution_path, class: %w[button button-primary], style: 'margin-right: 0' do
|
|
3
|
+
= icon 'plus'
|
|
4
|
+
= t '.new'
|
|
5
|
+
|
|
6
|
+
.well
|
|
7
|
+
.table-container
|
|
8
|
+
%table.table
|
|
9
|
+
%thead
|
|
10
|
+
%tr
|
|
11
|
+
%th= Spina::Admin::Conferences::Institution.human_attribute_name :name
|
|
12
|
+
%th= Spina::Admin::Conferences::Institution.human_attribute_name :city
|
|
13
|
+
%th
|
|
14
|
+
|
|
15
|
+
%tbody
|
|
16
|
+
= render @institutions.any? ? @institutions : 'empty_list', message: t('.no_institutions')
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
= render 'form'
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
- if @presentation_attachment_type.errors.any?
|
|
2
|
+
- content_for :notifications do
|
|
3
|
+
= render 'errors', errors: @presentation_attachment_type.errors
|
|
4
|
+
|
|
5
|
+
= form_for @presentation_attachment_type, remote: true, html: { autocomplete: 'off' } do |f|
|
|
6
|
+
%header#header
|
|
7
|
+
= render partial: 'spina/admin/shared/breadcrumbs'
|
|
8
|
+
|
|
9
|
+
#header_actions
|
|
10
|
+
%button.button.button-primary{ type: 'submit' }
|
|
11
|
+
= icon 'check'
|
|
12
|
+
= t '.save'
|
|
13
|
+
|
|
14
|
+
= link_to t('spina.cancel'), admin_conferences_presentation_attachment_types_path, class: 'button', style: 'margin-right: 0'
|
|
15
|
+
|
|
16
|
+
.well
|
|
17
|
+
.horizontal-form
|
|
18
|
+
.horizontal-form-group
|
|
19
|
+
.horizontal-form-label= Spina::Admin::Conferences::DietaryRequirement.human_attribute_name :name
|
|
20
|
+
.horizontal-form-content= f.text_field :name, placeholder: Spina::Admin::Conferences::DietaryRequirement.human_attribute_name(:name), required: true
|
|
21
|
+
|
|
22
|
+
- unless @presentation_attachment_type.new_record?
|
|
23
|
+
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_presentation_attachment_type_path(@presentation_attachment_type), method: :delete, remote: true, data: { confirm: t('.delete_confirmation', presentation_attachment_type: @presentation_attachment_type.name) }, class: %w[button button-link button-danger]
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
%tr{ data: { presentation_attachment_type_id: presentation_attachment_type.id } }
|
|
2
|
+
%td= link_to presentation_attachment_type.name, edit_admin_conferences_presentation_attachment_type_path(presentation_attachment_type)
|
|
3
|
+
%td.align-right
|
|
4
|
+
= link_to edit_admin_conferences_presentation_attachment_type_path(presentation_attachment_type), class: %w[button button-small button-link] do
|
|
5
|
+
= icon 'pencil-outline'
|
|
6
|
+
= t 'spina.edit'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
= render 'form'
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
- content_for(:header_actions) do
|
|
2
|
+
= link_to new_admin_conferences_presentation_attachment_type_path, class: %w[button button-primary], style: 'margin-right: 0' do
|
|
3
|
+
= icon 'plus'
|
|
4
|
+
= t '.new'
|
|
5
|
+
|
|
6
|
+
.well
|
|
7
|
+
.table-container
|
|
8
|
+
%table.table
|
|
9
|
+
%thead
|
|
10
|
+
%tr
|
|
11
|
+
%th= Spina::Admin::Conferences::DietaryRequirement.human_attribute_name :name
|
|
12
|
+
%th
|
|
13
|
+
|
|
14
|
+
%tbody
|
|
15
|
+
= render @presentation_attachment_types.any? ? @presentation_attachment_types : 'empty_list', message: t('.no_presentation_attachment_types')
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
= render 'form'
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
document.querySelector('[data-controller=\'presentation-attachments-form\'] .structure-form-menu ul')
|
|
2
|
+
.insertAdjacentHTML(
|
|
3
|
+
'beforeend',
|
|
4
|
+
'<%=
|
|
5
|
+
j render(partial: 'spina/admin/conferences/presentations/attachment_row', object: @attachment, as: :attachment,
|
|
6
|
+
locals: { index: index, active: active })
|
|
7
|
+
%>'
|
|
8
|
+
);
|
|
9
|
+
document.querySelector('[data-controller=\'presentation-attachments-form\'] .structure-form-content')
|
|
10
|
+
.insertAdjacentHTML(
|
|
11
|
+
'beforeend',
|
|
12
|
+
'<%=
|
|
13
|
+
fields_for @presentation do |f|
|
|
14
|
+
f.fields_for :attachments, @attachment, child_index: index do |ff|
|
|
15
|
+
j render('spina/admin/conferences/presentations/attachment_fields', f: ff, active: active)
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
%>'
|
|
19
|
+
);
|
|
20
|
+
document.querySelector('[data-controller=\'presentation-attachments-form\'] .structure-form-content')
|
|
21
|
+
.dispatchEvent(new Event('presentationAttachmentFieldsAdded'))
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
- if @presentation_type.errors.any?
|
|
2
|
+
- content_for :notifications do
|
|
3
|
+
= render 'errors', errors: @presentation_type.errors
|
|
4
|
+
|
|
5
|
+
= form_for @presentation_type, remote: true, html: { autocomplete: 'off' } do |f|
|
|
6
|
+
%header#header
|
|
7
|
+
= render partial: 'spina/admin/shared/breadcrumbs'
|
|
8
|
+
|
|
9
|
+
#header_actions
|
|
10
|
+
%button.button.button-primary{ type: 'submit' }
|
|
11
|
+
= icon 'check'
|
|
12
|
+
= t '.save'
|
|
13
|
+
|
|
14
|
+
= link_to t('spina.cancel'), admin_conferences_presentation_types_path, class: 'button', style: 'margin-right: 0'
|
|
15
|
+
|
|
16
|
+
%nav#secondary.tabs
|
|
17
|
+
%ul
|
|
18
|
+
- @tabs.each_with_index do |tab, i|
|
|
19
|
+
%li{ class: ('active' if i == 0) }
|
|
20
|
+
= link_to t(".#{tab}"), "##{tab}"
|
|
21
|
+
|
|
22
|
+
- @tabs.each do |tab|
|
|
23
|
+
= render "form_#{tab}", f: f
|
data/app/views/spina/admin/conferences/presentation_types/_form_presentation_type_details.html.haml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#presentation_type_details.tab-content.active
|
|
2
|
+
.well
|
|
3
|
+
.horizontal-form
|
|
4
|
+
.horizontal-form-group
|
|
5
|
+
.horizontal-form-label= Spina::Admin::Conferences::PresentationType.human_attribute_name :conference
|
|
6
|
+
.horizontal-form-content
|
|
7
|
+
.select-dropdown= f.collection_select :conference_id, Spina::Admin::Conferences::Conference.order(:dates).reverse_order, :id, :name, {}, required: true, data: { action: 'select-options#updateFilteredData' }
|
|
8
|
+
|
|
9
|
+
.horizontal-form-group
|
|
10
|
+
.horizontal-form-label= Spina::Admin::Conferences::PresentationType.human_attribute_name :name
|
|
11
|
+
.horizontal-form-content= f.text_field :name, placeholder: Spina::Admin::Conferences::PresentationType.human_attribute_name(:name), required: true
|
|
12
|
+
|
|
13
|
+
.horizontal-form-group
|
|
14
|
+
.horizontal-form-label
|
|
15
|
+
= Spina::Admin::Conferences::PresentationType.human_attribute_name :duration
|
|
16
|
+
%small= t '.duration_instructions'
|
|
17
|
+
.horizontal-form-content= f.number_field :minutes, value: @presentation_type.minutes, placeholder: Spina::Admin::Conferences::PresentationType.human_attribute_name(:duration), required: true, step: 5, min: 5
|
|
18
|
+
|
|
19
|
+
- unless @presentation_type.new_record?
|
|
20
|
+
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_presentation_type_path(@presentation_type), method: :delete, remote: true, data: { confirm: t('.delete_confirmation', presentation_type: @presentation_type.name) }, class: %w[button button-link button-danger]
|
|
@@ -0,0 +1,12 @@
|
|
|
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')
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
#sessions.tab-content.well
|
|
2
|
+
.table-container
|
|
3
|
+
%table.table
|
|
4
|
+
%thead
|
|
5
|
+
%tr
|
|
6
|
+
%th= Spina::Admin::Conferences::Session.human_attribute_name :name
|
|
7
|
+
%th= Spina::Admin::Conferences::Session.human_attribute_name :presentation_type
|
|
8
|
+
%th= Spina::Admin::Conferences::Session.human_attribute_name :room
|
|
9
|
+
%th
|
|
10
|
+
|
|
11
|
+
%tbody
|
|
12
|
+
= render @presentation_type.sessions.any? ? @presentation_type.sessions : 'empty_list', message: t('spina.admin.conferences.sessions.index.no_sessions')
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
%tr{ data: { presentation_type_id: presentation_type.id } }
|
|
2
|
+
%td= presentation_type.conference.name
|
|
3
|
+
%td= link_to presentation_type.name, edit_admin_conferences_presentation_type_path(presentation_type)
|
|
4
|
+
%td= time_tag presentation_type.duration, t('datetime.distance_in_words.x_minutes', count: presentation_type.minutes)
|
|
5
|
+
%td.align-right
|
|
6
|
+
= link_to edit_admin_conferences_presentation_type_path(presentation_type), class: %w[button button-small button-link] do
|
|
7
|
+
= icon 'pencil-outline'
|
|
8
|
+
= t 'spina.edit'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
= render 'form'
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
- content_for(:header_actions) do
|
|
2
|
+
= link_to new_admin_conferences_presentation_type_path, class: %w[button button-primary], style: 'margin-right: 0' do
|
|
3
|
+
= icon 'plus'
|
|
4
|
+
= t '.new'
|
|
5
|
+
|
|
6
|
+
.well
|
|
7
|
+
.table-container
|
|
8
|
+
%table.table
|
|
9
|
+
%thead
|
|
10
|
+
%tr
|
|
11
|
+
%th= Spina::Admin::Conferences::PresentationType.human_attribute_name :conference
|
|
12
|
+
%th= Spina::Admin::Conferences::PresentationType.human_attribute_name :name
|
|
13
|
+
%th= Spina::Admin::Conferences::PresentationType.human_attribute_name :duration
|
|
14
|
+
%th
|
|
15
|
+
|
|
16
|
+
%tbody
|
|
17
|
+
= render @presentation_types.any? ? @presentation_types : 'empty_list', message: t('.no_presentation_types')
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
= render 'form'
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.structure-form-pane{ class: ('active' if (local_assigns[:active] == true) || (f.index == 0)), id: "structure_form_pane_#{f.index}", data: { presentation_attachments_form: { target: 'formPane' } } }
|
|
2
|
+
.structure-form-part
|
|
3
|
+
.horizontal-form-label
|
|
4
|
+
= Spina::Admin::Conferences::PresentationAttachment.human_attribute_name :attachment_type
|
|
5
|
+
.horizontal-form-content
|
|
6
|
+
.select-dropdown
|
|
7
|
+
= f.label :attachment_type, Spina::Admin::Conferences::PresentationAttachment.human_attribute_name(:attachment_type)
|
|
8
|
+
= f.collection_select :attachment_type_id, Spina::Admin::Conferences::PresentationAttachmentType.all, :id, :name, {}, data: { action: 'presentation-attachments-form#updateType' }
|
|
9
|
+
.structure-form-part
|
|
10
|
+
.horizontal-form-label
|
|
11
|
+
= Spina::Admin::Conferences::PresentationAttachment.human_attribute_name :attachment
|
|
12
|
+
.horizontal-form-content
|
|
13
|
+
= link_to select_admin_attachments_path(f.object_name, selected_attachment_id: f.object.attachment.try(:id), hidden_field_id: "presentation_attachments_attributes_#{f.index}_attachment_id"), remote: true, class: "media_picker" do
|
|
14
|
+
.placeholder
|
|
15
|
+
%span.button.button-small.button-round
|
|
16
|
+
%i.icon.icon-dots
|
|
17
|
+
= t('spina.choose_from_library')
|
|
18
|
+
|
|
19
|
+
- if f.object.attachment && f.object.attachment.file.present?
|
|
20
|
+
.attachment= f.object.attachment.name
|
|
21
|
+
|
|
22
|
+
= f.hidden_field :attachment_id, data: { hidden_field_id: "presentation_attachments_attributes_#{f.index}_attachment_id" }
|
|
23
|
+
|
|
24
|
+
= f.hidden_field :id
|
|
25
|
+
|
|
26
|
+
= f.hidden_field :_destroy, data: { presentation_attachments_form_target: 'destroyField' }
|
|
27
|
+
= button_tag t('spina.delete'), type: 'button', class: %w[button button-mini button-link pull-right], data: { action: 'presentation-attachments-form#removeForm' }
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
%li{ class: ('active' if (local_assigns[:active] == true) || (local_assigns[:index] == 0) || local_assigns[:attachment_iteration]&.first?), data: { presentation_attachments_form: { target: 'formLink' } } }
|
|
2
|
+
= link_to attachment&.name || Spina::Admin::Conferences::PresentationAttachmentType.first&.name || '', "#structure_form_pane_#{local_assigns[:index] || local_assigns[:attachment_iteration]&.index}", data: { presentation_attachments_form_target: 'formLinkLabel' }
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
- if @presentation.errors.any?
|
|
2
|
+
- content_for :notifications do
|
|
3
|
+
= render 'errors', errors: @presentation.errors
|
|
4
|
+
|
|
5
|
+
= form_for @presentation, remote: true, html: { autocomplete: 'off' } do |f|
|
|
6
|
+
%header#header
|
|
7
|
+
= render partial: 'spina/admin/shared/breadcrumbs'
|
|
8
|
+
|
|
9
|
+
#header_actions
|
|
10
|
+
%button.button.button-primary{ type: 'submit' }
|
|
11
|
+
= icon 'check'
|
|
12
|
+
= t '.save'
|
|
13
|
+
|
|
14
|
+
= link_to t('spina.cancel'), admin_conferences_presentations_path, class: 'button', style: 'margin-right: 0'
|
|
15
|
+
|
|
16
|
+
%nav#secondary.tabs
|
|
17
|
+
%ul
|
|
18
|
+
- @tabs.each_with_index do |tab, i|
|
|
19
|
+
%li{ class: ('active' if i == 0) }
|
|
20
|
+
= link_to t(".#{tab}"), "##{tab}"
|
|
21
|
+
|
|
22
|
+
- @tabs.each do |tab|
|
|
23
|
+
= render "form_#{tab}", f: f
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
#presentation_details.tab-content.active
|
|
2
|
+
.well
|
|
3
|
+
.horizontal-form{ data: { controller: 'select-options', select_options: { record_values: @conferences } } }
|
|
4
|
+
.horizontal-form-group
|
|
5
|
+
.horizontal-form-label= Spina::Admin::Conferences::Presentation.human_attribute_name :conference
|
|
6
|
+
.horizontal-form-content
|
|
7
|
+
.select-dropdown= select_tag :admin_conferences_conference_id, options_from_collection_for_select(Spina::Admin::Conferences::Conference.all, :id, :name, (@presentation.conference.id unless @presentation.conference.blank?)), include_blank: true, required: true, data: { action: 'select-options#setVisibility', select_options_target: 'select', text_key: 'name' }
|
|
8
|
+
|
|
9
|
+
.horizontal-form-group
|
|
10
|
+
.horizontal-form-label= Spina::Admin::Conferences::Presentation.human_attribute_name :session
|
|
11
|
+
.horizontal-form-content
|
|
12
|
+
.input-group
|
|
13
|
+
.select-dropdown= select_tag :admin_conferences_presentation_type_id, options_from_collection_for_select((@presentation.conference || Spina::Admin::Conferences::Conference.first).presentation_types, :id, :name, (@presentation.presentation_type.id unless @presentation.presentation_type.blank?)), include_blank: true, required: true, data: { action: 'select-options#setVisibility', select_options_target: 'select', key_path: 'presentation_types', text_key: 'name' }
|
|
14
|
+
.select-dropdown= f.collection_select :session_id, (@presentation.presentation_type || Spina::Admin::Conferences::Conference.first).sessions, :id, :name, { include_blank: true }, required: true, data: { select_options_target: 'select', key_path: 'presentation_types:sessions', text_key: 'name' }
|
|
15
|
+
|
|
16
|
+
.horizontal-form-group
|
|
17
|
+
.horizontal-form-label= Spina::Admin::Conferences::Presentation.human_attribute_name :date
|
|
18
|
+
.horizontal-form-content
|
|
19
|
+
.select-dropdown= f.select :date, (@presentation.conference || Spina::Admin::Conferences::Conference.first).dates.collect { |date| [l(date, format: :short), date.to_formatted_s(:iso8601)] }, { include_blank: true }, required: true, data: { select_options_target: 'select', key_path: 'localized_dates', text_key: 'localization', value_key: 'date' }
|
|
20
|
+
|
|
21
|
+
.horizontal-form-group
|
|
22
|
+
.horizontal-form-label
|
|
23
|
+
= Spina::Admin::Conferences::Presentation.human_attribute_name :start_time
|
|
24
|
+
%small= t '.start_time_instructions'
|
|
25
|
+
.horizontal-form-content= f.time_field :start_time, value: (@presentation.start_time.to_formatted_s(:time) unless @presentation.start_time.blank?), placeholder: Spina::Admin::Conferences::Presentation.human_attribute_name(:start_time), required: true
|
|
26
|
+
|
|
27
|
+
.horizontal-form-group
|
|
28
|
+
.horizontal-form-label= Spina::Admin::Conferences::Presentation.human_attribute_name :title
|
|
29
|
+
.horizontal-form-content= f.text_field :title, placeholder: Spina::Admin::Conferences::Presentation.human_attribute_name(:title), required: true
|
|
30
|
+
|
|
31
|
+
.horizontal-form-group
|
|
32
|
+
.horizontal-form-label= Spina::Admin::Conferences::Presentation.human_attribute_name :abstract
|
|
33
|
+
.horizontal-form-content= render 'spina/admin/shared/rich_text_field', f: f, field: :abstract
|
|
34
|
+
|
|
35
|
+
.horizontal-form-group
|
|
36
|
+
.horizontal-form-label
|
|
37
|
+
= Spina::Admin::Conferences::Presentation.human_attribute_name :presenters
|
|
38
|
+
%small= t '.multiple_presenters_selection_instructions_html'
|
|
39
|
+
.horizontal-form-content
|
|
40
|
+
.multiple.select-dropdown= f.collection_select :presenter_ids, Spina::Admin::Conferences::Delegate.order(:last_name, :first_name), :id, :reversed_name_and_institution, {}, multiple: true, required: true
|
|
41
|
+
|
|
42
|
+
.horizontal-form-group{ class: dom_class(@presentation.attachments) }
|
|
43
|
+
.horizontal-form-content
|
|
44
|
+
.structure-form{ data: { controller: 'presentation-attachments-form', presentation_attachments_form: { active_class: 'active' } } }
|
|
45
|
+
.structure-form-menu
|
|
46
|
+
%label= Spina::Admin::Conferences::Presentation.human_attribute_name :attachments
|
|
47
|
+
%ul= render partial: 'attachment_row', collection: f.object.attachments, as: :attachment
|
|
48
|
+
= link_to icon('plus'), @presentation.new_record? ? new_admin_conferences_presentation_attachment_path : new_admin_conferences_presentation_presentation_attachment_path(@presentation, index: @presentation.attachments.size), remote: true, class: %w[button button-link icon], data: { presentation_attachments_form_target: 'addFormLink', disable_with: '' }
|
|
49
|
+
|
|
50
|
+
.structure-form-content{ data: { action: 'presentationAttachmentFieldsAdded->presentation-attachments-form#updateURL' } }
|
|
51
|
+
= f.fields_for :attachments do |attachment_fields|
|
|
52
|
+
= render 'attachment_fields', f: attachment_fields
|
|
53
|
+
|
|
54
|
+
- unless @presentation.new_record?
|
|
55
|
+
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_presentation_path(@presentation), method: :delete, remote: true, data: { confirm: t('.delete_confirmation', presentation: @presentation.title) }, class: %w[button button-link button-danger]
|
|
@@ -0,0 +1,12 @@
|
|
|
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')
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
%tr{ data: { presentation_id: presentation.id } }
|
|
2
|
+
%td= presentation.conference.name
|
|
3
|
+
%td= link_to presentation.title, edit_admin_conferences_presentation_path(presentation)
|
|
4
|
+
%td
|
|
5
|
+
%ul
|
|
6
|
+
- presentation.presenters.each do |presenter|
|
|
7
|
+
%li= link_to presenter.full_name, edit_admin_conferences_delegate_path(presenter)
|
|
8
|
+
%td.align-right
|
|
9
|
+
= link_to edit_admin_conferences_presentation_path(presentation), class: %w[button button-small button-link] do
|
|
10
|
+
= icon 'pencil-outline'
|
|
11
|
+
= t 'spina.edit'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
= render 'form'
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
- content_for(:header_actions) do
|
|
2
|
+
%label.button{ for: 'file' }
|
|
3
|
+
= icon('cog')
|
|
4
|
+
= t '.import'
|
|
5
|
+
= form_with url: import_admin_conferences_presentations_path do |f|
|
|
6
|
+
= f.submit style: 'display: none'
|
|
7
|
+
= f.file_field :file, multiple: false, style: 'display: none'
|
|
8
|
+
= link_to new_admin_conferences_presentation_path, class: %w[button button-primary], style: 'margin-right: 0' do
|
|
9
|
+
= icon 'plus'
|
|
10
|
+
= t '.new'
|
|
11
|
+
|
|
12
|
+
.well
|
|
13
|
+
.table-container
|
|
14
|
+
%table.table
|
|
15
|
+
%thead
|
|
16
|
+
%tr
|
|
17
|
+
%th= Spina::Admin::Conferences::Presentation.human_attribute_name :conference
|
|
18
|
+
%th= Spina::Admin::Conferences::Presentation.human_attribute_name :title
|
|
19
|
+
%th= Spina::Admin::Conferences::Presentation.human_attribute_name :presenters
|
|
20
|
+
%th
|
|
21
|
+
|
|
22
|
+
%tbody
|
|
23
|
+
= render @presentations.any? ? @presentations : 'empty_list', message: t('.no_presentations')
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
= render 'form'
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
- if @room.errors.any?
|
|
2
|
+
- content_for :notifications do
|
|
3
|
+
= render 'errors', errors: @room.errors
|
|
4
|
+
|
|
5
|
+
= form_for @room, remote: true, html: { autocomplete: 'off' } do |f|
|
|
6
|
+
%header#header
|
|
7
|
+
= render partial: 'spina/admin/shared/breadcrumbs'
|
|
8
|
+
|
|
9
|
+
#header_actions
|
|
10
|
+
%button.button.button-primary{ type: 'submit' }
|
|
11
|
+
= icon 'check'
|
|
12
|
+
= t '.save'
|
|
13
|
+
|
|
14
|
+
= link_to t('spina.cancel'), admin_conferences_rooms_path, class: 'button', style: 'margin-right: 0'
|
|
15
|
+
|
|
16
|
+
%nav#secondary.tabs
|
|
17
|
+
%ul
|
|
18
|
+
- @tabs.each_with_index do |tab, i|
|
|
19
|
+
%li{ class: ('active'if i == 0)}
|
|
20
|
+
= link_to t(".#{tab}"), "##{tab}"
|
|
21
|
+
|
|
22
|
+
- @tabs.each do |tab|
|
|
23
|
+
= render "form_#{tab}", f: f
|
|
@@ -0,0 +1,12 @@
|
|
|
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 @room.presentations.any? ? @room.presentations : 'empty_list', message: t('spina.admin.conferences.presentations.index.no_presentations')
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#room_details.tab-content.active
|
|
2
|
+
.well
|
|
3
|
+
.horizontal-form
|
|
4
|
+
.horizontal-form-group
|
|
5
|
+
.horizontal-form-label= Spina::Admin::Conferences::Room.human_attribute_name :institution
|
|
6
|
+
.horizontal-form-content
|
|
7
|
+
.select-dropdown= f.collection_select :institution_id, Spina::Admin::Conferences::Institution.all, :id, :name, {}, required: true
|
|
8
|
+
|
|
9
|
+
.horizontal-form-group
|
|
10
|
+
.horizontal-form-label= Spina::Admin::Conferences::Room.human_attribute_name :building
|
|
11
|
+
.horizontal-form-content= f.text_field :building, placeholder: Spina::Admin::Conferences::Room.human_attribute_name(:building), required: true
|
|
12
|
+
|
|
13
|
+
.horizontal-form-group
|
|
14
|
+
.horizontal-form-label= Spina::Admin::Conferences::Room.human_attribute_name :number
|
|
15
|
+
.horizontal-form-content= f.text_field :number, placeholder: Spina::Admin::Conferences::Room.human_attribute_name(:number), required: true
|
|
16
|
+
|
|
17
|
+
- unless @room.new_record?
|
|
18
|
+
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_room_path(@room), method: :delete, remote: true, data: { confirm: t('.delete_confirmation', room: @room.name) }, class: %w[button button-link button-danger]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
%tr{ data: { room_id: room.id } }
|
|
2
|
+
%td= room.institution.name
|
|
3
|
+
%td= room.building
|
|
4
|
+
%td= link_to room.number, edit_admin_conferences_room_path(room)
|
|
5
|
+
%td.align-right
|
|
6
|
+
= link_to edit_admin_conferences_room_path(room), class: %w[button button-small button-link] do
|
|
7
|
+
= icon 'pencil-outline'
|
|
8
|
+
= t 'spina.edit'
|