tramway-event 1.11.5.1 → 1.12
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/app/assets/stylesheets/tramway/event/events/show.css.sass +0 -4
- data/app/decorators/tramway/event/events/show/event_decorator.rb +2 -1
- data/app/helpers/tramway/event/application_helper.rb +1 -0
- data/app/views/tramway/event/events/_error.html.haml +11 -0
- data/app/views/tramway/event/events/_show_page.html.haml +4 -21
- data/app/views/tramway/event/events/_success.html.haml +10 -0
- data/lib/tramway/event/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c4346908bef28bd8fc02c3e3ffa5eadc70c3c984fa777bfdcac1b5bbb2dd083e
|
|
4
|
+
data.tar.gz: 95ff1569b4efa5bb3db915652cc1f1e469ba55fac9b1b680f15bafa95c41028a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1cc8ff84f9168eed351be3fb5ec9a4407057186aeaedd6feae3230d78c5bbcd7ff78db31382bdebddfb4acf46972731cac78abd1dd710d1099e307df1be29918
|
|
7
|
+
data.tar.gz: 0627d80603bfcb547bcbf2fa4e5121db895426f439a49e6f14e1db03a966c44b5b64f5acb35bcca64b38f625b2c2b06d7cf90155209db8e3b0e6377711826a26
|
|
@@ -46,7 +46,8 @@ class Tramway::Event::Events::Show::EventDecorator < ::Tramway::Core::Applicatio
|
|
|
46
46
|
def responsible_person
|
|
47
47
|
{
|
|
48
48
|
phone: (object.creator.phone if object.creator&.phone&.present?),
|
|
49
|
-
email: (object.creator.email if object.creator&.email&.present?)
|
|
49
|
+
email: (object.creator.email if object.creator&.email&.present?),
|
|
50
|
+
social_networks: (object.creator.social_networks.active if object.creator.respond_to?(:social_networks))
|
|
50
51
|
}
|
|
51
52
|
end
|
|
52
53
|
end
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
.alert.alert-danger{ role: "alert" }
|
|
2
|
+
%button.close{"aria-label" => "Close", "data-dismiss" => "alert", type: "button"}
|
|
3
|
+
%span{"aria-hidden" => "true"} ×
|
|
4
|
+
%h4.alert-heading Ошибка при отправлении заявки!
|
|
5
|
+
%p Подробности ошибки описаны ниже в форме приёма заявок
|
|
6
|
+
%hr/
|
|
7
|
+
%p.mb-0
|
|
8
|
+
Если ошибка повторяется или не отображается, обращайтесь по телефону
|
|
9
|
+
= tel_tag @event.responsible_person[:phone] || @application.phone
|
|
10
|
+
или пишите на email
|
|
11
|
+
= mail_to @event.responsible_person[:email] || @application.email
|
|
@@ -1,32 +1,15 @@
|
|
|
1
1
|
= stylesheet_link_tag 'tramway/event/events/show'
|
|
2
2
|
- if params[:flash] == 'success'
|
|
3
|
-
|
|
4
|
-
%button.close{"aria-label" => "Close", "data-dismiss" => "alert", type: "button"}
|
|
5
|
-
%span{"aria-hidden" => "true"} ×
|
|
6
|
-
%h4.alert-heading Заявка успешно отправлена!
|
|
7
|
-
%hr/
|
|
8
|
-
%p.mb-0
|
|
9
|
-
По всем вопросам обращайтесь по телефону
|
|
10
|
-
= tel_tag @event.responsible_person[:phone] || @application.phone
|
|
11
|
-
или пишите на email
|
|
12
|
-
= mail_to @event.responsible_person[:email] || @application.email
|
|
3
|
+
= render 'tramway/event/events/success'
|
|
13
4
|
- if params[:flash] == 'error'
|
|
14
|
-
|
|
15
|
-
%button.close{"aria-label" => "Close", "data-dismiss" => "alert", type: "button"}
|
|
16
|
-
%span{"aria-hidden" => "true"} ×
|
|
17
|
-
%h4.alert-heading Ошибка при отправлении заявки!
|
|
18
|
-
%p Подробности ошибки описаны ниже в форме приёма заявок
|
|
19
|
-
%hr/
|
|
20
|
-
%p.mb-0
|
|
21
|
-
Если ошибка повторяется или не отображается, обращайтесь по телефону
|
|
22
|
-
= tel_tag @event.responsible_person[:phone] || @application.phone
|
|
23
|
-
или пишите на email
|
|
24
|
-
= mail_to @event.responsible_person[:email] || @application.email
|
|
5
|
+
= render 'tramway/event/events/error'
|
|
25
6
|
= render 'tramway/landing/blocks/templates/full_page', block: event, buttons: [OpenStruct.new(title: t('.registration'), anchor: '#registration')]
|
|
26
7
|
- content_for :main_image do
|
|
27
8
|
= request.protocol + request.host_with_port + event.background.url
|
|
28
9
|
%main.event.show
|
|
29
10
|
.container
|
|
11
|
+
- if @event.responsible_person[:social_networks]&.any? || @event.responsible_person[:phone].present? || @event.responsible_person[:email].present?
|
|
12
|
+
= render 'tramway/landing/blocks/block_types/contacts', block: OpenStruct.new(title: 'Контакты'), social_networks: @event.responsible_person[:social_networks], email: @event.responsible_person[:email], phone: @event.responsible_person[:phone]
|
|
30
13
|
- if defined? sections_as_features
|
|
31
14
|
= render 'tramway/landing/blocks/templates/features_list', collection: sections_as_features
|
|
32
15
|
.row.description
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
.alert.alert-success{role: "alert"}
|
|
2
|
+
%button.close{"aria-label" => "Close", "data-dismiss" => "alert", type: "button"}
|
|
3
|
+
%span{"aria-hidden" => "true"} ×
|
|
4
|
+
%h4.alert-heading Заявка успешно отправлена!
|
|
5
|
+
%hr/
|
|
6
|
+
%p.mb-0
|
|
7
|
+
По всем вопросам обращайтесь по телефону
|
|
8
|
+
= tel_tag @event.responsible_person[:phone] || @application.phone
|
|
9
|
+
или пишите на email
|
|
10
|
+
= mail_to @event.responsible_person[:email] || @application.email
|
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.
|
|
4
|
+
version: '1.12'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pavel Kalashnikov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-03-
|
|
11
|
+
date: 2020-03-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: configus
|
|
@@ -76,7 +76,9 @@ files:
|
|
|
76
76
|
- app/models/tramway/event/person.rb
|
|
77
77
|
- app/models/tramway/event/place.rb
|
|
78
78
|
- app/models/tramway/event/section.rb
|
|
79
|
+
- app/views/tramway/event/events/_error.html.haml
|
|
79
80
|
- app/views/tramway/event/events/_show_page.html.haml
|
|
81
|
+
- app/views/tramway/event/events/_success.html.haml
|
|
80
82
|
- app/views/tramway/event/events/show.html.haml
|
|
81
83
|
- app/views/tramway/event/participants/_form.html.haml
|
|
82
84
|
- app/views/tramway/event/sections/_show_page.html.haml
|
|
@@ -135,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
135
137
|
- !ruby/object:Gem::Version
|
|
136
138
|
version: '0'
|
|
137
139
|
requirements: []
|
|
138
|
-
rubygems_version: 3.
|
|
140
|
+
rubygems_version: 3.1.2
|
|
139
141
|
signing_key:
|
|
140
142
|
specification_version: 4
|
|
141
143
|
summary: Rails engine for events
|