tramway-event 1.9.18.1 → 1.9.18.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 850dd7d58337575856fb1a9e750626f024279e22ab3c9c0427affb62c3484205
4
- data.tar.gz: ac1ee79fa0ae402f0f764cf5fc637da008c09c2f22334110a680a5e9788b3f6d
3
+ metadata.gz: 4249e234b8a049f3d20b2452f499b0378ad3d0ec7eb4833de2f08942974b1399
4
+ data.tar.gz: 914ee5b092aecdd14d2a588e366c3a6823ff6914ff3292099d4737c61661bdef
5
5
  SHA512:
6
- metadata.gz: 341ebf2578059a699c9a072ecf8e0d1c870b93b85a595a4ddda00a49ae942d7977d7dc9d315af5b188ccb7045bbc6548a932787fc166bf6b853a3cd1bac7a2a0
7
- data.tar.gz: 82f7b7b970da72a4bc0dcb7cebfbe50d4574023356611346046d8d4d53cc610a6e950179ec2c2d9d5e6c909d3ce62105ca53b92a88ca7dff3af552d48ad6bbc8
6
+ metadata.gz: 1cb25e32dcb9690ef9e095521c4a603a00be265fda3a96b5ea40e910e4e74575550f72708c6edc17ad19f4f39f64b1cb8101b86ff21dc0dd3e1a4a81d9bf97c7
7
+ data.tar.gz: 756cf9a251ce8d609bf5e85a2bd23c81bd746bcf11755808cdd2b01a87f408053a7a571f0274ba8b29fb74ce1bec3ef2ee6726dbac11a0d965ff78b2aa6acb2d
@@ -0,0 +1,3 @@
1
+ class Tramway::Event::PlaceDecorator < Tramway::Core::ApplicationDecorator
2
+ delegate :title, to: :object
3
+ end
@@ -0,0 +1,13 @@
1
+ class Tramway::Event::PlaceForm < Tramway::Core::ApplicationForm
2
+ properties :title, :description, :coordinates, :photo, :city
3
+
4
+ def initialize(object)
5
+ super(object).tap do
6
+ form_properties title: :string,
7
+ description: :ckeditor,
8
+ coordinates: :string,
9
+ photo: :file,
10
+ city: :string
11
+ end
12
+ end
13
+ end
@@ -7,6 +7,7 @@ class Tramway::Event::Event < ::Tramway::Event::ApplicationRecord
7
7
  has_many :partakings, as: :part, class_name: 'Tramway::Event::Partaking'
8
8
  has_many :partnerships, class_name: 'Tramway::Partner::Partnership', as: :partner
9
9
  has_many :organizations, as: :partners, through: :partnerships, class_name: 'Tramway::Partner::Organization'
10
+ has_and_belongs_to_many :places
10
11
 
11
12
  enumerize :status, default: :common, in: [ :common, :main ]
12
13
 
@@ -0,0 +1,3 @@
1
+ class Tramway::Event::Place < Tramway::Core::ApplicationRecord
2
+ has_and_belongs_to_many :events
3
+ end
@@ -4,9 +4,6 @@
4
4
  %button.close{"aria-label" => "Close", "data-dismiss" => "alert", type: "button"}
5
5
  %span{"aria-hidden" => "true"} ×
6
6
  %h4.alert-heading Заявка успешно отправлена!
7
- %p
8
- Для подтверждения участия оплатите орг.взнос по
9
- = link_to 'ссылке', 'https://ulmicru.timepad.ru/event/1059138/', target: '_blank'
10
7
  %hr/
11
8
  %p.mb-0
12
9
  По всем вопросам обращайтесь по телефону
@@ -4,4 +4,5 @@
4
4
  ::Tramway::Event::Section,
5
5
  ::Tramway::Event::Person,
6
6
  ::Tramway::Event::Partaking,
7
+ ::Tramway::Event::Place,
7
8
  project: :event)
@@ -7,6 +7,7 @@ ru:
7
7
  tramway/event/section: Секция
8
8
  tramway/event/person: Член команды
9
9
  tramway/event/partaking: Должность
10
+ tramway/event/place: Место
10
11
  attributes:
11
12
  tramway/event/event:
12
13
  title: Название
@@ -63,6 +64,9 @@ ru:
63
64
  tramway/event/partaking:
64
65
  genitive: должность
65
66
  plural: должности
