@@ -166,47 +166,6 @@ def speaker_input(form)
166166 form . input :speaker
167167 end
168168
169- def standalone_track_select ( tooltip )
170- h . simple_form_for :proposal , html : { data : { controller : 'proposal-select' } } do |f |
171- f . input :track ,
172- required : false ,
173- label_html : { class : 'info-item-heading' } ,
174- collection : track_options ,
175- include_blank : Track ::NO_TRACK ,
176- selected : object . track_id ,
177- id : 'track' ,
178- input_html : {
179- class : 'proposal-track-select form-control select' ,
180- data : {
181- target_path : h . event_staff_program_proposal_update_track_path ( object . event , object ) ,
182- select_type : 'track' ,
183- action : 'change->proposal-select#change'
184- } ,
185- } ,
186- popover_icon : { content : tooltip }
187- end
188- end
189-
190- def standalone_format_select ( tooltip )
191- h . simple_form_for :proposal , html : { data : { controller : 'proposal-select' } } do |f |
192- f . input :format ,
193- required : false ,
194- label_html : { class : 'info-item-heading' } ,
195- collection : format_options ,
196- selected : object . session_format_id ,
197- id : 'track' ,
198- input_html : {
199- class : 'proposal-format-select form-control select' ,
200- data : {
201- target_path : h . event_staff_program_proposal_update_session_format_path ( object . event , object ) ,
202- select_type : 'format' ,
203- action : 'change->proposal-select#change'
204- } ,
205- } ,
206- popover_icon : { content : tooltip }
207- end
208- end
209-
210169 def track_options
211170 @track_options ||= object . event . tracks . map { |t | [ t . name , t . id ] } . sort
212171 end
@@ -247,5 +206,4 @@ def state_class(state)
247206 'label-default'
248207 end
249208 end
250-
251209end
0 commit comments