Fix language of existing events
This commit is contained in:
parent
1b07344efb
commit
4794e0ba02
|
@ -12,7 +12,7 @@ module Public
|
||||||
|
|
||||||
def new
|
def new
|
||||||
event_type = current_conference.event_types.find(params[:type])
|
event_type = current_conference.event_types.find(params[:type])
|
||||||
@event = Event.new event_type: event_type
|
@event = Event.new event_type: event_type, language: current_user.language
|
||||||
end
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
= form.input :subtitle
|
= form.input :subtitle
|
||||||
= form.association :track, wrapper: :default, collection: current_conference.tracks.map { |track| [track.name, track.id, {title: track.description}] }
|
= form.association :track, wrapper: :default, collection: current_conference.tracks.map { |track| [track.name, track.id, {title: track.description}] }
|
||||||
= form.input :length, hint: t('simple_form.hints.event.length', type: @event.event_type.name.mb_chars.downcase, min: @event.event_type.minimum_length, max: @event.event_type.maximum_length)
|
= form.input :length, hint: t('simple_form.hints.event.length', type: @event.event_type.name.mb_chars.downcase, min: @event.event_type.minimum_length, max: @event.event_type.maximum_length)
|
||||||
= form.input :language, as: :radio_buttons, collection: locale_collection, include_blank: false, wrapper: :default, checked: current_user.language
|
= form.input :language, as: :radio_buttons, collection: locale_collection, include_blank: false, wrapper: :default
|
||||||
= form.input :abstract
|
= form.input :abstract
|
||||||
= form.input :description
|
= form.input :description
|
||||||
= form.input :notes
|
= form.input :notes
|
||||||
|
|
Loading…
Reference in New Issue