spina-admin-conferences 1.3.7 → 2.0.0
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 +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
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6a71edd30ad8eff8c5822e7f0d9a720bbc80804a93c47149adae874a02012e74
|
|
4
|
+
data.tar.gz: 86a9f3fe0a03fe899f19683575af0b50955ca88d56f7a360c76b0d0ac86d8f5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b4054ac1be55dcd68fd82bfd65b6691e85fbf6e563b79d6c3ad44f8f4742a8408cdca956f3dfce56687da81e5a7239e66da31ab9714c12d95954722b6e6df1c8
|
|
7
|
+
data.tar.gz: 3c340adae480041e88a964c31f2f5f9dcd9259843e9ddbf19ac0ab96d21cb1a845466d442a927286ad32dfd826f63a54c38a3bf67f1771cc41b5e08711b4f034
|
data/README.md
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
# Conferences
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
](https://percy.io/Ulab/spina-conferences)
|
|
3
|
+

|
|
4
|
+
[](https://coveralls.io/github/jmalcic/spina-admin-conferences?branch=master)
|
|
5
|
+
[](https://lgtm.com/projects/g/jmalcic/spina-admin-conferences/alerts/)
|
|
6
|
+
[](https://lgtm.com/projects/g/jmalcic/spina-admin-conferences/context:javascript)
|
|
7
|
+
[](https://www.codefactor.io/repository/github/jmalcic/spina-admin-conferences)
|
|
8
|
+
[](http://inch-ci.org/github/jmalcic/spina-admin-conferences)
|
|
9
|
+
[](https://percy.io/Ulab/spina-admin-conferences)
|
|
11
10
|
|
|
12
11
|
*Conferences* is a plugin for [Spina](https://www.spinacms.com 'Spina website') (a [Rails](http://rubyonrails.org 'Ruby on Rails website') content management system) to add conference management functionality.
|
|
13
12
|
With the plugin, you'll be able to manage details of conferences, delegates, and presentations.
|
|
@@ -73,14 +72,14 @@ Then follow the instructions below.
|
|
|
73
72
|
Add this line to your application's Gemfile:
|
|
74
73
|
|
|
75
74
|
```ruby
|
|
76
|
-
gem 'spina-
|
|
75
|
+
gem 'spina-admin-conferences'
|
|
77
76
|
```
|
|
78
77
|
|
|
79
78
|
You'll then need to install and run the migrations from Conferences (the Spina install generator does this for Spina).
|
|
80
79
|
|
|
81
80
|
First install the migrations and then migrate the database:
|
|
82
81
|
```bash
|
|
83
|
-
$ rake
|
|
82
|
+
$ rake spina_admin_conferences:install:migrations
|
|
84
83
|
$ rake db:migrate
|
|
85
84
|
```
|
|
86
85
|
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/* global Stimulus */
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
|
-
* @external
|
|
2
|
+
* @external Controller
|
|
5
3
|
* @see {@link https://stimulusjs.org}
|
|
6
4
|
*/
|
|
5
|
+
import { Controller } from 'stimulus'
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* @classdesc Controller that manages conference event inputs.
|
|
10
9
|
*/
|
|
11
|
-
class
|
|
10
|
+
export default class extends Controller {
|
|
12
11
|
// noinspection JSUnusedGlobalSymbols
|
|
13
12
|
static get targets() {
|
|
14
13
|
return [
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/* global Stimulus */
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
|
-
* @external
|
|
2
|
+
* @external Controller
|
|
5
3
|
* @see {@link https://stimulusjs.org}
|
|
6
4
|
*/
|
|
5
|
+
import { Controller } from 'stimulus'
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* @classdesc Controller that manages presentation attachment inputs.
|
|
10
9
|
*/
|
|
11
|
-
class
|
|
10
|
+
export default class extends Controller {
|
|
12
11
|
// noinspection JSUnusedGlobalSymbols
|
|
13
12
|
static get targets() {
|
|
14
13
|
return [
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/* global Stimulus */
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
|
-
* @external
|
|
2
|
+
* @external Controller
|
|
5
3
|
* @see {@link https://stimulusjs.org}
|
|
6
4
|
*/
|
|
5
|
+
import { Controller } from 'stimulus'
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* @classdesc Controller that links related select elements.
|
|
10
9
|
*/
|
|
11
|
-
class SelectOptionsController extends
|
|
10
|
+
export default class SelectOptionsController extends Controller {
|
|
12
11
|
// noinspection JSUnusedGlobalSymbols
|
|
13
12
|
static get targets() {
|
|
14
13
|
return [
|
|
@@ -24,7 +23,7 @@ class SelectOptionsController extends Stimulus.Controller { // eslint-disable-li
|
|
|
24
23
|
return {
|
|
25
24
|
/**
|
|
26
25
|
* @private
|
|
27
|
-
* @property {Array}
|
|
26
|
+
* @property {Array} recordValue - The record values.
|
|
28
27
|
*/
|
|
29
28
|
record: Array,
|
|
30
29
|
}
|
|
@@ -44,7 +43,7 @@ class SelectOptionsController extends Stimulus.Controller { // eslint-disable-li
|
|
|
44
43
|
* Hook to update select targets when record values change.
|
|
45
44
|
* @private
|
|
46
45
|
*/
|
|
47
|
-
|
|
46
|
+
recordValueChanged() {
|
|
48
47
|
this.selectTargets.forEach(target => {
|
|
49
48
|
if (!(target instanceof HTMLSelectElement)) return
|
|
50
49
|
this.updateOptions(target)
|
|
@@ -59,8 +58,8 @@ class SelectOptionsController extends Stimulus.Controller { // eslint-disable-li
|
|
|
59
58
|
setVisibility(event) {
|
|
60
59
|
const target = event.currentTarget
|
|
61
60
|
if (!(target instanceof HTMLSelectElement)) return
|
|
62
|
-
const recordFilter = new SelectOptionsController.RecordFilter(this.
|
|
63
|
-
this.
|
|
61
|
+
const recordFilter = new SelectOptionsController.RecordFilter(this.recordValue, target)
|
|
62
|
+
this.recordValue = recordFilter.setVisibility()
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
/**
|
|
@@ -69,7 +68,7 @@ class SelectOptionsController extends Stimulus.Controller { // eslint-disable-li
|
|
|
69
68
|
* @param {HTMLSelectElement} target - The select element to update the options of.
|
|
70
69
|
*/
|
|
71
70
|
updateOptions(target) {
|
|
72
|
-
let newRecords = this.
|
|
71
|
+
let newRecords = this.recordValue
|
|
73
72
|
if ('keyPath' in target.dataset) {
|
|
74
73
|
const keyPath = new SelectOptionsController.KeyPath(target.dataset.keyPath)
|
|
75
74
|
newRecords = keyPath.visibleObjectsAtKeyPath(newRecords)
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
display: none
|
|
5
|
-
input[type="date"]
|
|
6
|
-
padding-right: 30px
|
|
7
|
-
|
|
8
|
-
.multiple.select-dropdown
|
|
9
|
-
z-index: 0
|
|
10
|
-
&:before
|
|
11
|
-
content: none
|
|
12
|
-
select
|
|
13
|
-
padding: 11px 10px
|
|
14
|
-
width: 100%
|
|
1
|
+
.turbo-progress-bar
|
|
2
|
+
@import spina/configuration
|
|
3
|
+
background-color: $primary-color
|
|
@@ -5,14 +5,17 @@ module Spina
|
|
|
5
5
|
module Conferences
|
|
6
6
|
# @abstract Subclass to implement a custom controller.
|
|
7
7
|
class ApplicationController < ::Spina::Admin::AdminController
|
|
8
|
+
helper ::Spina::Engine.routes.url_helpers
|
|
9
|
+
|
|
8
10
|
add_flash_types :success
|
|
9
11
|
|
|
10
|
-
layout
|
|
12
|
+
layout 'spina/admin/conferences/application', only: %i[new edit]
|
|
13
|
+
before_action :set_locale
|
|
11
14
|
|
|
12
15
|
private
|
|
13
16
|
|
|
14
|
-
def
|
|
15
|
-
|
|
17
|
+
def set_locale
|
|
18
|
+
@locale = params[:locale] || I18n.default_locale
|
|
16
19
|
end
|
|
17
20
|
end
|
|
18
21
|
end
|
|
@@ -6,16 +6,21 @@ module Spina
|
|
|
6
6
|
# Controller for {Conference} objects.
|
|
7
7
|
# @see Conference
|
|
8
8
|
class ConferencesController < ApplicationController
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
PARTS_PARAMS = [
|
|
10
|
+
:name, :title, :type, :content, :filename, :signed_blob_id, :alt, :attachment_id, :image_id,
|
|
11
|
+
images_attributes: %i[filename signed_blob_id image_id alt],
|
|
12
|
+
content_attributes: [
|
|
13
|
+
:name, :title,
|
|
14
|
+
parts_attributes: [
|
|
15
|
+
:name, :title, :type, :content, :filename, :signed_blob_id, :alt, :attachment_id, :image_id,
|
|
16
|
+
images_attributes: %i[filename signed_blob_id image_id alt]
|
|
17
|
+
]
|
|
18
|
+
]
|
|
18
19
|
].freeze
|
|
20
|
+
CONTENT_PARAMS = Spina.config.locales.inject({}) { |params, locale| params.merge("#{locale}_content_attributes": [*PARTS_PARAMS]) }
|
|
21
|
+
PARAMS = [:start_date, :finish_date, :name, **CONTENT_PARAMS,
|
|
22
|
+
events_attributes: %i[id name start_datetime finish_datetime description location] ].freeze
|
|
23
|
+
PARTS = %w[text submission_url submission_email_address submission_date submission_text gallery sponsors].freeze
|
|
19
24
|
|
|
20
25
|
before_action :set_conference, only: %i[edit update destroy]
|
|
21
26
|
before_action :set_conferences_breadcrumb
|
|
@@ -58,7 +63,7 @@ module Spina
|
|
|
58
63
|
add_breadcrumb t('.new')
|
|
59
64
|
render :new
|
|
60
65
|
end
|
|
61
|
-
format.
|
|
66
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @conference.errors } }
|
|
62
67
|
end
|
|
63
68
|
end
|
|
64
69
|
end
|
|
@@ -74,7 +79,7 @@ module Spina
|
|
|
74
79
|
add_breadcrumb @conference.name
|
|
75
80
|
render :edit
|
|
76
81
|
end
|
|
77
|
-
format.
|
|
82
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @conference.errors } }
|
|
78
83
|
end
|
|
79
84
|
end
|
|
80
85
|
end
|
|
@@ -90,7 +95,7 @@ module Spina
|
|
|
90
95
|
add_breadcrumb @conference.name
|
|
91
96
|
render :edit
|
|
92
97
|
end
|
|
93
|
-
format.
|
|
98
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @conference.errors } }
|
|
94
99
|
end
|
|
95
100
|
end
|
|
96
101
|
end
|
|
@@ -116,31 +121,17 @@ module Spina
|
|
|
116
121
|
end
|
|
117
122
|
|
|
118
123
|
def set_parts_attributes
|
|
119
|
-
@parts_attributes = PARTS
|
|
124
|
+
@parts_attributes = current_theme.parts.select { |part| PARTS.include? part[:name] }
|
|
120
125
|
end
|
|
121
126
|
|
|
122
127
|
def build_parts
|
|
123
128
|
return unless @parts_attributes.is_a? Array
|
|
124
129
|
|
|
125
|
-
@
|
|
126
|
-
@conference.parts.where(name: part_attributes[:name]).first_or_initialize(**part_attributes)
|
|
127
|
-
.tap { |part| part.partable ||= part.partable_type.constantize.new }
|
|
128
|
-
end
|
|
130
|
+
@parts = @parts_attributes.collect { |part_attributes| @conference.part(part_attributes) }
|
|
129
131
|
end
|
|
130
132
|
|
|
131
|
-
def conference_params
|
|
132
|
-
params.require(:
|
|
133
|
-
events_attributes:
|
|
134
|
-
%i[id name date start_time finish_time description location],
|
|
135
|
-
parts_attributes:
|
|
136
|
-
[:id, :title, :name, :partable_type, :partable_id,
|
|
137
|
-
{ partable_attributes:
|
|
138
|
-
[:id, :content, :image_tokens, :image_positions, :date, :time,
|
|
139
|
-
{ structure_items_attributes:
|
|
140
|
-
[:id, :position, :_destroy,
|
|
141
|
-
{ structure_parts_attributes:
|
|
142
|
-
[:id, :title, :structure_partable_type, :name, :partable_id,
|
|
143
|
-
{ partable_attributes: {} }] }] }] }])
|
|
133
|
+
def conference_params
|
|
134
|
+
params.require(:conference).permit(PARAMS)
|
|
144
135
|
end
|
|
145
136
|
end
|
|
146
137
|
end
|
|
@@ -44,7 +44,7 @@ module Spina
|
|
|
44
44
|
add_breadcrumb t('.new')
|
|
45
45
|
render :new
|
|
46
46
|
end
|
|
47
|
-
format.
|
|
47
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @delegate.errors } }
|
|
48
48
|
end
|
|
49
49
|
end
|
|
50
50
|
end
|
|
@@ -60,7 +60,7 @@ module Spina
|
|
|
60
60
|
add_breadcrumb @delegate.full_name
|
|
61
61
|
render :edit
|
|
62
62
|
end
|
|
63
|
-
format.
|
|
63
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @delegate.errors } }
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
66
|
end
|
|
@@ -76,7 +76,7 @@ module Spina
|
|
|
76
76
|
add_breadcrumb @delegate.full_name
|
|
77
77
|
render :edit
|
|
78
78
|
end
|
|
79
|
-
format.
|
|
79
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @delegate.errors } }
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
end
|
|
@@ -105,10 +105,8 @@ module Spina
|
|
|
105
105
|
end
|
|
106
106
|
|
|
107
107
|
def delegate_params
|
|
108
|
-
params.require(:
|
|
109
|
-
|
|
110
|
-
conference_ids: [],
|
|
111
|
-
dietary_requirement_ids: [])
|
|
108
|
+
params.require(:delegate).permit(:first_name, :last_name, :email_address, :url, :institution_id,
|
|
109
|
+
conference_ids: [], dietary_requirement_ids: [])
|
|
112
110
|
end
|
|
113
111
|
end
|
|
114
112
|
end
|
|
@@ -44,7 +44,7 @@ module Spina
|
|
|
44
44
|
add_breadcrumb t('.new')
|
|
45
45
|
render :new
|
|
46
46
|
end
|
|
47
|
-
format.
|
|
47
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @dietary_requirement.errors } }
|
|
48
48
|
end
|
|
49
49
|
end
|
|
50
50
|
end
|
|
@@ -60,7 +60,7 @@ module Spina
|
|
|
60
60
|
add_breadcrumb @dietary_requirement.name
|
|
61
61
|
render :edit
|
|
62
62
|
end
|
|
63
|
-
format.
|
|
63
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @dietary_requirement.errors } }
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
66
|
end
|
|
@@ -76,7 +76,7 @@ module Spina
|
|
|
76
76
|
add_breadcrumb @dietary_requirement.name
|
|
77
77
|
render :edit
|
|
78
78
|
end
|
|
79
|
-
format.
|
|
79
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @dietary_requirement.errors } }
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
end
|
|
@@ -98,7 +98,7 @@ module Spina
|
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
def dietary_requirement_params
|
|
101
|
-
params.require(:
|
|
101
|
+
params.require(:dietary_requirement).permit(:name)
|
|
102
102
|
end
|
|
103
103
|
end
|
|
104
104
|
end
|
|
@@ -44,7 +44,7 @@ module Spina
|
|
|
44
44
|
add_breadcrumb t('.new')
|
|
45
45
|
render :new
|
|
46
46
|
end
|
|
47
|
-
format.
|
|
47
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @institution.errors } }
|
|
48
48
|
end
|
|
49
49
|
end
|
|
50
50
|
end
|
|
@@ -60,7 +60,7 @@ module Spina
|
|
|
60
60
|
add_breadcrumb @institution.name
|
|
61
61
|
render :edit
|
|
62
62
|
end
|
|
63
|
-
format.
|
|
63
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @institution.errors } }
|
|
64
64
|
end
|
|
65
65
|
end
|
|
66
66
|
end
|
|
@@ -76,7 +76,7 @@ module Spina
|
|
|
76
76
|
add_breadcrumb @institution.name
|
|
77
77
|
render :edit
|
|
78
78
|
end
|
|
79
|
-
format.
|
|
79
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @institution.errors } }
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
end
|
|
@@ -98,7 +98,7 @@ module Spina
|
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
def conference_params
|
|
101
|
-
params.require(:
|
|
101
|
+
params.require(:institution).permit(:name, :city, :logo_id)
|
|
102
102
|
end
|
|
103
103
|
end
|
|
104
104
|
end
|
|
@@ -43,7 +43,7 @@ module Spina
|
|
|
43
43
|
add_breadcrumb t('.new')
|
|
44
44
|
render :new
|
|
45
45
|
end
|
|
46
|
-
format.
|
|
46
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @presentation_attachment_type.errors } }
|
|
47
47
|
end
|
|
48
48
|
end
|
|
49
49
|
end
|
|
@@ -59,7 +59,7 @@ module Spina
|
|
|
59
59
|
add_breadcrumb @presentation_attachment_type.name
|
|
60
60
|
render :edit
|
|
61
61
|
end
|
|
62
|
-
format.
|
|
62
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @presentation_attachment_type.errors } }
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
end
|
|
@@ -75,7 +75,7 @@ module Spina
|
|
|
75
75
|
add_breadcrumb @presentation_attachment_type.name
|
|
76
76
|
render :edit
|
|
77
77
|
end
|
|
78
|
-
format.
|
|
78
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @presentation_attachment_type.errors } }
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
81
|
end
|
|
@@ -96,7 +96,7 @@ module Spina
|
|
|
96
96
|
|
|
97
97
|
# noinspection RubyInstanceMethodNamingConvention
|
|
98
98
|
def presentation_attachment_type_params
|
|
99
|
-
params.require(:
|
|
99
|
+
params.require(:presentation_attachment_type).permit(:name)
|
|
100
100
|
end
|
|
101
101
|
end
|
|
102
102
|
end
|
|
@@ -46,7 +46,7 @@ module Spina
|
|
|
46
46
|
add_breadcrumb t('.new')
|
|
47
47
|
render :new
|
|
48
48
|
end
|
|
49
|
-
format.
|
|
49
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @presentation_type.errors } }
|
|
50
50
|
end
|
|
51
51
|
end
|
|
52
52
|
end
|
|
@@ -62,7 +62,7 @@ module Spina
|
|
|
62
62
|
add_breadcrumb @presentation_type.name
|
|
63
63
|
render :edit
|
|
64
64
|
end
|
|
65
|
-
format.
|
|
65
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @presentation_type.errors } }
|
|
66
66
|
end
|
|
67
67
|
end
|
|
68
68
|
end
|
|
@@ -78,7 +78,7 @@ module Spina
|
|
|
78
78
|
add_breadcrumb @presentation_type.name
|
|
79
79
|
render :edit
|
|
80
80
|
end
|
|
81
|
-
format.
|
|
81
|
+
format.turbo_stream { render partial: 'errors', locals: { errors: @presentation_type.errors } }
|
|
82
82
|
end
|
|
83
83
|
end
|
|
84
84
|
end
|
|
@@ -101,7 +101,7 @@ module Spina
|
|
|
101
101
|
end
|
|
102
102
|
|
|
103
103
|
def presentation_type_params
|
|
104
|
-
params.require(:
|
|
104
|
+
params.require(:presentation_type).permit(:name, :conference_id, :minutes)
|
|
105
105
|
end
|
|
106
106
|
end
|
|
107
107
|
end
|