effective_events 0.6.10 → 0.6.11
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9aac5034e09f95d3f0352c0ad6639e01639192040efe7fb639fa8ed2e6706a33
|
4
|
+
data.tar.gz: 86291f38c4e28437e6e854144924c38008ece0638f7cdc74f672470c3286ce2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7606a91e5c9119a1380ea90beb7c9cc838cd1e82b2cbefa6bdc9714ed7dfacc3ee05243a186fcb67f7c48e4f7188925a1032cada4a173385f0b57e236dc9c060
|
7
|
+
data.tar.gz: 5a0061c1046ab5e40781d8d5e767f2ec959daf2fe3f929cdcd47c50be7f1a76849b45ddd1ab1de3f53decc82d542e38cbebd6cd2ddfed4f45804a04fd3a4d7bd
|
@@ -1,6 +1,9 @@
|
|
1
1
|
module Effective
|
2
2
|
class EventRegistrationsController < ApplicationController
|
3
|
-
|
3
|
+
|
4
|
+
if defined?(Devise)
|
5
|
+
before_action :authenticate_user!, unless: -> { action_name == 'new' || (action_name == 'show' && params[:id] == 'start') }
|
6
|
+
end
|
4
7
|
|
5
8
|
include Effective::WizardController
|
6
9
|
|
@@ -1,18 +1,37 @@
|
|
1
1
|
= render 'layout' do
|
2
2
|
= render 'effective/event_registrations/content', resource: resource
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
- # Signed out
|
5
|
+
- if resource.owner.blank?
|
6
|
+
.card
|
7
|
+
.card-body
|
8
|
+
%p Welcome!
|
7
9
|
|
8
|
-
|
10
|
+
%p You are about to register for #{resource.event}.
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
+
%p
|
13
|
+
Please
|
14
|
+
= link_to 'sign in', '/users/sign_in'
|
15
|
+
or
|
16
|
+
= link_to 'sign up', '/users/sign_up'
|
17
|
+
to continue.
|
18
|
+
|
19
|
+
%p= link_to 'Sign In to Continue', '/users/sign_in', class: 'btn btn-primary'
|
12
20
|
|
13
|
-
|
21
|
+
- # Signed in
|
22
|
+
- if resource.owner.present?
|
23
|
+
.card
|
24
|
+
.card-body
|
25
|
+
%p Welcome #{current_user}!
|
14
26
|
|
15
|
-
|
16
|
-
= f.hidden_field :owner_id
|
27
|
+
%p You are registering for #{resource.event}.
|
17
28
|
|
18
|
-
=
|
29
|
+
= effective_form_with(model: resource, url: wizard_path(step), method: :put) do |f|
|
30
|
+
= f.hidden_field :id
|
31
|
+
|
32
|
+
= f.hidden_field :event_id
|
33
|
+
|
34
|
+
= f.hidden_field :owner_type
|
35
|
+
= f.hidden_field :owner_id
|
36
|
+
|
37
|
+
= f.save 'Save and Continue'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_events
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|