spina-admin-conferences 1.3.7 → 1.3.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -10
  3. data/app/assets/config/spina_admin_conferences_manifest.js +4 -2
  4. data/app/assets/javascripts/{spina/admin/conferences/controllers/conference_events_form_controller.es6 → controllers/spina/admin/conferences/conference_events_form_controller.js} +3 -4
  5. data/app/assets/javascripts/{spina/admin/conferences/controllers/presentation_attachments_form_controller.es6 → controllers/spina/admin/conferences/presentation_attachments_form_controller.js} +3 -4
  6. data/app/assets/javascripts/{spina/admin/conferences/controllers/select_options_controller.es6 → controllers/spina/admin/conferences/select_options_controller.js} +8 -9
  7. data/app/assets/javascripts/importmap.json.erb +6 -0
  8. data/app/assets/javascripts/spina/admin/conferences/application.js +4 -0
  9. data/app/assets/stylesheets/spina/admin/conferences/application.sass +4 -0
  10. data/app/controllers/spina/admin/conferences/application_controller.rb +1 -1
  11. data/app/controllers/spina/admin/conferences/conferences_controller.rb +3 -3
  12. data/app/controllers/spina/admin/conferences/delegates_controller.rb +3 -3
  13. data/app/controllers/spina/admin/conferences/dietary_requirements_controller.rb +3 -3
  14. data/app/controllers/spina/admin/conferences/institutions_controller.rb +3 -3
  15. data/app/controllers/spina/admin/conferences/presentation_attachment_types_controller.rb +3 -3
  16. data/app/controllers/spina/admin/conferences/presentation_types_controller.rb +3 -3
  17. data/app/controllers/spina/admin/conferences/presentations_controller.rb +3 -3
  18. data/app/controllers/spina/admin/conferences/rooms_controller.rb +3 -3
  19. data/app/controllers/spina/admin/conferences/sessions_controller.rb +3 -3
  20. data/app/views/layouts/spina/admin/conferences/application.html.haml +6 -0
  21. data/app/views/layouts/spina/admin/conferences/conferences.html.haml +2 -4
  22. data/app/views/layouts/spina/admin/conferences/delegates.html.haml +2 -4
  23. data/app/views/layouts/spina/admin/conferences/dietary_requirements.html.haml +2 -4
  24. data/app/views/layouts/spina/admin/conferences/institutions.html.haml +2 -4
  25. data/app/views/layouts/spina/admin/conferences/presentation_attachment_types.html.haml +2 -4
  26. data/app/views/layouts/spina/admin/conferences/presentations.html.haml +2 -4
  27. data/app/views/spina/admin/conferences/application/_errors.turbo_stream.haml +1 -0
  28. data/app/views/spina/admin/conferences/conferences/_event_fields.html.haml +3 -4
  29. data/app/views/spina/admin/conferences/conferences/_event_row.html.haml +2 -2
  30. data/app/views/spina/admin/conferences/conferences/_form.html.haml +1 -1
  31. data/app/views/spina/admin/conferences/conferences/_form_conference_details.html.haml +7 -7
  32. data/app/views/spina/admin/conferences/delegates/_form.html.haml +1 -1
  33. data/app/views/spina/admin/conferences/delegates/_form_delegate_details.html.haml +1 -1
  34. data/app/views/spina/admin/conferences/dietary_requirements/_form.html.haml +1 -1
  35. data/app/views/spina/admin/conferences/dietary_requirements/_form_dietary_requirement_details.html.haml +1 -1
  36. data/app/views/spina/admin/conferences/events/new.js.erb +3 -9
  37. data/app/views/spina/admin/conferences/institutions/_form.html.haml +1 -1
  38. data/app/views/spina/admin/conferences/institutions/_form_institution_details.html.haml +1 -1
  39. data/app/views/spina/admin/conferences/presentation_attachment_types/_form.html.haml +2 -2
  40. data/app/views/spina/admin/conferences/presentation_attachments/new.js.erb +3 -3
  41. data/app/views/spina/admin/conferences/presentation_types/_form.html.haml +1 -1
  42. data/app/views/spina/admin/conferences/presentation_types/_form_presentation_type_details.html.haml +2 -2
  43. data/app/views/spina/admin/conferences/presentations/_attachment_fields.html.haml +4 -4
  44. data/app/views/spina/admin/conferences/presentations/_attachment_row.html.haml +2 -2
  45. data/app/views/spina/admin/conferences/presentations/_form.html.haml +1 -1
  46. data/app/views/spina/admin/conferences/presentations/_form_presentation_details.html.haml +9 -9
  47. data/app/views/spina/admin/conferences/rooms/_form.html.haml +1 -1
  48. data/app/views/spina/admin/conferences/rooms/_form_room_details.html.haml +1 -1
  49. data/app/views/spina/admin/conferences/sessions/_form.html.haml +1 -1
  50. data/app/views/spina/admin/conferences/sessions/_form_session_details.html.haml +7 -7
  51. data/app/views/spina/admin/hooks/conferences/_head.html.haml +5 -0
  52. data/app/views/spina/admin/hooks/conferences/_primary_navigation.html.haml +15 -14
  53. data/app/views/spina/admin/hooks/conferences/_settings_secondary_navigation.html.haml +4 -2
  54. data/app/views/spina/admin/partables/admin/conferences/date_parts/_form.html.haml +1 -1
  55. data/app/views/spina/admin/partables/admin/conferences/time_parts/_form.html.haml +1 -1
  56. data/config/initializers/assets.rb +1 -1
  57. data/lib/spina/admin/conferences.rb +2 -0
  58. data/lib/spina/admin/conferences/version.rb +1 -1
  59. metadata +65 -37
  60. data/app/assets/javascripts/spina/admin/conferences/application.es6 +0 -20
  61. data/app/views/spina/admin/conferences/application/_errors.js.erb +0 -2
  62. data/config/initializers/types.rb +0 -13
  63. 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: 4855ced148381eb461a10f277ee0f89e809317a5a2c0709ec6ab47811e356bb9
