spina-admin-conferences 1.3.7 → 1.3.8
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 +4 -4
- data/README.md +9 -10
- data/app/assets/config/spina_admin_conferences_manifest.js +4 -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 +4 -0
- data/app/controllers/spina/admin/conferences/application_controller.rb +1 -1
- data/app/controllers/spina/admin/conferences/conferences_controller.rb +3 -3
- data/app/controllers/spina/admin/conferences/delegates_controller.rb +3 -3
- data/app/controllers/spina/admin/conferences/dietary_requirements_controller.rb +3 -3
- data/app/controllers/spina/admin/conferences/institutions_controller.rb +3 -3
- data/app/controllers/spina/admin/conferences/presentation_attachment_types_controller.rb +3 -3
- data/app/controllers/spina/admin/conferences/presentation_types_controller.rb +3 -3
- data/app/controllers/spina/admin/conferences/presentations_controller.rb +3 -3
- data/app/controllers/spina/admin/conferences/rooms_controller.rb +3 -3
- data/app/controllers/spina/admin/conferences/sessions_controller.rb +3 -3
- 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/application/_errors.turbo_stream.haml +1 -0
- data/app/views/spina/admin/conferences/conferences/_event_fields.html.haml +3 -4
- data/app/views/spina/admin/conferences/conferences/_event_row.html.haml +2 -2
- data/app/views/spina/admin/conferences/conferences/_form.html.haml +1 -1
- data/app/views/spina/admin/conferences/conferences/_form_conference_details.html.haml +7 -7
- data/app/views/spina/admin/conferences/delegates/_form.html.haml +1 -1
- data/app/views/spina/admin/conferences/delegates/_form_delegate_details.html.haml +1 -1
- data/app/views/spina/admin/conferences/dietary_requirements/_form.html.haml +1 -1
- data/app/views/spina/admin/conferences/dietary_requirements/_form_dietary_requirement_details.html.haml +1 -1
- data/app/views/spina/admin/conferences/events/new.js.erb +3 -9
- data/app/views/spina/admin/conferences/institutions/_form.html.haml +1 -1
- data/app/views/spina/admin/conferences/institutions/_form_institution_details.html.haml +1 -1
- data/app/views/spina/admin/conferences/presentation_attachment_types/_form.html.haml +2 -2
- data/app/views/spina/admin/conferences/presentation_attachments/new.js.erb +3 -3
- data/app/views/spina/admin/conferences/presentation_types/_form.html.haml +1 -1
- data/app/views/spina/admin/conferences/presentation_types/_form_presentation_type_details.html.haml +2 -2
- data/app/views/spina/admin/conferences/presentations/_attachment_fields.html.haml +4 -4
- data/app/views/spina/admin/conferences/presentations/_attachment_row.html.haml +2 -2
- data/app/views/spina/admin/conferences/presentations/_form.html.haml +1 -1
- data/app/views/spina/admin/conferences/presentations/_form_presentation_details.html.haml +9 -9
- data/app/views/spina/admin/conferences/rooms/_form.html.haml +1 -1
- data/app/views/spina/admin/conferences/rooms/_form_room_details.html.haml +1 -1
- data/app/views/spina/admin/conferences/sessions/_form.html.haml +1 -1
- data/app/views/spina/admin/conferences/sessions/_form_session_details.html.haml +7 -7
- 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/partables/admin/conferences/date_parts/_form.html.haml +1 -1
- data/app/views/spina/admin/partables/admin/conferences/time_parts/_form.html.haml +1 -1
- data/config/initializers/assets.rb +1 -1
- data/lib/spina/admin/conferences.rb +2 -0
- data/lib/spina/admin/conferences/version.rb +1 -1
- metadata +65 -37
- data/app/assets/javascripts/spina/admin/conferences/application.es6 +0 -20
- data/app/views/spina/admin/conferences/application/_errors.js.erb +0 -2
- 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'
|
@@ -0,0 +1 @@
|
|
1
|
+
= turbo_stream.append('notifications') { render partial: 'errors', formats: :html, locals: { errors: errors } }
|
@@ -1,5 +1,5 @@
|
|
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
4
|
.horizontal-form-label= Spina::Admin::Conferences::Event.human_attribute_name :name
|
5
5
|
.horizontal-form-content= f.text_field :name, placeholder: Spina::Admin::Conferences::Event.human_attribute_name(:name), required: true
|
@@ -7,7 +7,6 @@
|
|
7
7
|
.structure-form-part
|
8
8
|
.horizontal-form-label= Spina::Admin::Conferences::Event.human_attribute_name :date
|
9
9
|
.horizontal-form-content= f.date_field :date, value: f.object.conference.start_date&.strftime("%Y-%m-%d"),
|
10
|
-
class: 'conference-datepicker',
|
11
10
|
placeholder: Spina::Admin::Conferences::Event.human_attribute_name(:date),
|
12
11
|
required: true
|
13
12
|
|
@@ -34,6 +33,6 @@
|
|
34
33
|
|
35
34
|
= f.hidden_field :id
|
36
35
|
|
37
|
-
= f.hidden_field :_destroy, data: { conference_events_form_target: 'destroyField' }
|
36
|
+
= f.hidden_field :_destroy, data: { 'spina--admin--conferences--conference_events_form_target': 'destroyField' }
|
38
37
|
= button_tag t('spina.delete'), type: 'button', class: %w[button button-mini button-link pull-right],
|
39
|
-
data: { action: 'conference-events-form#removeForm' }
|
38
|
+
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 @conference, html: { autocomplete: 'off' } do |f|
|
6
6
|
%header#header
|
7
7
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
8
8
|
|
@@ -1,29 +1,29 @@
|
|
1
1
|
#conference_details.tab-content.active
|
2
2
|
.well
|
3
|
-
.horizontal-form{ data: { controller: 'select-options', 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" } }',
|
3
|
+
.horizontal-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 } } }
|
4
4
|
.horizontal-form-group
|
5
5
|
.horizontal-form-label= Spina::Admin::Conferences::Conference.human_attribute_name :name
|
6
6
|
.horizontal-form-content= f.text_field :name, placeholder: Spina::Admin::Conferences::Conference.human_attribute_name(:name), required: true
|
7
7
|
|
8
8
|
.horizontal-form-group
|
9
9
|
.horizontal-form-label= Spina::Admin::Conferences::Conference.human_attribute_name :start_date
|
10
|
-
.horizontal-form-content= f.date_field :start_date, value: (@conference.start_date.strftime("%Y-%m-%d") if @conference.start_date.present?),
|
10
|
+
.horizontal-form-content= 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
11
|
|
12
12
|
.horizontal-form-group
|
13
13
|
.horizontal-form-label= Spina::Admin::Conferences::Conference.human_attribute_name :finish_date
|
14
|
-
.horizontal-form-content= f.date_field :finish_date, value: (@conference.finish_date.strftime("%Y-%m-%d") if @conference.finish_date.present?),
|
14
|
+
.horizontal-form-content= 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
15
|
|
16
16
|
.horizontal-form-group{ class: dom_class(@conference.events) }
|
17
17
|
.horizontal-form-content
|
18
|
-
.structure-form{ data: { controller: 'conference-events-form', conference_events_form: { active_class: 'active' } } }
|
18
|
+
.structure-form{ data: { controller: 'spina--admin--conferences--conference-events-form', 'spina--admin--conferences--conference_events_form': { active_class: 'active' } } }
|
19
19
|
.structure-form-menu
|
20
20
|
%label= Spina::Admin::Conferences::Conference.human_attribute_name :events
|
21
21
|
%ul= render partial: 'event_row', collection: f.object.events, as: :event
|
22
|
-
= 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: { conference_events_form_target: 'addFormLink', disable_with: '' }
|
22
|
+
= 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
23
|
|
24
|
-
.structure-form-content{ data: { action: 'conferenceEventFieldsAdded->conference-events-form#updateURL' } }
|
24
|
+
.structure-form-content{ data: { action: 'conferenceEventFieldsAdded->spina--admin--conferences--conference-events-form#updateURL' } }
|
25
25
|
= f.fields_for :events do |event_fields|
|
26
26
|
= render 'event_fields', f: event_fields
|
27
27
|
|
28
28
|
- unless @conference.new_record?
|
29
|
-
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_conference_path(@conference), method: :delete,
|
29
|
+
.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]
|
@@ -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 @delegate, html: { autocomplete: 'off' } do |f|
|
6
6
|
%header#header
|
7
7
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
8
8
|
|
@@ -35,4 +35,4 @@
|
|
35
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
36
|
|
37
37
|
- unless @delegate.new_record?
|
38
|
-
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_delegate_path(@delegate), method: :delete,
|
38
|
+
.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]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- content_for :notifications do
|
3
3
|
= render 'errors', errors: @dietary_requirement.errors
|
4
4
|
|
5
|
-
= form_for @dietary_requirement,
|
5
|
+
= form_for @dietary_requirement, html: { autocomplete: 'off' } do |f|
|
6
6
|
%header#header
|
7
7
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
8
8
|
|
@@ -6,4 +6,4 @@
|
|
6
6
|
.horizontal-form-content= f.text_field :name, placeholder: Spina::Admin::Conferences::DietaryRequirement.human_attribute_name(:name), required: true
|
7
7
|
|
8
8
|
- unless @dietary_requirement.new_record?
|
9
|
-
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_dietary_requirement_path(@dietary_requirement), method: :delete,
|
9
|
+
.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]
|
@@ -1,4 +1,4 @@
|
|
1
|
-
document.querySelector('[data-controller=\'conference-events-form\'] .structure-form-menu ul')
|
1
|
+
document.querySelector('[data-controller=\'spina--admin--conferences--conference-events-form\'] .structure-form-menu ul')
|
2
2
|
.insertAdjacentHTML(
|
3
3
|
'beforeend',
|
4
4
|
'<%=
|
@@ -6,7 +6,7 @@ document.querySelector('[data-controller=\'conference-events-form\'] .structure-
|
|
6
6
|
locals: { index: index, active: active })
|
7
7
|
%>'
|
8
8
|
);
|
9
|
-
document.querySelector('[data-controller=\'conference-events-form\'] .structure-form-content')
|
9
|
+
document.querySelector('[data-controller=\'spina--admin--conferences--conference-events-form\'] .structure-form-content')
|
10
10
|
.insertAdjacentHTML(
|
11
11
|
'beforeend',
|
12
12
|
'<%=
|
@@ -17,11 +17,5 @@ document.querySelector('[data-controller=\'conference-events-form\'] .structure-
|
|
17
17
|
end
|
18
18
|
%>'
|
19
19
|
);
|
20
|
-
document.querySelector('[data-controller=\'conference-events-form\'] .structure-form-content')
|
20
|
+
document.querySelector('[data-controller=\'spina--admin--conferences--conference-events-form\'] .structure-form-content')
|
21
21
|
.dispatchEvent(new Event('conferenceEventFieldsAdded'))
|
22
|
-
Array.from(document.getElementsByClassName('conference-datepicker')).forEach(element => {
|
23
|
-
$(element).datepicker({
|
24
|
-
dateFormat: 'yy-mm-dd',
|
25
|
-
firstDay: 1
|
26
|
-
})
|
27
|
-
})
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- content_for :notifications do
|
3
3
|
= render 'errors', errors: @institution.errors
|
4
4
|
|
5
|
-
= form_for @institution,
|
5
|
+
= form_for @institution, html: { autocomplete: 'off' } do |f|
|
6
6
|
%header#header
|
7
7
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
8
8
|
|
@@ -32,4 +32,4 @@
|
|
32
32
|
|
33
33
|
|
34
34
|
- unless @institution.new_record?
|
35
|
-
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_institution_path(@institution), method: :delete,
|
35
|
+
.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]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- content_for :notifications do
|
3
3
|
= render 'errors', errors: @presentation_attachment_type.errors
|
4
4
|
|
5
|
-
= form_for @presentation_attachment_type,
|
5
|
+
= form_for @presentation_attachment_type, html: { autocomplete: 'off' } do |f|
|
6
6
|
%header#header
|
7
7
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
8
8
|
|
@@ -20,4 +20,4 @@
|
|
20
20
|
.horizontal-form-content= f.text_field :name, placeholder: Spina::Admin::Conferences::DietaryRequirement.human_attribute_name(:name), required: true
|
21
21
|
|
22
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,
|
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]
|
@@ -1,4 +1,4 @@
|
|
1
|
-
document.querySelector('[data-controller=\'presentation-attachments-form\'] .structure-form-menu ul')
|
1
|
+
document.querySelector('[data-controller=\'spina--admin--conferences--presentation-attachments-form\'] .structure-form-menu ul')
|
2
2
|
.insertAdjacentHTML(
|
3
3
|
'beforeend',
|
4
4
|
'<%=
|
@@ -6,7 +6,7 @@ document.querySelector('[data-controller=\'presentation-attachments-form\'] .str
|
|
6
6
|
locals: { index: index, active: active })
|
7
7
|
%>'
|
8
8
|
);
|
9
|
-
document.querySelector('[data-controller=\'presentation-attachments-form\'] .structure-form-content')
|
9
|
+
document.querySelector('[data-controller=\'spina--admin--conferences--presentation-attachments-form\'] .structure-form-content')
|
10
10
|
.insertAdjacentHTML(
|
11
11
|
'beforeend',
|
12
12
|
'<%=
|
@@ -17,5 +17,5 @@ document.querySelector('[data-controller=\'presentation-attachments-form\'] .str
|
|
17
17
|
end
|
18
18
|
%>'
|
19
19
|
);
|
20
|
-
document.querySelector('[data-controller=\'presentation-attachments-form\'] .structure-form-content')
|
20
|
+
document.querySelector('[data-controller=\'spina--admin--conferences--presentation-attachments-form\'] .structure-form-content')
|
21
21
|
.dispatchEvent(new Event('presentationAttachmentFieldsAdded'))
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- content_for :notifications do
|
3
3
|
= render 'errors', errors: @presentation_type.errors
|
4
4
|
|
5
|
-
= form_for @presentation_type,
|
5
|
+
= form_for @presentation_type, html: { autocomplete: 'off' } do |f|
|
6
6
|
%header#header
|
7
7
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
8
8
|
|
data/app/views/spina/admin/conferences/presentation_types/_form_presentation_type_details.html.haml
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
.horizontal-form-group
|
5
5
|
.horizontal-form-label= Spina::Admin::Conferences::PresentationType.human_attribute_name :conference
|
6
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' }
|
7
|
+
.select-dropdown= f.collection_select :conference_id, Spina::Admin::Conferences::Conference.order(:dates).reverse_order, :id, :name, {}, required: true, data: { action: 'spina--admin--conferences--select-options#updateFilteredData' }
|
8
8
|
|
9
9
|
.horizontal-form-group
|
10
10
|
.horizontal-form-label= Spina::Admin::Conferences::PresentationType.human_attribute_name :name
|
@@ -17,4 +17,4 @@
|
|
17
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
18
|
|
19
19
|
- unless @presentation_type.new_record?
|
20
|
-
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_presentation_type_path(@presentation_type), method: :delete,
|
20
|
+
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_presentation_type_path(@presentation_type), method: :delete, data: { confirm: t('.delete_confirmation', presentation_type: @presentation_type.name) }, class: %w[button button-link button-danger]
|
@@ -1,11 +1,11 @@
|
|
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' } } }
|
1
|
+
.structure-form-pane{ class: ('active' if (local_assigns[:active] == true) || (f.index == 0)), id: "structure_form_pane_#{f.index}", data: { 'spina--admin--conferences--presentation_attachments_form': { target: 'formPane' } } }
|
2
2
|
.structure-form-part
|
3
3
|
.horizontal-form-label
|
4
4
|
= Spina::Admin::Conferences::PresentationAttachment.human_attribute_name :attachment_type
|
5
5
|
.horizontal-form-content
|
6
6
|
.select-dropdown
|
7
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' }
|
8
|
+
= f.collection_select :attachment_type_id, Spina::Admin::Conferences::PresentationAttachmentType.all, :id, :name, {}, data: { action: 'spina--admin--conferences--presentation-attachments-form#updateType' }
|
9
9
|
.structure-form-part
|
10
10
|
.horizontal-form-label
|
11
11
|
= Spina::Admin::Conferences::PresentationAttachment.human_attribute_name :attachment
|
@@ -23,5 +23,5 @@
|
|
23
23
|
|
24
24
|
= f.hidden_field :id
|
25
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' }
|
26
|
+
= f.hidden_field :_destroy, data: { 'spina--admin--conferences--presentation_attachments_form_target': 'destroyField' }
|
27
|
+
= button_tag t('spina.delete'), type: 'button', class: %w[button button-mini button-link pull-right], data: { action: 'spina--admin--conferences--presentation-attachments-form#removeForm' }
|
@@ -1,2 +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' }
|
1
|
+
%li{ class: ('active' if (local_assigns[:active] == true) || (local_assigns[:index] == 0) || local_assigns[:attachment_iteration]&.first?), data: { 'spina--admin--conferences--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: { 'spina--admin--conferences--presentation_attachments_form_target': 'formLinkLabel' }
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- content_for :notifications do
|
3
3
|
= render 'errors', errors: @presentation.errors
|
4
4
|
|
5
|
-
= form_for @presentation,
|
5
|
+
= form_for @presentation, html: { autocomplete: 'off' } do |f|
|
6
6
|
%header#header
|
7
7
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
8
8
|
|
@@ -1,22 +1,22 @@
|
|
1
1
|
#presentation_details.tab-content.active
|
2
2
|
.well
|
3
|
-
.horizontal-form{ data: { controller: 'select-options', select_options: {
|
3
|
+
.horizontal-form{ data: { controller: 'spina--admin--conferences--select-options', 'spina--admin--conferences--select_options': { record_value: @conferences } } }
|
4
4
|
.horizontal-form-group
|
5
5
|
.horizontal-form-label= Spina::Admin::Conferences::Presentation.human_attribute_name :conference
|
6
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' }
|
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: 'spina--admin--conferences--select-options#setVisibility', 'spina--admin--conferences--select_options_target': 'select', text_key: 'name' }
|
8
8
|
|
9
9
|
.horizontal-form-group
|
10
10
|
.horizontal-form-label= Spina::Admin::Conferences::Presentation.human_attribute_name :session
|
11
11
|
.horizontal-form-content
|
12
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',
|
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: {
|
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: 'spina--admin--conferences--select-options#setVisibility','spina--admin--conferences--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: {'spina--admin--conferences--select_options_target': 'select', key_path: 'presentation_types:sessions', text_key: 'name' }
|
15
15
|
|
16
16
|
.horizontal-form-group
|
17
17
|
.horizontal-form-label= Spina::Admin::Conferences::Presentation.human_attribute_name :date
|
18
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: {
|
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: {'spina--admin--conferences--select_options_target': 'select', key_path: 'localized_dates', text_key: 'localization', value_key: 'date' }
|
20
20
|
|
21
21
|
.horizontal-form-group
|
22
22
|
.horizontal-form-label
|
@@ -41,15 +41,15 @@
|
|
41
41
|
|
42
42
|
.horizontal-form-group{ class: dom_class(@presentation.attachments) }
|
43
43
|
.horizontal-form-content
|
44
|
-
.structure-form{ data: { controller: 'presentation-attachments-form', presentation_attachments_form: { active_class: 'active' } } }
|
44
|
+
.structure-form{ data: { controller: 'spina--admin--conferences--presentation-attachments-form', 'spina--admin--conferences--presentation_attachments_form': { active_class: 'active' } } }
|
45
45
|
.structure-form-menu
|
46
46
|
%label= Spina::Admin::Conferences::Presentation.human_attribute_name :attachments
|
47
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: '' }
|
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: { 'spina--admin--conferences--presentation_attachments_form_target': 'addFormLink', disable_with: '' }
|
49
49
|
|
50
|
-
.structure-form-content{ data: { action: 'presentationAttachmentFieldsAdded->presentation-attachments-form#updateURL' } }
|
50
|
+
.structure-form-content{ data: { action: 'presentationAttachmentFieldsAdded->spina--admin--conferences--presentation-attachments-form#updateURL' } }
|
51
51
|
= f.fields_for :attachments do |attachment_fields|
|
52
52
|
= render 'attachment_fields', f: attachment_fields
|
53
53
|
|
54
54
|
- unless @presentation.new_record?
|
55
|
-
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_presentation_path(@presentation), method: :delete,
|
55
|
+
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_presentation_path(@presentation), method: :delete, data: { confirm: t('.delete_confirmation', presentation: @presentation.title) }, class: %w[button button-link button-danger]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- content_for :notifications do
|
3
3
|
= render 'errors', errors: @room.errors
|
4
4
|
|
5
|
-
= form_for @room,
|
5
|
+
= form_for @room, html: { autocomplete: 'off' } do |f|
|
6
6
|
%header#header
|
7
7
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
8
8
|
|
@@ -15,4 +15,4 @@
|
|
15
15
|
.horizontal-form-content= f.text_field :number, placeholder: Spina::Admin::Conferences::Room.human_attribute_name(:number), required: true
|
16
16
|
|
17
17
|
- unless @room.new_record?
|
18
|
-
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_room_path(@room), method: :delete,
|
18
|
+
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_room_path(@room), method: :delete, data: { confirm: t('.delete_confirmation', room: @room.name) }, class: %w[button button-link button-danger]
|
@@ -2,7 +2,7 @@
|
|
2
2
|
- content_for :notifications do
|
3
3
|
= render 'errors', errors: @session.errors
|
4
4
|
|
5
|
-
= form_for @session,
|
5
|
+
= form_for @session, html: { autocomplete: 'off' } do |f|
|
6
6
|
%header#header
|
7
7
|
= render partial: 'spina/admin/shared/breadcrumbs'
|
8
8
|
|
@@ -8,16 +8,16 @@
|
|
8
8
|
.horizontal-form-group
|
9
9
|
.horizontal-form-label= Spina::Admin::Conferences::Session.human_attribute_name :presentation_type
|
10
10
|
.horizontal-form-content
|
11
|
-
.input-group{ data: { controller: 'select-options', select_options: {
|
12
|
-
.select-dropdown= select_tag :admin_conferences_conference_id, options_from_collection_for_select(Spina::Admin::Conferences::Conference.all, :id, :name, (@session.conference.id unless @session.conference.blank?)), include_blank: true, required: true, data: { action: 'select-options#setVisibility',
|
13
|
-
.select-dropdown= f.collection_select :presentation_type_id, @session.conference.present? ? @session.conference.presentation_types : Spina::Admin::Conferences::Conference.first.presentation_types, :id, :name, { include_blank: true }, required: true, data: {
|
11
|
+
.input-group{ data: { controller: 'spina--admin--conferences--select-options', 'spina--admin--conferences--select_options': { record_value: @conferences } } }
|
12
|
+
.select-dropdown= select_tag :admin_conferences_conference_id, options_from_collection_for_select(Spina::Admin::Conferences::Conference.all, :id, :name, (@session.conference.id unless @session.conference.blank?)), include_blank: true, required: true, data: { action: 'spina--admin--conferences--select-options#setVisibility','spina--admin--conferences--select_options_target': 'select', text_key: 'name' }
|
13
|
+
.select-dropdown= f.collection_select :presentation_type_id, @session.conference.present? ? @session.conference.presentation_types : Spina::Admin::Conferences::Conference.first.presentation_types, :id, :name, { include_blank: true }, required: true, data: {'spina--admin--conferences--select_options_target': 'select', text_key: 'name', key_path: 'presentation_types' }
|
14
14
|
|
15
15
|
.horizontal-form-group
|
16
16
|
.horizontal-form-label= Spina::Admin::Conferences::Session.human_attribute_name :room
|
17
17
|
.horizontal-form-content
|
18
|
-
.input-group{ data: { controller: 'select-options', select_options: {
|
19
|
-
.select-dropdown= select_tag :admin_conferences_institution_id, options_from_collection_for_select(Spina::Admin::Conferences::Institution.all, :id, :name, (@session.institution.id unless @session.institution.blank?)), include_blank: true, required: true, data: { action: 'select-options#setVisibility',
|
20
|
-
.select-dropdown= f.collection_select :room_id, @session.institution.present? ? @session.institution.rooms : Spina::Admin::Conferences::Institution.first.rooms, :id, :name, { include_blank: true }, required: true, data: {
|
18
|
+
.input-group{ data: { controller: 'select-options', 'spina--admin--conferences--select_options': { record_value: @institutions } } }
|
19
|
+
.select-dropdown= select_tag :admin_conferences_institution_id, options_from_collection_for_select(Spina::Admin::Conferences::Institution.all, :id, :name, (@session.institution.id unless @session.institution.blank?)), include_blank: true, required: true, data: { action: 'spina--admin--conferences--select-options#setVisibility','spina--admin--conferences--select_options_target': 'select', text_key: 'name' }
|
20
|
+
.select-dropdown= f.collection_select :room_id, @session.institution.present? ? @session.institution.rooms : Spina::Admin::Conferences::Institution.first.rooms, :id, :name, { include_blank: true }, required: true, data: {'spina--admin--conferences--select_options_target': 'select', text_key: 'name', key_path: 'rooms' }
|
21
21
|
|
22
22
|
- unless @session.new_record?
|
23
|
-
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_session_path(@session), method: :delete,
|
23
|
+
.pull-right= link_to t('spina.permanently_delete'), admin_conferences_session_path(@session), method: :delete, data: { confirm: t('.delete_confirmation', session: @session.name) }, class: %w[button button-link button-danger]
|
@@ -1,2 +1,7 @@
|
|
1
|
+
%meta{ name: 'turbo-root', content: '/admin/conferences' }
|
2
|
+
%meta{name: 'turbo-cache-control', content: 'no-preview'}
|
1
3
|
= stylesheet_link_tag 'spina/admin/conferences/application', media: 'all', data: { turbolinks_track: true }
|
4
|
+
= stimulus_include_tags
|
5
|
+
= javascript_include_tag 'turbo', type: 'module-shim'
|
2
6
|
= javascript_include_tag 'spina/admin/conferences/application'
|
7
|
+
= yield :head
|