tramway-event 1.10.0.2 → 1.10.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9b457ab58d100b7c2dbfdfdd14d046993697e0e03907a644ec4207d227ff2be
|
4
|
+
data.tar.gz: df0413927172dd6780a9bdf1b98d82b6f1d56026b2dd3632689e026dbdf50b5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de7b24ca1f481e9ab6acabae301ba9a8bd650532492d494f17ae95afc3f77508689ec6a027c8dafe8a5158bcb94a1f2bdc914da9c915bcd477e29e54d79f1705
|
7
|
+
data.tar.gz: '085e99b22a37570e5ff4e141e6435f7789cd60961c16ea8f6d811accf9650b5c00a5a1214e01de0c8ce1866cc05d7f0dac39a6b21b1ca9e832807da9f4aab20d'
|
@@ -7,7 +7,7 @@ class Tramway::Event::ParticipantsController < Tramway::Event::ApplicationContro
|
|
7
7
|
if @participant_form.submit params[:tramway_event_participant].except :event_id
|
8
8
|
redirect_to event_path event, flash: :success
|
9
9
|
else
|
10
|
-
redirect_to event_path event, flash: :error, errors: @participant_form.errors.messages
|
10
|
+
redirect_to event_path event, flash: :error, errors: @participant_form.errors.messages, participant: @participant_form.attributes
|
11
11
|
end
|
12
12
|
end
|
13
13
|
end
|
@@ -7,5 +7,5 @@
|
|
7
7
|
= simple_form_for @participant_form, url: ::Tramway::Event::Engine.routes.url_helpers.participants_path, method: :post, html: { class: class_name, id: class_name } do |f|
|
8
8
|
= f.input :event_id, as: :hidden, input_html: { value: event.id, class: class_name, id: "#{class_name}_event_id", name: "#{class_name}[event_id]" }
|
9
9
|
- event.participant_form_fields.inputs_list.each do |field|
|
10
|
-
= render 'tramway/core/shared/input_extended', field: field, class_name: class_name, f: f
|
10
|
+
= render 'tramway/core/shared/input_extended', field: field, class_name: class_name, f: f, value: (params[:participant].present? ? params[:participant][field.title] : '')
|
11
11
|
= f.button :submit, t('.submit_form')
|