4
- data.tar.gz: 37fe33f1025e9419990d4c6a7fdac696f7d5769a53a6d20249e1bb86d1897a33
3
+ metadata.gz: f38df5890735f99b346659834260a7b0bcb51e1611b80fc151c5c932dacd6de6
4
+ data.tar.gz: 91a6b35f8664fc950fdac3b8ae6f4e0330270162983a2ffca7abcc22e071964f
5
5
  SHA512:
6
- metadata.gz: f8c63252841083f687aab4546c87b4d350cab948262b3f0730b36f9bd69889f5784b257761da6a2752c8fab359bed582decf733ca1a76d86846b2b329659b3dc
7
- data.tar.gz: 1e0ce2da9d466c0ca4727f74453bc03d71bed9eaf357c70a6f47de75ace8e563c35d6bca845ef6bd760797d6d464bb18a1712811a70b10d140460246104ae01f
6
+ metadata.gz: b1297cbf9a08c1fb865d83e105f8bc6643f0677f28bfe9750f159d43d381d0606cdbd744d85f4ee95c8c61dfeca5b8eca517f302a03151fc4696e3341db10825
7
+ data.tar.gz: abb25d7397f7e319511032994f9a42e9e0071da794fad40b0a97967af8ed31226933695e2f6187504965be7447afd4ab3f4c87cc857806b39d95f21777131ee2
data/README.md CHANGED
@@ -1,13 +1,12 @@
1
1
  # Conferences
2
2
 
