spina-admin-conferences 1.3.7 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +9 -10
- data/app/assets/config/spina_admin_conferences_manifest.js +2 -2
- data/app/assets/javascripts/{spina/admin/conferences/controllers/conference_events_form_controller.es6 → controllers/spina/admin/conferences/conference_events_form_controller.js} +3 -4
- data/app/assets/javascripts/{spina/admin/conferences/controllers/presentation_attachments_form_controller.es6 → controllers/spina/admin/conferences/presentation_attachments_form_controller.js} +3 -4
- data/app/assets/javascripts/{spina/admin/conferences/controllers/select_options_controller.es6 → controllers/spina/admin/conferences/select_options_controller.js} +8 -9
- 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 -14
- data/app/controllers/spina/admin/conferences/application_controller.rb +6 -3
- data/app/controllers/spina/admin/conferences/conferences_controller.rb +21 -30
- data/app/controllers/spina/admin/conferences/delegates_controller.rb +5 -7
- data/app/controllers/spina/admin/conferences/dietary_requirements_controller.rb +4 -4
- data/app/controllers/spina/admin/conferences/institutions_controller.rb +4 -4
- data/app/controllers/spina/admin/conferences/presentation_attachment_types_controller.rb +4 -4
- data/app/controllers/spina/admin/conferences/presentation_types_controller.rb +4 -4
- data/app/controllers/spina/admin/conferences/presentations_controller.rb +7 -8
- data/app/controllers/spina/admin/conferences/rooms_controller.rb +4 -4
- data/app/controllers/spina/admin/conferences/sessions_controller.rb +4 -4
- data/app/jobs/spina/admin/conferences/presentation_import_job.rb +2 -3
- data/app/models/spina/admin/conferences/conference.rb +4 -7
- data/app/models/spina/admin/conferences/event.rb +21 -58
- data/app/models/spina/admin/conferences/presentation.rb +15 -33
- 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/views/layouts/spina/admin/conferences/application.html.haml +6 -0
- data/app/views/layouts/spina/admin/conferences/conferences.html.haml +2 -4
- data/app/views/layouts/spina/admin/conferences/delegates.html.haml +2 -4
- data/app/views/layouts/spina/admin/conferences/dietary_requirements.html.haml +2 -4
- data/app/views/layouts/spina/admin/conferences/institutions.html.haml +2 -4
- data/app/views/layouts/spina/admin/conferences/presentation_attachment_types.html.haml +2 -4
- data/app/views/layouts/spina/admin/conferences/presentations.html.haml +2 -4
- data/app/views/spina/admin/conferences/{delegates/_form_conferences.html.haml → application/_conferences.html.haml} +2 -4
- data/app/views/spina/admin/conferences/{conferences/_form_delegates.html.haml → application/_delegates.html.haml} +2 -3
- data/app/views/spina/admin/conferences/application/_dietary_requirements.html.haml +9 -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/{conferences/_form_presentation_types.html.haml → application/_presentation_types.html.haml} +2 -3
- data/app/views/spina/admin/conferences/{rooms/_form_presentations.html.haml → application/_presentations.html.haml} +2 -3
- data/app/views/spina/admin/conferences/{conferences/_form_rooms.html.haml → application/_rooms.html.haml} +2 -3
- data/app/views/spina/admin/conferences/{presentation_types/_form_sessions.html.haml → application/_sessions.html.haml} +2 -3
- data/app/views/spina/admin/conferences/conferences/_event_fields.html.haml +18 -25
- data/app/views/spina/admin/conferences/conferences/_event_row.html.haml +2 -2
- data/app/views/spina/admin/conferences/conferences/_form.html.haml +7 -3
- data/app/views/spina/admin/conferences/conferences/_form_conference_details.html.haml +22 -24
- data/app/views/spina/admin/conferences/conferences/_form_parts.html.haml +7 -14
- data/app/views/spina/admin/conferences/conferences/index.html.haml +1 -13
- data/app/views/spina/admin/conferences/delegates/_form.html.haml +4 -3
- data/app/views/spina/admin/conferences/delegates/_form_delegate_details.html.haml +47 -32
- data/app/views/spina/admin/conferences/delegates/index.html.haml +1 -12
- data/app/views/spina/admin/conferences/dietary_requirements/_form.html.haml +3 -3
- data/app/views/spina/admin/conferences/dietary_requirements/_form_dietary_requirement_details.html.haml +7 -8
- data/app/views/spina/admin/conferences/dietary_requirements/index.html.haml +1 -10
- data/app/views/spina/admin/conferences/events/new.js.erb +3 -9
- data/app/views/spina/admin/conferences/institutions/_form.html.haml +4 -3
- data/app/views/spina/admin/conferences/institutions/_form_institution_details.html.haml +29 -35
- data/app/views/spina/admin/conferences/institutions/index.html.haml +1 -11
- data/app/views/spina/admin/conferences/presentation_attachment_types/_form.html.haml +3 -3
- data/app/views/spina/admin/conferences/presentation_attachment_types/index.html.haml +1 -10
- data/app/views/spina/admin/conferences/presentation_attachments/new.js.erb +3 -3
- data/app/views/spina/admin/conferences/presentation_types/_form.html.haml +4 -3
- data/app/views/spina/admin/conferences/presentation_types/_form_presentation_type_details.html.haml +13 -17
- data/app/views/spina/admin/conferences/presentation_types/index.html.haml +1 -12
- data/app/views/spina/admin/conferences/presentations/_attachment_fields.html.haml +10 -19
- data/app/views/spina/admin/conferences/presentations/_attachment_row.html.haml +2 -2
- data/app/views/spina/admin/conferences/presentations/_form.html.haml +3 -3
- data/app/views/spina/admin/conferences/presentations/_form_presentation_details.html.haml +56 -55
- data/app/views/spina/admin/conferences/presentations/index.html.haml +1 -12
- data/app/views/spina/admin/conferences/rooms/_form.html.haml +3 -3
- data/app/views/spina/admin/conferences/rooms/_form_room_details.html.haml +13 -15
- data/app/views/spina/admin/conferences/rooms/index.html.haml +1 -12
- data/app/views/spina/admin/conferences/sessions/_form.html.haml +3 -3
- data/app/views/spina/admin/conferences/sessions/_form_session_details.html.haml +18 -20
- data/app/views/spina/admin/conferences/sessions/_session.html.haml +1 -1
- data/app/views/spina/admin/conferences/sessions/index.html.haml +1 -12
- data/app/views/spina/admin/hooks/conferences/_head.html.haml +5 -0
- data/app/views/spina/admin/hooks/conferences/_primary_navigation.html.haml +15 -14
- data/app/views/spina/admin/hooks/conferences/_settings_secondary_navigation.html.haml +4 -2
- 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 +1 -1
- data/config/locales/en.yml +26 -29
- 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/lib/spina/admin/conferences.rb +2 -0
- data/lib/spina/admin/conferences/engine.rb +7 -0
- data/lib/spina/admin/conferences/version.rb +1 -1
- data/lib/tasks/spina/admin/conferences_tasks.rake +11 -1
- metadata +85 -61
- data/app/assets/javascripts/spina/admin/conferences/application.es6 +0 -20
- data/app/helpers/spina/admin/conferences/conferences_helper.rb +0 -44
- data/app/models/spina/admin/conferences/date_part.rb +0 -15
- data/app/models/spina/admin/conferences/email_address_part.rb +0 -21
- data/app/models/spina/admin/conferences/part.rb +0 -20
- data/app/models/spina/admin/conferences/time_part.rb +0 -53
- data/app/models/spina/admin/conferences/url_part.rb +0 -21
- data/app/views/spina/admin/conferences/application/_errors.js.erb +0 -2
- data/app/views/spina/admin/conferences/conferences/_form_presentations.html.haml +0 -12
- data/app/views/spina/admin/conferences/delegates/_form_presentations.html.haml +0 -12
- data/app/views/spina/admin/conferences/dietary_requirements/_form_delegates.html.haml +0 -12
- data/app/views/spina/admin/conferences/institutions/_form_delegates.html.haml +0 -12
- data/app/views/spina/admin/conferences/institutions/_form_rooms.html.haml +0 -12
- data/app/views/spina/admin/conferences/presentation_types/_form_presentations.html.haml +0 -12
- data/app/views/spina/admin/conferences/presentations/_form_presenters.html.haml +0 -12
- data/app/views/spina/admin/conferences/sessions/_form_presentations.html.haml +0 -12
- data/app/views/spina/admin/partables/admin/conferences/date_parts/_form.html.haml +0 -5
- data/app/views/spina/admin/partables/admin/conferences/email_address_parts/_form.html.haml +0 -5
- data/app/views/spina/admin/partables/admin/conferences/time_parts/_form.html.haml +0 -7
- data/app/views/spina/admin/partables/admin/conferences/url_parts/_form.html.haml +0 -5
- data/config/initializers/types.rb +0 -13
- data/lib/spina/admin/conferences/types/interval_type.rb +0 -29
@@ -1,10 +1,8 @@
|
|
1
|
-
- content_for :
|
1
|
+
- content_for :admin_header do
|
2
2
|
%header#header
|
3
3
|
#header_actions
|
4
4
|
= yield(:header_actions)
|
5
5
|
|
6
6
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
= render template: 'layouts/spina/admin/admin'
|
8
|
+
= render template: 'layouts/spina/admin/conferences/application'
|
@@ -1,10 +1,8 @@
|
|
1
|
-
- content_for :
|
1
|
+
- content_for :admin_header do
|
2
2
|
%header#header
|
3
3
|
#header_actions
|
4
4
|
= yield(:header_actions)
|
5
5
|
|
6
6
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
= render template: 'layouts/spina/admin/admin'
|
8
|
+
= render template: 'layouts/spina/admin/conferences/application'
|
@@ -1,4 +1,4 @@
|
|
1
|
-
- content_for :
|
1
|
+
- content_for :admin_header do
|
2
2
|
%header#header
|
3
3
|
#header_actions
|
4
4
|
= yield(:header_actions)
|
@@ -12,6 +12,4 @@
|
|
12
12
|
%li{class: ('active' if controller_name == 'rooms')}
|
13
13
|
= link_to Spina::Admin::Conferences::Room.model_name.human(count: 0), admin_conferences_rooms_path
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
= render template: 'layouts/spina/admin/admin'
|
15
|
+
= render template: 'layouts/spina/admin/conferences/application'
|
@@ -1,10 +1,8 @@
|
|
1
|
-
- content_for :
|
1
|
+
- content_for :admin_header do
|
2
2
|
%header#header
|
3
3
|
#header_actions
|
4
4
|
= yield(:header_actions)
|
5
5
|
|
6
6
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
= render template: 'layouts/spina/admin/admin'
|
8
|
+
= render template: 'layouts/spina/admin/conferences/application'
|
@@ -1,10 +1,8 @@
|
|
1
|
-
- content_for :
|
1
|
+
- content_for :admin_header do
|
2
2
|
%header#header
|
3
3
|
#header_actions
|
4
4
|
= yield(:header_actions)
|
5
5
|
|
6
6
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
= render template: 'layouts/spina/admin/admin'
|
8
|
+
= render template: 'layouts/spina/admin/conferences/application'
|
@@ -1,14 +1,12 @@
|
|
1
|
-
|
1
|
+
.well
|
2
2
|
.table-container
|
3
3
|
%table.table
|
4
4
|
%thead
|
5
5
|
%tr
|
6
6
|
%th= Spina::Admin::Conferences::Conference.human_attribute_name :name
|
7
7
|
%th= Spina::Admin::Conferences::Conference.human_attribute_name :year
|
8
|
-
%th= Spina::Admin::Conferences::Conference.human_attribute_name :institution
|
9
8
|
%th= Spina::Admin::Conferences::Conference.human_attribute_name :start_date
|
10
9
|
%th= Spina::Admin::Conferences::Conference.human_attribute_name :finish_date
|
11
10
|
%th
|
12
11
|
|
13
|
-
%tbody
|
14
|
-
= render @delegate.conferences.any? ? @delegate.conferences : 'empty_list', message: t('spina.admin.conferences.conferences.index.no_conferences')
|
12
|
+
%tbody= render conferences.presence || 'empty_list', message: t('.no_conferences')
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
.well
|
2
2
|
.table-container
|
3
3
|
%table.table
|
4
4
|
%thead
|
@@ -8,5 +8,4 @@
|
|
8
8
|
%th= Spina::Admin::Conferences::Delegate.human_attribute_name :institution
|
9
9
|
%th
|
10
10
|
|
11
|
-
%tbody
|
12
|
-
= render @conference.delegates.any? ? @conference.delegates : 'empty_list', message: t('spina.admin.conferences.delegates.index.no_delegates')
|
11
|
+
%tbody= render delegates.presence || 'empty_list', message: t('.no_delegates')
|
@@ -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')
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
.well
|
2
2
|
.table-container
|
3
3
|
%table.table
|
4
4
|
%thead
|
@@ -8,5 +8,4 @@
|
|
8
8
|
%th= Spina::Admin::Conferences::PresentationType.human_attribute_name :duration
|
9
9
|
%th
|
10
10
|
|
11
|
-
%tbody
|
12
|
-
= render @conference.presentation_types.any? ? @conference.presentation_types : 'empty_list', message: t('spina.admin.conferences.presentation_types.index.no_presentation_types')
|
11
|
+
%tbody= render presentation_types.presence || 'empty_list', message: t('.no_presentation_types')
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
.well
|
2
2
|
.table-container
|
3
3
|
%table.table
|
4
4
|
%thead
|
@@ -8,5 +8,4 @@
|
|
8
8
|
%th= Spina::Admin::Conferences::Presentation.human_attribute_name :presenters
|
9
9
|
%th
|
10
10
|
|
11
|
-
%tbody
|
12
|
-
= render @room.presentations.any? ? @room.presentations : 'empty_list', message: t('spina.admin.conferences.presentations.index.no_presentations')
|
11
|
+
%tbody= render presentations.presence || 'empty_list', message: t('.no_presentations')
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
.well
|
2
2
|
.table-container
|
3
3
|
%table.table
|
4
4
|
%thead
|
@@ -8,5 +8,4 @@
|
|
8
8
|
%th= Spina::Admin::Conferences::Room.human_attribute_name :number
|
9
9
|
%th
|
10
10
|
|
11
|
-
%tbody
|
12
|
-
= render @conference.rooms.any? ? @conference.rooms : 'empty_list', message: t('spina.admin.conferences.rooms.index.no_rooms')
|
11
|
+
%tbody= render rooms.presence || 'empty_list', message: t('.no_rooms')
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
.well
|
2
2
|
.table-container
|
3
3
|
%table.table
|
4
4
|
%thead
|
@@ -8,5 +8,4 @@
|
|
8
8
|
%th= Spina::Admin::Conferences::Session.human_attribute_name :room
|
9
9
|
%th
|
10
10
|
|
11
|
-
%tbody
|
12
|
-
= render @presentation_type.sessions.any? ? @presentation_type.sessions : 'empty_list', message: t('spina.admin.conferences.sessions.index.no_sessions')
|
11
|
+
%tbody= render sessions.presence || 'empty_list', message: t('.no_sessions')
|
@@ -1,39 +1,32 @@
|
|
1
1
|
.structure-form-pane{ class: ('active' if (local_assigns[:active] == true) || (f.index == 0)), id: "structure_form_pane_#{f.index}",
|
2
|
-
data: { conference_events_form: { target: 'formPane' } } }
|
2
|
+
data: { 'spina--admin--conferences--conference_events_form': { target: 'formPane' } } }
|
3
3
|
.structure-form-part
|
4
|
-
.
|
5
|
-
.
|
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
6
|
|
7
7
|
.structure-form-part
|
8
|
-
.
|
9
|
-
.
|
10
|
-
|
11
|
-
placeholder: Spina::Admin::Conferences::Event.human_attribute_name(:date),
|
12
|
-
required: true
|
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
|
13
11
|
|
14
12
|
.structure-form-part
|
15
|
-
.
|
16
|
-
.
|
17
|
-
|
18
|
-
placeholder: Spina::Admin::Conferences::Event.human_attribute_name(:start_time), required: true
|
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
|
19
16
|
|
20
17
|
.structure-form-part
|
21
|
-
.
|
22
|
-
.
|
23
|
-
|
24
|
-
placeholder: Spina::Admin::Conferences::Event.human_attribute_name(:finish_time), required: true
|
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
|
25
21
|
|
26
22
|
.structure-form-part
|
27
|
-
.
|
28
|
-
.
|
29
|
-
|
30
|
-
|
31
|
-
.structure-form-part
|
32
|
-
.horizontal-form-label= Spina::Admin::Conferences::Event.human_attribute_name :description
|
33
|
-
.horizontal-form-content= render 'spina/admin/shared/rich_text_field', f: f, field: :description
|
23
|
+
.page-form-label= Spina::Admin::Conferences::Event.human_attribute_name :description
|
24
|
+
.page-form-content
|
25
|
+
.page-form-rich-text
|
26
|
+
= render 'spina/admin/shared/rich_text_field', f: f, field: :description
|
34
27
|
|
35
28
|
= f.hidden_field :id
|
36
29
|
|
37
|
-
= f.hidden_field :_destroy, data: { conference_events_form_target: 'destroyField' }
|
30
|
+
= f.hidden_field :_destroy, data: { 'spina--admin--conferences--conference_events_form_target': 'destroyField' }
|
38
31
|
= button_tag t('spina.delete'), type: 'button', class: %w[button button-mini button-link pull-right],
|
39
|
-
data: { action: 'conference-events-form#removeForm' }
|
32
|
+
data: { action: 'spina--admin--conferences--conference-events-form#removeForm' }
|
@@ -1,5 +1,5 @@
|
|
1
1
|
%li{ class: ('active' if (local_assigns[:active] == true) || (local_assigns[:index] == 0) || local_assigns[:event_iteration]&.first?),
|
2
|
-
data: { conference_events_form: { target: 'formLink' } } }
|
2
|
+
data: { 'spina--admin--conferences--conference_events_form': { target: 'formLink' } } }
|
3
3
|
= link_to event&.name || '',
|
4
4
|
"#structure_form_pane_#{local_assigns[:index] || local_assigns[:event_iteration]&.index}",
|
5
|
-
data: { conference_events_form_target: 'formLinkLabel' }
|
5
|
+
data: { 'spina--admin--conferences--conference_events_form_target': 'formLinkLabel' }
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- content_for :notifications do
|
3
3
|
= render 'errors', errors: @conference.errors
|
4
4
|
|
5
|
-
= form_for @conference,
|
5
|
+
= form_for [:admin_conferences, @conference], html: { autocomplete: 'off' } do |f|
|
6
6
|
%header#header
|
7
7
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
8
8
|
|
@@ -19,5 +19,9 @@
|
|
19
19
|
%li{ class: ('active' if i == 0) }
|
20
20
|
= link_to t(".#{tab}"), "##{tab}"
|
21
21
|
|
22
|
-
-
|
23
|
-
|
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
|
@@ -1,29 +1,27 @@
|
|
1
|
-
|
2
|
-
.
|
3
|
-
.
|
4
|
-
|
5
|
-
.horizontal-form-label= Spina::Admin::Conferences::Conference.human_attribute_name :name
|
6
|
-
.horizontal-form-content= f.text_field :name, placeholder: Spina::Admin::Conferences::Conference.human_attribute_name(:name), required: true
|
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'
|
7
5
|
|
8
|
-
|
9
|
-
|
10
|
-
|
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
|
11
9
|
|
12
|
-
|
13
|
-
|
14
|
-
|
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
|
15
13
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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: '' }
|
23
21
|
|
24
|
-
|
25
|
-
|
26
|
-
|
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
|
27
25
|
|
28
|
-
|
29
|
-
|
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]
|
@@ -1,15 +1,8 @@
|
|
1
|
-
|
2
|
-
.
|
3
|
-
.
|
4
|
-
|
5
|
-
|
6
|
-
= ff.hidden_field :title
|
7
|
-
= ff.hidden_field :partable_type
|
8
|
-
= ff.hidden_field :name
|
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
|
9
6
|
|
10
|
-
|
11
|
-
|
12
|
-
- when 'Spina::Structure'
|
13
|
-
= render 'form_structure', f: ff
|
14
|
-
- else
|
15
|
-
= render "spina/admin/partables/#{partable_type_partial_namespace(ff.object.partable_type)}/form", f: ff
|
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
|
@@ -3,16 +3,4 @@
|
|
3
3
|
= icon 'plus'
|
4
4
|
= t '.new'
|
5
5
|
|
6
|
-
|
7
|
-
.table-container
|
8
|
-
%table.table
|
9
|
-
%thead
|
10
|
-
%tr
|
11
|
-
%th= Spina::Admin::Conferences::Conference.human_attribute_name :name
|
12
|
-
%th= Spina::Admin::Conferences::Conference.human_attribute_name :year
|
13
|
-
%th= Spina::Admin::Conferences::Conference.human_attribute_name :start_date
|
14
|
-
%th= Spina::Admin::Conferences::Conference.human_attribute_name :finish_date
|
15
|
-
%th
|
16
|
-
|
17
|
-
%tbody
|
18
|
-
= render @conferences.any? ? @conferences : 'empty_list', message: t('.no_conferences')
|
6
|
+
= render partial: 'conferences', object: @conferences
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- content_for :notifications do
|
3
3
|
= render 'errors', errors: @delegate.errors
|
4
4
|
|
5
|
-
= form_for @delegate,
|
5
|
+
= form_for [:admin_conferences, @delegate], html: { autocomplete: 'off' } do |f|
|
6
6
|
%header#header
|
7
7
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
8
8
|
|
@@ -19,5 +19,6 @@
|
|
19
19
|
%li{ class: ('active' if i == 0) }
|
20
20
|
= link_to t(".#{tab}"), "##{tab}"
|
21
21
|
|
22
|
-
-
|
23
|
-
|
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
|
@@ -1,38 +1,53 @@
|
|
1
|
-
|
2
|
-
.
|
3
|
-
.
|
4
|
-
|
5
|
-
|
6
|
-
|
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'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
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
|
11
13
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
.select-dropdown= f.collection_select :institution_id, Spina::Admin::Conferences::Institution.all, :id, :name, {}, required: true
|
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
|
16
17
|
|
17
|
-
|
18
|
-
|
19
|
-
|
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)
|
20
21
|
|
21
|
-
|
22
|
-
|
23
|
-
|
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
|
24
36
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
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
|
30
51
|
|
31
|
-
|
32
|
-
|
33
|
-
= Spina::Admin::Conferences::Delegate.human_attribute_name :dietary_requirements
|
34
|
-
%small= t '.multiple_dietary_requirements_selection_instructions_html'
|
35
|
-
.horizontal-form-content.multiple.select-dropdown= f.collection_select :dietary_requirement_ids, Spina::Admin::Conferences::DietaryRequirement.all, :id, :name, {}, { multiple: true, required: false }
|
36
|
-
|
37
|
-
- unless @delegate.new_record?
|
38
|
-
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_delegate_path(@delegate), method: :delete, remote: true, data: { confirm: t('.delete_confirmation', delegate: @delegate.full_name) }, class: %w[button button-link button-danger]
|
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]
|