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,11 @@
|
|
1
|
+
.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= render delegates.presence || 'empty_list', message: t('.no_delegates')
|
@@ -0,0 +1,11 @@
|
|
1
|
+
.notification.notification-danger.animated.fadeInRight
|
2
|
+
= icon 'exclamation'
|
3
|
+
.notification-message
|
4
|
+
= t 'spina.notifications.alert'
|
5
|
+
%small
|
6
|
+
- errors.full_messages.each do |message|
|
7
|
+
= message
|
8
|
+
- unless errors.full_messages[-1] == message
|
9
|
+
%br
|
10
|
+
= link_to '#', data: { close_notification: true } do
|
11
|
+
= icon('cross')
|
@@ -0,0 +1 @@
|
|
1
|
+
= turbo_stream.append('notifications') { render partial: 'errors', formats: :html, locals: { errors: errors } }
|
@@ -0,0 +1,10 @@
|
|
1
|
+
.well
|
2
|
+
.table-container
|
3
|
+
%table.table
|
4
|
+
%thead
|
5
|
+
%tr
|
6
|
+
%th= Spina::Admin::Conferences::Institution.human_attribute_name :name
|
7
|
+
%th= Spina::Admin::Conferences::Institution.human_attribute_name :city
|
8
|
+
%th
|
9
|
+
|
10
|
+
%tbody= render institutions.presence || 'empty_list', message: t('.no_institutions')
|
@@ -0,0 +1,10 @@
|
|
1
|
+
.well
|
2
|
+
.table-container
|
3
|
+
%table.table
|
4
|
+
%thead
|
5
|
+
%tr
|
6
|
+
%th= Spina::Admin::Conferences::DietaryRequirement.human_attribute_name :name
|
7
|
+
%th
|
8
|
+
|
9
|
+
%tbody
|
10
|
+
= render presentation_attachment_types.presence || 'empty_list', message: t('.no_presentation_attachment_types')
|
@@ -0,0 +1,11 @@
|
|
1
|
+
.well
|
2
|
+
.table-container
|
3
|
+
%table.table
|
4
|
+
%thead
|
5
|
+
%tr
|
6
|
+
%th= Spina::Admin::Conferences::PresentationType.human_attribute_name :conference
|
7
|
+
%th= Spina::Admin::Conferences::PresentationType.human_attribute_name :name
|
8
|
+
%th= Spina::Admin::Conferences::PresentationType.human_attribute_name :duration
|
9
|
+
%th
|
10
|
+
|
11
|
+
%tbody= render presentation_types.presence || 'empty_list', message: t('.no_presentation_types')
|
@@ -0,0 +1,11 @@
|
|
1
|
+
.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= render presentations.presence || 'empty_list', message: t('.no_presentations')
|
@@ -0,0 +1,11 @@
|
|
1
|
+
.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= render rooms.presence || 'empty_list', message: t('.no_rooms')
|
@@ -0,0 +1,11 @@
|
|
1
|
+
.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= render sessions.presence || 'empty_list', message: t('.no_sessions')
|
@@ -0,0 +1,9 @@
|
|
1
|
+
%tr{ data: { conference_id: conference.id } }
|
2
|
+
%td= link_to conference.name, edit_admin_conferences_conference_path(conference)
|
3
|
+
%td= conference.year
|
4
|
+
%td= time_tag conference.start_date, l(conference.start_date, format: :long)
|
5
|
+
%td= time_tag conference.finish_date, l(conference.finish_date, format: :long)
|
6
|
+
%td.align-right
|
7
|
+
= link_to edit_admin_conferences_conference_path(conference), class: %w[button button-small button-link] do
|
8
|
+
= icon 'pencil-outline'
|
9
|
+
= t 'spina.edit'
|
@@ -0,0 +1,31 @@
|
|
1
|
+
.structure-form-pane{ class: ('active' if (local_assigns[:active] == true) || (f.index == 0)), id: "structure_form_pane_#{f.index}",
|
2
|
+
data: { 'spina--admin--conferences--conference_events_form': { target: 'formPane' } } }
|
3
|
+
.structure-form-part
|
4
|
+
.page-form-label= Spina::Admin::Conferences::Event.human_attribute_name :name
|
5
|
+
.page-form-control= f.text_field :name, placeholder: Spina::Admin::Conferences::Event.human_attribute_name(:name), required: true
|
6
|
+
|
7
|
+
.structure-form-part
|
8
|
+
.page-form-label= Spina::Admin::Conferences::Event.human_attribute_name :start_datetime
|
9
|
+
.page-form-control= f.datetime_field :start_datetime,
|
10
|
+
placeholder: Spina::Admin::Conferences::Event.human_attribute_name(:start_datetime), required: true
|
11
|
+
|
12
|
+
.structure-form-part
|
13
|
+
.page-form-label= Spina::Admin::Conferences::Event.human_attribute_name :finish_datetime
|
14
|
+
.page-form-control= f.datetime_field :finish_datetime,
|
15
|
+
placeholder: Spina::Admin::Conferences::Event.human_attribute_name(:finish_datetime), required: true
|
16
|
+
|
17
|
+
.structure-form-part
|
18
|
+
.page-form-label= Spina::Admin::Conferences::Event.human_attribute_name :location
|
19
|
+
.page-form-control= f.text_field :location, placeholder: Spina::Admin::Conferences::Event.human_attribute_name(:location),
|
20
|
+
required: true
|
21
|
+
|
22
|
+
.structure-form-part
|
23
|
+
.page-form-label= Spina::Admin::Conferences::Event.human_attribute_name :description
|
24
|
+
.page-form-content
|
25
|
+
.page-form-rich-text= f.rich_text_area :description
|
26
|
+
|
27
|
+
= f.hidden_field :id
|
28
|
+
|
29
|
+
= f.hidden_field :_destroy, data: { 'spina--admin--conferences--conference_events_form_target': 'destroyField' }
|
30
|
+
= button_tag t('spina.delete'), type: 'button', class: %w[button button-mini button-link pull-right],
|
31
|
+
data: { action: 'spina--admin--conferences--conference-events-form#removeForm' }
|
@@ -0,0 +1,5 @@
|
|
1
|
+
%li{ class: ('active' if (local_assigns[:active] == true) || (local_assigns[:index] == 0) || local_assigns[:event_iteration]&.first?),
|
2
|
+
data: { 'spina--admin--conferences--conference_events_form': { target: 'formLink' } } }
|
3
|
+
= link_to event&.name || '',
|
4
|
+
"#structure_form_pane_#{local_assigns[:index] || local_assigns[:event_iteration]&.index}",
|
5
|
+
data: { 'spina--admin--conferences--conference_events_form_target': 'formLinkLabel' }
|
@@ -0,0 +1,27 @@
|
|
1
|
+
- if @conference.errors.any?
|
2
|
+
- content_for :notifications do
|
3
|
+
= render 'errors', errors: @conference.errors
|
4
|
+
|
5
|
+
= form_for [:admin_conferences, @conference], 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_conferences_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
|
+
#conference_details.tab-content.active= render 'form_conference_details', f: f
|
23
|
+
#parts.tab-content= render 'form_parts', f: f
|
24
|
+
#rooms.tab-content= render partial: 'rooms', object: @conference.rooms
|
25
|
+
#presentation_types.tab-content= render partial: 'presentation_types', object: @conference.presentation_types
|
26
|
+
#delegates.tab-content= render partial: 'delegates', object: @conference.delegates
|
27
|
+
#presentations.tab-content= render partial: 'presentations', object: @conference.presentations
|
@@ -0,0 +1,27 @@
|
|
1
|
+
.page-form{ data: { controller: 'spina--admin--conferences--select-options', 'spina--admin--conferences--select_options': { config_value: '{ "admin_conferences_conference_institution_id": { "value": "id", "text": "name" }, "admin_conferences_conference_room_ids": { "trigger": "admin_conferences_conference_institution_id", "key": "rooms", "value": "id", "text": "name" } }', record_value: @institutions } } }
|
2
|
+
.page-form-group
|
3
|
+
.page-form-label= Spina::Admin::Conferences::Conference.human_attribute_name :name
|
4
|
+
.page-form-control= f.text_field :name, placeholder: Spina::Admin::Conferences::Conference.human_attribute_name(:name), required: true, class: 'input-large'
|
5
|
+
|
6
|
+
.page-form-group
|
7
|
+
.page-form-label= Spina::Admin::Conferences::Conference.human_attribute_name :start_date
|
8
|
+
.page-form-control= f.date_field :start_date, value: (@conference.start_date.strftime("%Y-%m-%d") if @conference.start_date.present?), placeholder: Spina::Admin::Conferences::Conference.human_attribute_name(:start_date), required: true
|
9
|
+
|
10
|
+
.page-form-group
|
11
|
+
.page-form-label= Spina::Admin::Conferences::Conference.human_attribute_name :finish_date
|
12
|
+
.page-form-control= f.date_field :finish_date, value: (@conference.finish_date.strftime("%Y-%m-%d") if @conference.finish_date.present?), placeholder: Spina::Admin::Conferences::Conference.human_attribute_name(:finish_date), required: true
|
13
|
+
|
14
|
+
.page-form-group{ class: dom_class(@conference.events) }
|
15
|
+
.page-form-label= Spina::Admin::Conferences::Conference.human_attribute_name :events
|
16
|
+
.page-form-control
|
17
|
+
.structure-form{ data: { controller: 'spina--admin--conferences--conference-events-form', 'spina--admin--conferences--conference_events_form': { active_class: 'active' } } }
|
18
|
+
.structure-form-menu
|
19
|
+
%ul= render partial: 'event_row', collection: f.object.events, as: :event
|
20
|
+
= link_to icon('plus'), @conference.new_record? ? new_admin_conferences_event_path : new_admin_conferences_conference_event_path(@conference, index: @conference.events.size), remote: true, class: %w[button button-link icon], data: { 'spina--admin--conferences--conference_events_form_target': 'addFormLink', disable_with: '' }
|
21
|
+
|
22
|
+
.structure-form-content{ data: { action: 'conferenceEventFieldsAdded->spina--admin--conferences--conference-events-form#updateURL' } }
|
23
|
+
= f.fields_for :events do |event_fields|
|
24
|
+
= render 'event_fields', f: event_fields
|
25
|
+
|
26
|
+
- unless @conference.new_record?
|
27
|
+
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_conference_path(@conference), method: :delete, data: { confirm: t('.delete_confirmation', name: @conference.name) }, class: %w[button button-link button-danger]
|
@@ -0,0 +1,8 @@
|
|
1
|
+
.page-form
|
2
|
+
= f.fields_for :"#{@locale}_content", @parts do |ff|
|
3
|
+
= ff.hidden_field :type, value: ff.object.class.name
|
4
|
+
= ff.hidden_field :title
|
5
|
+
= ff.hidden_field :name
|
6
|
+
|
7
|
+
.page-form-group.page-part{ data: { name: ff.object.name } }
|
8
|
+
= render "spina/admin/parts/#{parts_partial_namespace(ff.object.class.name)}/form", f: ff
|
@@ -0,0 +1,19 @@
|
|
1
|
+
.horizontal-form-content
|
2
|
+
.structure-form
|
3
|
+
.structure-form-menu
|
4
|
+
%label= f.object.title
|
5
|
+
|
6
|
+
%ul
|
7
|
+
- f.object.partable.structure_items.order(:position).each_with_index do |structure_item, index|
|
8
|
+
%li{ class: ('active' if index == 0), data: { structure_item_id: index } }
|
9
|
+
= link_to "#structure_form_pane_#{index}" do
|
10
|
+
%i.icon.icon-bars.sortable-handle
|
11
|
+
= structure_item.structure_parts.first.try(:structure_partable).try(:content)
|
12
|
+
|
13
|
+
= f.fields_for :partable do |ff|
|
14
|
+
= new_custom_structure_item ff, f.object
|
15
|
+
|
16
|
+
.structure-form-content
|
17
|
+
= f.fields_for :partable do |ff|
|
18
|
+
= ff.fields_for :structure_items, ff.object.structure_items.order(:position) do |fff|
|
19
|
+
= render 'form_structure_item', f: fff, structure: f.object
|
@@ -0,0 +1,13 @@
|
|
1
|
+
.structure-form-pane{ class: ('active' if f.options[:child_index] == 0), id: "structure_form_pane_#{f.index}" }
|
2
|
+
= f.fields_for :structure_parts, build_custom_structure_parts(structure.try(:name), f.object) do |ff|
|
3
|
+
.structure-form-part
|
4
|
+
= render "spina/admin/partables/#{partable_type_partial_namespace(ff.object.structure_partable_type)}/form", f: ff
|
5
|
+
|
6
|
+
= ff.hidden_field :id
|
7
|
+
= ff.hidden_field :title
|
8
|
+
= ff.hidden_field :structure_partable_type
|
9
|
+
= ff.hidden_field :name
|
10
|
+
|
11
|
+
= f.hidden_field :position, placeholder: "Position", class: "structure_form_pane_#{f.index}_position"
|
12
|
+
= f.hidden_field :_destroy
|
13
|
+
= link_to t('spina.delete'), '#', class: 'remove_structure_item_fields button button-mini button-link pull-right'
|
@@ -0,0 +1 @@
|
|
1
|
+
= render 'form'
|
@@ -0,0 +1,7 @@
|
|
1
|
+
- content_for(:header_actions) do
|
2
|
+
= link_to new_admin_conferences_conference_path, class: %w[button button-primary], style: 'margin-right: 0' do
|
3
|
+
= icon 'plus'
|
4
|
+
= t '.new'
|
5
|
+
|
6
|
+
= render partial: 'conferences', object: @conferences
|
7
|
+
= link_to_next_page @conferences, 'Next'
|
@@ -0,0 +1 @@
|
|
1
|
+
= render 'form'
|
@@ -0,0 +1,13 @@
|
|
1
|
+
%tr{ data: { delegate_id: delegate.id } }
|
2
|
+
%td= link_to delegate.full_name, edit_admin_conferences_delegate_path(delegate)
|
3
|
+
%td
|
4
|
+
= delegate.email_address
|
5
|
+
- unless delegate.email_address.blank?
|
6
|
+
= mail_to delegate.email_address, class: %w[button button-small button-link] do
|
7
|
+
= icon 'mail'
|
8
|
+
= t 'spina.email'
|
9
|
+
%td= delegate.institution.name
|
10
|
+
%td.align-right
|
11
|
+
= link_to edit_admin_conferences_delegate_path(delegate), class: %w[button button-small button-link] do
|
12
|
+
= icon 'pencil-outline'
|
13
|
+
= t 'spina.edit'
|
@@ -0,0 +1,24 @@
|
|
1
|
+
- if @delegate.errors.any?
|
2
|
+
- content_for :notifications do
|
3
|
+
= render 'errors', errors: @delegate.errors
|
4
|
+
|
5
|
+
= form_for [:admin_conferences, @delegate], 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_delegates_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
|
+
#delegate_details.tab-content.active= render 'form_delegate_details', f: f
|
23
|
+
#conferences.tab-content= render partial: 'conferences', object: @delegate.conferences
|
24
|
+
#presentations.tab-content= render partial: 'presentations', object: @delegate.presentations
|
@@ -0,0 +1,53 @@
|
|
1
|
+
.page-form
|
2
|
+
.page-form-group
|
3
|
+
.page-form-label= Spina::Admin::Conferences::Delegate.human_attribute_name :name
|
4
|
+
.page-form-control
|
5
|
+
.input-group
|
6
|
+
= f.text_field :first_name, placeholder: Spina::Admin::Conferences::Delegate.human_attribute_name(:first_name), required: true, class: 'input-large'
|
7
|
+
= f.text_field :last_name, placeholder: Spina::Admin::Conferences::Delegate.human_attribute_name(:last_name), required: true, class: 'input-large'
|
8
|
+
|
9
|
+
.page-form-group
|
10
|
+
.page-form-label= Spina::Admin::Conferences::Delegate.human_attribute_name :institution
|
11
|
+
.page-form-control
|
12
|
+
.select-dropdown= f.collection_select :institution_id, Spina::Admin::Conferences::Institution.all, :id, :name, {}, required: true
|
13
|
+
|
14
|
+
.page-form-group
|
15
|
+
.page-form-label= Spina::Admin::Conferences::Delegate.human_attribute_name :email_address
|
16
|
+
.page-form-control= f.email_field :email_address, placeholder: Spina::Admin::Conferences::Delegate.human_attribute_name(:email_address), required: true
|
17
|
+
|
18
|
+
.page-form-group
|
19
|
+
.page-form-label= Spina::Admin::Conferences::Delegate.human_attribute_name :url
|
20
|
+
.page-form-control= f.url_field :url, placeholder: Spina::Admin::Conferences::Delegate.human_attribute_name(:url)
|
21
|
+
|
22
|
+
.page-form-group
|
23
|
+
.page-form-label
|
24
|
+
= Spina::Admin::Conferences::Delegate.human_attribute_name :dietary_requirements
|
25
|
+
.page-form-content
|
26
|
+
.well{ style: 'margin: 0' }
|
27
|
+
.table-container
|
28
|
+
%table.table{ style: 'margin: 0' }
|
29
|
+
%tbody
|
30
|
+
= f.collection_check_boxes :dietary_requirement_ids, Spina::Admin::Conferences::DietaryRequirement.all, :id, :name do |builder|
|
31
|
+
%tr
|
32
|
+
%td{ style: "padding-left: 16px" }
|
33
|
+
.form-checkbox
|
34
|
+
= builder.check_box
|
35
|
+
= builder.label
|
36
|
+
|
37
|
+
.page-form-group
|
38
|
+
.page-form-label
|
39
|
+
= Spina::Admin::Conferences::Delegate.human_attribute_name :conferences
|
40
|
+
.page-form-content
|
41
|
+
.well{ style: 'margin: 0' }
|
42
|
+
.table-container
|
43
|
+
%table.table{ style: 'margin: 0' }
|
44
|
+
%tbody
|
45
|
+
= f.collection_check_boxes :conference_ids, Spina::Admin::Conferences::Conference.all, :id, :name, {} do |builder|
|
46
|
+
%tr
|
47
|
+
%td{ style: "padding-left: 16px" }
|
48
|
+
.form-checkbox
|
49
|
+
= builder.check_box
|
50
|
+
= builder.label
|
51
|
+
|
52
|
+
- unless @delegate.new_record?
|
53
|
+
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_delegate_path(@delegate), method: :delete, data: { confirm: t('.delete_confirmation', delegate: @delegate.full_name) }, class: %w[button button-link button-danger]
|
@@ -0,0 +1 @@
|
|
1
|
+
= render 'form'
|
@@ -0,0 +1,13 @@
|
|
1
|
+
- content_for(:header_actions) do
|
2
|
+
%label.button{ for: 'file' }
|
3
|
+
= icon 'cog'
|
4
|
+
= t '.import'
|
5
|
+
= form_with url: import_admin_conferences_delegates_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_delegate_path, class: %w[button button-primary], style: 'margin-right: 0' do
|
9
|
+
= icon 'plus'
|
10
|
+
= t '.new'
|
11
|
+
|
12
|
+
= render partial: 'delegates', object: @delegates
|
13
|
+
= link_to_next_page @delegates, 'Next'
|
@@ -0,0 +1 @@
|
|
1
|
+
= render 'form'
|
@@ -0,0 +1,6 @@
|
|
1
|
+
%tr{ data: { dietary_requirement_id: dietary_requirement.id } }
|
2
|
+
%td= link_to dietary_requirement.name, edit_admin_conferences_dietary_requirement_path(dietary_requirement)
|
3
|
+
%td.align-right
|
4
|
+
= link_to edit_admin_conferences_dietary_requirement_path(dietary_requirement), class: %w[button button-small button-link] do
|
5
|
+
= icon 'pencil-outline'
|
6
|
+
= t 'spina.edit'
|
@@ -0,0 +1,23 @@
|
|
1
|
+
- if @dietary_requirement.errors.any?
|
2
|
+
- content_for :notifications do
|
3
|
+
= render 'errors', errors: @dietary_requirement.errors
|
4
|
+
|
5
|
+
= form_for [:admin_conferences, @dietary_requirement], 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_dietary_requirements_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
|
+
#dietary_requirement_details.tab-content.active= render 'form_dietary_requirement_details', f: f
|
23
|
+
#delegates.tab-content= render partial: 'delegates', object: @dietary_requirement.delegates
|
@@ -0,0 +1,8 @@
|
|
1
|
+
%div{ style: 'margin-top: 40px' }
|
2
|
+
.horizontal-form
|
3
|
+
.horizontal-form-group
|
4
|
+
.horizontal-form-label= Spina::Admin::Conferences::DietaryRequirement.human_attribute_name :name
|
5
|
+
.horizontal-form-content= f.text_field :name, placeholder: Spina::Admin::Conferences::DietaryRequirement.human_attribute_name(:name), required: true
|
6
|
+
|
7
|
+
- unless @dietary_requirement.new_record?
|
8
|
+
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_dietary_requirement_path(@dietary_requirement), method: :delete, data: { confirm: t('.delete_confirmation', dietary_requirement: @dietary_requirement.name) }, class: %w[button button-link button-danger]
|
@@ -0,0 +1 @@
|
|
1
|
+
= render 'form'
|
@@ -0,0 +1,7 @@
|
|
1
|
+
- content_for(:header_actions) do
|
2
|
+
= link_to new_admin_conferences_dietary_requirement_path, class: %w[button button-primary], style: 'margin-right: 0' do
|
3
|
+
= icon 'plus'
|
4
|
+
= t '.new'
|
5
|
+
|
6
|
+
= render partial: 'dietary_requirements', object: @dietary_requirements
|
7
|
+
= link_to_next_page @dietary_requirements, 'Next'
|
@@ -0,0 +1 @@
|
|
1
|
+
= render 'form'
|
@@ -0,0 +1,21 @@
|
|
1
|
+
document.querySelector('[data-controller=\'spina--admin--conferences--conference-events-form\'] .structure-form-menu ul')
|
2
|
+
.insertAdjacentHTML(
|
3
|
+
'beforeend',
|
4
|
+
'<%=
|
5
|
+
j render(partial: 'spina/admin/conferences/conferences/event_row', object: @event, as: :event,
|
6
|
+
locals: { index: index, active: active })
|
7
|
+
%>'
|
8
|
+
);
|
9
|
+
document.querySelector('[data-controller=\'spina--admin--conferences--conference-events-form\'] .structure-form-content')
|
10
|
+
.insertAdjacentHTML(
|
11
|
+
'beforeend',
|
12
|
+
'<%=
|
13
|
+
fields_for @conference do |f|
|
14
|
+
f.fields_for :events, @event, child_index: index do |ff|
|
15
|
+
j render('spina/admin/conferences/conferences/event_fields', f: ff, active: active)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
%>'
|
19
|
+
);
|
20
|
+
document.querySelector('[data-controller=\'spina--admin--conferences--conference-events-form\'] .structure-form-content')
|
21
|
+
.dispatchEvent(new Event('conferenceEventFieldsAdded'))
|
@@ -0,0 +1,24 @@
|
|
1
|
+
- if @institution.errors.any?
|
2
|
+
- content_for :notifications do
|
3
|
+
= render 'errors', errors: @institution.errors
|
4
|
+
|
5
|
+
= form_for [:admin_conferences, @institution], 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_institutions_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
|
+
#institution_details.tab-content.active= render 'form_institution_details', f: f
|
23
|
+
#rooms.tab-content= render partial: 'rooms', object: @institution.rooms
|
24
|
+
#delegates.tab-content= render partial: 'delegates', object: @institution.delegates
|
@@ -0,0 +1,29 @@
|
|
1
|
+
.page-form
|
2
|
+
.page-form-group
|
3
|
+
.page-form-label= Spina::Admin::Conferences::Institution.human_attribute_name :name
|
4
|
+
.page-form-control= f.text_field :name, placeholder: Spina::Admin::Conferences::Institution.human_attribute_name(:name), required: true, class: 'input-large'
|
5
|
+
|
6
|
+
.page-form-group
|
7
|
+
.page-form-label= Spina::Admin::Conferences::Institution.human_attribute_name :city
|
8
|
+
.page-form-control= f.text_field :city, placeholder: Spina::Admin::Conferences::Institution.human_attribute_name(:city), required: true
|
9
|
+
|
10
|
+
.page-form-group
|
11
|
+
.page-form-label= Spina::Admin::Conferences::Institution.human_attribute_name :logo
|
12
|
+
.page-form-content{ data: { controller: 'image-form' } }
|
13
|
+
.page-form-media-picker
|
14
|
+
%div{ style: 'width: 100%' }
|
15
|
+
= link_to admin_media_picker_path(selected_ids: [f.object.logo_id], input: "media_picker_#{f.object.object_id}", mode: 'single'), remote: true, class: 'image', data: { target: 'image-form.image' } do
|
16
|
+
.page-form-media-picker-placeholder= t 'spina.images.choose_image'
|
17
|
+
%div{ id: "media_picker_#{f.object.object_id}" }
|
18
|
+
= f.hidden_field :logo_id, data: { target: 'image-form.imageId' }
|
19
|
+
= f.hidden_field :logo_signed_blob_id, value: f.object.logo&.file&.signed_id, data: {target: 'image-form.signedBlobId'}
|
20
|
+
= f.hidden_field :logo_filename, value: f.object.logo&.file&.filename, data: {target: 'image-form.filename'}
|
21
|
+
%div{ style: 'width: 200px; height: 150px; overflow: hidden' }
|
22
|
+
- if f.object.logo.present?
|
23
|
+
= image_tag main_app.url_for(f.object.logo.variant(resize: '400x300^', crop: '400x300+0+0')), width: 200, height: 150
|
24
|
+
|
25
|
+
= button_tag type: :default, class: 'button button-small button-default', data: { action: 'image-form#remove' } do
|
26
|
+
%i.icon.icon-cross{ style: 'margin: 0; font-size: 10px' }
|
27
|
+
|
28
|
+
- unless @institution.new_record?
|
29
|
+
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_institution_path(@institution), method: :delete, data: { confirm: t('.delete_confirmation', institution: @institution.name) }, class: %w[button button-link button-danger]
|
@@ -0,0 +1,7 @@
|
|
1
|
+
%tr{ data: { institution_id: institution.id } }
|
2
|
+
%td= link_to institution.name, edit_admin_conferences_institution_path(institution)
|
3
|
+
%td= institution.city
|
4
|
+
%td.align-right
|
5
|
+
= link_to edit_admin_conferences_institution_path(institution), class: %w[button button-small button-link] do
|
6
|
+
= icon 'pencil-outline'
|
7
|
+
= t 'spina.edit'
|
@@ -0,0 +1 @@
|
|
1
|
+
= render 'form'
|
@@ -0,0 +1,7 @@
|
|
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
|
+
= render partial: 'institutions', object: @institutions
|
7
|
+
= link_to_next_page @institutions, 'Next'
|
@@ -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 [:admin_conferences, @presentation_attachment_type], 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
|
+
%div{ style: 'margin-top: 40px' }
|
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, 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,7 @@
|
|
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
|
+
= render partial: 'presentation_attachment_types', object: @presentation_attachment_types
|
7
|
+
= link_to_next_page @presentation_attachment_types, 'Next'
|
@@ -0,0 +1 @@
|
|
1
|
+
= render 'form'
|