67
+ tramway/event/place:
68
+ genitive: место
69
+ plural: места
66
70
  collections:
67
71
  tramway/event/participant:
68
72
  requested: Необработанные
@@ -41,7 +41,10 @@ module Tramway::Event::Generators
41
41
  :rebuild_association_between_participant_and_partakings_to_polymorphic,
42
42
 
43
43
  :add_request_period_to_tramway_event_events,
44
- :add_description_to_tramway_event_people
44
+ :add_description_to_tramway_event_people,
45
+
46
+ :create_tramway_event_places,
47
+ :create_tramway_event_events_places
45
48
  ]
46
49
  migrations.each do |migration|
47
50
  migration_template "#{migration}.rb", "db/migrate/#{migration}.rb"
@@ -0,0 +1,10 @@
1
+ class CreateTramwayEventEventsPlaces < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :tramway_event_events_places do |t|
4
+ t.integer :event_id
5
+ t.integer :place_id
6
+
7
+ t.timestamps
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,14 @@
1
+ class CreateTramwayEventPlaces < ActiveRecord::Migration[5.1]
2
+ def change
3
+ create_table :tramway_event_places do |t|
4
+ t.text :title
5
+ t.text :description
6
+ t.point :coordinates
7
+ t.text :photo
8
+ t.text :city
9
+ t.text :state, default: :active
10
+
11
+ t.timestamps
12
+ end
13
+ end
14
+ end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Event
3
- VERSION = '1.9.18.1'
3
+ VERSION = '1.9.18.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-event
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.18.1
4
+ version: 1.9.18.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-07 00:00:00.000000000 Z
11
+ date: 2019-09-23 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Rails engine for events
14
14
  email:
@@ -36,6 +36,7 @@ files:
36
36
  - app/decorators/tramway/event/participant_form_field_decorator.rb
37
37
  - app/decorators/tramway/event/participant_xlsx_decorator.rb
38
38
  - app/decorators/tramway/event/person_decorator.rb
39
+ - app/decorators/tramway/event/place_decorator.rb
39
40
  - app/decorators/tramway/event/section_decorator.rb
40
41
  - app/decorators/tramway/event/section_feature_decorator.rb
41
42
  - app/forms/tramway/event/event_form.rb
@@ -44,6 +45,7 @@ files:
44
45
  - app/forms/tramway/event/participant_form.rb
45
46
  - app/forms/tramway/event/participant_form_field_form.rb
46
47
  - app/forms/tramway/event/person_form.rb
48
+ - app/forms/tramway/event/place_form.rb
47
49
  - app/forms/tramway/event/section_form.rb
48
50
  - app/helpers/tramway/event/application_helper.rb
49
51
  - app/jobs/tramway/event/application_job.rb
@@ -54,6 +56,7 @@ files:
54
56
  - app/models/tramway/event/participant.rb
55
57
  - app/models/tramway/event/participant_form_field.rb
56
58
  - app/models/tramway/event/person.rb
59
+ - app/models/tramway/event/place.rb
57
60
  - app/models/tramway/event/section.rb
58
61
  - app/views/tramway/event/events/_show_page.html.haml
59
62
  - app/views/tramway/event/events/show.html.haml
@@ -81,10 +84,12 @@ files:
81
84
  - lib/tramway/event/generators/templates/add_state_to_tramway_event_partakings.rb
82
85
  - lib/tramway/event/generators/templates/add_status_to_tramway_event_events.rb
83
86
  - lib/tramway/event/generators/templates/create_tramway_event_events.rb
87
+ - lib/tramway/event/generators/templates/create_tramway_event_events_places.rb
84
88
  - lib/tramway/event/generators/templates/create_tramway_event_participant_form_fields.rb
85
89
  - lib/tramway/event/generators/templates/create_tramway_event_participants.rb
86
90
  - lib/tramway/event/generators/templates/create_tramway_event_people.rb
87
91
  - lib/tramway/event/generators/templates/create_tramway_event_people_sections.rb
92
+ - lib/tramway/event/generators/templates/create_tramway_event_places.rb
88
93
  - lib/tramway/event/generators/templates/create_tramway_event_sections.rb
89
94
  - lib/tramway/event/generators/templates/rebuild_association_between_participant_and_partakings_to_polymorphic.rb
90
95
  - lib/tramway/event/generators/templates/rename_tramway_event_people_sections_to_tramway_event_partakings.rb