3
- [![Build Status](https://travis-ci.com/jmalcic/spina-conferences.svg?branch=master)](https://travis-ci.com/jmalcic/spina-conferences)
4
- ![Rails tests](https://github.com/jmalcic/spina-conferences/workflows/Rails%20tests/badge.svg?branch=master&event=push)
5
- [![Coverage Status](https://coveralls.io/repos/github/jmalcic/spina-conferences/badge.svg?branch=master)](https://coveralls.io/github/jmalcic/spina-conferences?branch=master)
6
- [![Total alerts](https://img.shields.io/lgtm/alerts/g/jmalcic/spina-conferences.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/jmalcic/spina-conferences/alerts/)
7
- [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/jmalcic/spina-conferences.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/jmalcic/spina-conferences/context:javascript)
8
- [![Code quality](https://www.codefactor.io/repository/github/jmalcic/spina-conferences/badge)](https://www.codefactor.io/repository/github/jmalcic/spina-conferences)
9
- [![Inline docs](http://inch-ci.org/github/jmalcic/spina-conferences.svg?branch=master)](http://inch-ci.org/github/jmalcic/spina-conferences)
10
- [![Visual testing](https://percy.io/static/images/percy-badge.svg)](https://percy.io/Ulab/spina-conferences)
3
+ ![Rails tests](https://github.com/jmalcic/spina-admin-conferences/workflows/Rails%20tests/badge.svg?branch=master&event=push)
4
+ [![Coverage Status](https://coveralls.io/repos/github/jmalcic/spina-admin-conferences/badge.svg?branch=master)](https://coveralls.io/github/jmalcic/spina-admin-conferences?branch=master)
5
+ [![Total alerts](https://img.shields.io/lgtm/alerts/g/jmalcic/spina-admin-conferences.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/jmalcic/spina-admin-conferences/alerts/)
6
+ [![Language grade: JavaScript](https://img.shields.io/lgtm/grade/javascript/g/jmalcic/spina-admin-conferences.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/jmalcic/spina-admin-conferences/context:javascript)
7
+ [![Code quality](https://www.codefactor.io/repository/github/jmalcic/spina-admin-conferences/badge)](https://www.codefactor.io/repository/github/jmalcic/spina-admin-conferences)
8
+ [![Inline docs](http://inch-ci.org/github/jmalcic/spina-admin-conferences.svg?branch=master)](http://inch-ci.org/github/jmalcic/spina-admin-conferences)
9
+ [![Visual testing](https://percy.io/static/images/percy-badge.svg)](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-conferences', github: 'jmalcic/spina-conferences'
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 spina_conferences:install:migrations
82
+ $ rake spina_admin_conferences:install:migrations
84
83
  $ rake db:migrate
85
84
  ```
86
85
 
@@ -1,3 +1,5 @@
1
- //= link spina/admin/conferences/application.js
2
- //= link spina/admin/conferences/application.css
1
+ //= link spina/trix.js
2
+ //= link spina/trix.css
3
3
  //= link spina_manifest.js
4
+ //= link spina/admin/conferences/application.css
5
+ //= link_tree ../javascripts
@@ -1,14 +1,13 @@
1
- /* global Stimulus */
2
-
3
1
  /**
4
- * @external Stimulus
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 ConferenceEventsFormController extends Stimulus.Controller { // eslint-disable-line no-unused-vars
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 Stimulus
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 PresentationAttachmentsFormController extends Stimulus.Controller { // eslint-disable-line no-unused-vars
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 Stimulus
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 Stimulus.Controller { // eslint-disable-line no-unused-vars
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} recordValues - The record values.
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
- recordValuesChanged() {
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.recordValues, target)
63
- this.recordValues = recordFilter.setVisibility()
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.recordValues
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)
@@ -0,0 +1,6 @@
1
+ {
2
+ "imports": {
3
+ "turbo": "<%= asset_path "turbo" %>",
4
+ <%= importmap_list_with_stimulus_from Spina::Admin::Conferences::Engine.root.join('app/assets/javascripts/controllers').relative_path_from(Rails.root) %>
5
+ }
6
+ }
@@ -0,0 +1,4 @@
1
+ document.addEventListener('turbo:load', (event) => {
2
+ const customEvent = new CustomEvent('turbolinks:load', { cancelable: event.cancelable, bubbles: true, detail: event.detail })
3
+ document.documentElement.dispatchEvent(customEvent)
4
+ })
@@ -12,3 +12,7 @@ input[type="date"]
12
12
  select
13
13
  padding: 11px 10px
14
14
  width: 100%
15
+
16
+ .turbo-progress-bar
17
+ @import spina/configuration
18
+ background-color: $primary-color
@@ -12,7 +12,7 @@ module Spina
12
12
  private
13
13
 
14
14
  def admin_layout
15
- 'spina/admin/admin'
15
+ 'spina/admin/conferences/application'
16
16
  end
17
17
  end
18
18
  end
@@ -58,7 +58,7 @@ module Spina
58
58
  add_breadcrumb t('.new')
59
59
  render :new
60
60
  end
61
- format.js { render partial: 'errors', locals: { errors: @conference.errors } }
61
+ format.turbo_stream { render partial: 'errors', locals: { errors: @conference.errors } }
62
62
  end
63
63
  end
64
64
  end
@@ -74,7 +74,7 @@ module Spina
74
74
  add_breadcrumb @conference.name
75
75
  render :edit
76
76
  end
77
- format.js { render partial: 'errors', locals: { errors: @conference.errors } }
77
+ format.turbo_stream { render partial: 'errors', locals: { errors: @conference.errors } }
78
78
  end
79
79
  end
80
80
  end
@@ -90,7 +90,7 @@ module Spina
90
90
  add_breadcrumb @conference.name
91
91
  render :edit
92
92
  end
93
- format.js { render partial: 'errors', locals: { errors: @conference.errors } }
93
+ format.turbo_stream { render partial: 'errors', locals: { errors: @conference.errors } }
94
94
  end
95
95
  end
96
96
  end
@@ -44,7 +44,7 @@ module Spina
44
44
  add_breadcrumb t('.new')
45
45
  render :new
46
46
  end
47
- format.js { render partial: 'errors', locals: { errors: @delegate.errors } }
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.js { render partial: 'errors', locals: { errors: @delegate.errors } }
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.js { render partial: 'errors', locals: { errors: @delegate.errors } }
79
+ format.turbo_stream { render partial: 'errors', locals: { errors: @delegate.errors } }
80
80
  end
81
81
  end
82
82
  end
@@ -44,7 +44,7 @@ module Spina
44
44
  add_breadcrumb t('.new')
45
45
  render :new
46
46
  end
47
- format.js { render partial: 'errors', locals: { errors: @dietary_requirement.errors } }
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.js { render partial: 'errors', locals: { errors: @dietary_requirement.errors } }
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.js { render partial: 'errors', locals: { errors: @dietary_requirement.errors } }
79
+ format.turbo_stream { render partial: 'errors', locals: { errors: @dietary_requirement.errors } }
80
80
  end
81
81
  end
82
82
  end
@@ -44,7 +44,7 @@ module Spina
44
44
  add_breadcrumb t('.new')
45
45
  render :new
46
46
  end
47
- format.js { render partial: 'errors', locals: { errors: @institution.errors } }
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.js { render partial: 'errors', locals: { errors: @institution.errors } }
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.js { render partial: 'errors', locals: { errors: @institution.errors } }
79
+ format.turbo_stream { render partial: 'errors', locals: { errors: @institution.errors } }
80
80
  end
81
81
  end
82
82
  end
@@ -43,7 +43,7 @@ module Spina
43
43
  add_breadcrumb t('.new')
44
44
  render :new
45
45
  end
46
- format.js { render partial: 'errors', locals: { errors: @presentation_attachment_type.errors } }
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.js { render partial: 'errors', locals: { errors: @presentation_attachment_type.errors } }
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.js { render partial: 'errors', locals: { errors: @presentation_attachment_type.errors } }
78
+ format.turbo_stream { render partial: 'errors', locals: { errors: @presentation_attachment_type.errors } }
79
79
  end
80
80
  end
81
81
  end
@@ -46,7 +46,7 @@ module Spina
46
46
  add_breadcrumb t('.new')
47
47
  render :new
48
48
  end
49
- format.js { render partial: 'errors', locals: { errors: @presentation_type.errors } }
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.js { render partial: 'errors', locals: { errors: @presentation_type.errors } }
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.js { render partial: 'errors', locals: { errors: @presentation_type.errors } }
81
+ format.turbo_stream { render partial: 'errors', locals: { errors: @presentation_type.errors } }
82
82
  end
83
83
  end
84
84
  end
@@ -45,7 +45,7 @@ module Spina
45
45
  add_breadcrumb t('.new')
46
46
  render :new
47
47
  end
48
- format.js { render partial: 'errors', locals: { errors: @presentation.errors } }
48
+ format.turbo_stream { render partial: 'errors', locals: { errors: @presentation.errors } }
49
49
  end
50
50
  end
51
51
  end
@@ -61,7 +61,7 @@ module Spina
61
61
  add_breadcrumb @presentation.title
62
62
  render :edit
63
63
  end
64
- format.js { render partial: 'errors', locals: { errors: @presentation.errors } }
64
+ format.turbo_stream { render partial: 'errors', locals: { errors: @presentation.errors } }
65
65
  end
66
66
  end
67
67
  end
@@ -77,7 +77,7 @@ module Spina
77
77
  add_breadcrumb @presentation.title
78
78
  render :edit
79
79
  end
80
- format.js { render partial: 'errors', locals: { errors: @presentation.errors } }
80
+ format.turbo_stream { render partial: 'errors', locals: { errors: @presentation.errors } }
81
81
  end
82
82
  end
83
83
  end
@@ -46,7 +46,7 @@ module Spina
46
46
  add_breadcrumb t('.new')
47
47
  render :new
48
48
  end
49
- format.js { render partial: 'errors', locals: { errors: @room.errors } }
49
+ format.turbo_stream { render partial: 'errors', locals: { errors: @room.errors } }
50
50
  end
51
51
  end
52
52
  end
@@ -62,7 +62,7 @@ module Spina
62
62
  add_breadcrumb @room.name
63
63
  render :edit
64
64
  end
65
- format.js { render partial: 'errors', locals: { errors: @room.errors } }
65
+ format.turbo_stream { render partial: 'errors', locals: { errors: @room.errors } }
66
66
  end
67
67
  end
68
68
  end
@@ -78,7 +78,7 @@ module Spina
78
78
  add_breadcrumb @room.name
79
79
  render :edit
80
80
  end
81
- format.js { render partial: 'errors', locals: { errors: @room.errors } }
81
+ format.turbo_stream { render partial: 'errors', locals: { errors: @room.errors } }
82
82
  end
83
83
  end
84
84
  end
@@ -47,7 +47,7 @@ module Spina
47
47
  add_breadcrumb t('.new')
48
48
  render :new
49
49
  end
50
- format.js { render partial: 'errors', locals: { errors: @session.errors } }
50
+ format.turbo_stream { render partial: 'errors', locals: { errors: @session.errors } }
51
51
  end
52
52
  end
53
53
  end
@@ -63,7 +63,7 @@ module Spina
63
63
  add_breadcrumb @session.name
64
64
  render :edit
65
65
  end
66
- format.js { render partial: 'errors', locals: { errors: @session.errors } }
66
+ format.turbo_stream { render partial: 'errors', locals: { errors: @session.errors } }
67
67
  end
68
68
  end
69
69
  end
@@ -79,7 +79,7 @@ module Spina
79
79
  add_breadcrumb @session.name
80
80
  render :edit
81
81
  end
82
- format.js { render partial: 'errors', locals: { errors: @session.errors } }
82
+ format.turbo_stream { render partial: 'errors', locals: { errors: @session.errors } }
83
83
  end
84
84
  end
85
85
  end
@@ -0,0 +1,6 @@
1
+ - content_for :application do
2
+ %div{ data: { turbolinks: 'false' } }
3
+ = yield(:admin_header)
4
+ = yield
5
+
6
+ = render template: 'layouts/spina/admin/admin'
@@ -1,4 +1,4 @@
1
- - content_for :application do
1
+ - content_for :admin_header do
2
2
  %header#header
3
3
  #header_actions
4
4
  = yield(:header_actions)
@@ -14,6 +14,4 @@
14
14
  %li{class: ('active' if controller_name == 'sessions')}
15
15
  = link_to Spina::Admin::Conferences::Session.model_name.human(count: 0), admin_conferences_sessions_path
16
16
 
17
- = yield
18
-
19
- = render template: 'layouts/spina/admin/admin'
17
+ = render template: 'layouts/spina/admin/conferences/application'