From 358a7da0e8a939824e182813c10c8ebb4df88687 Mon Sep 17 00:00:00 2001 From: Petko Bordjukov Date: Sat, 15 Aug 2015 08:56:50 +0300 Subject: [PATCH] Add title to the tracks drop-down --- lib/initfest/views/public/events/_form.slim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/initfest/views/public/events/_form.slim b/lib/initfest/views/public/events/_form.slim index 28d1822..7c9fd38 100644 --- a/lib/initfest/views/public/events/_form.slim +++ b/lib/initfest/views/public/events/_form.slim @@ -7,7 +7,7 @@ .form-inputs = form.input :title, autofocus: true = form.input :subtitle - = form.association :track, wrapper: :default, collection: current_conference.tracks + = form.association :track, wrapper: :default, collection: current_conference.tracks.map { |track| [track.name, track.id, {title: track.description}] } -# TODO length is different for different types of events (translation problem) = form.input :length