From dc1f35cf3f5e1666206b373550aa17b2a20ee4f3 Mon Sep 17 00:00:00 2001 From: Whitni Date: Wed, 16 Nov 2016 18:26:35 -0500 Subject: [PATCH] Update edit_election.haml Added in new election type, PanelElection, to pull the description for /views/election/panelelection_explanation.haml --- views/admin/edit_election.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/admin/edit_election.haml b/views/admin/edit_election.haml index 6c4d209..c7ddb2c 100644 --- a/views/admin/edit_election.haml +++ b/views/admin/edit_election.haml @@ -18,7 +18,7 @@ %label.control-label{:for=>"#election_type"} Type: .controls %select.form-control#election_type{:name=>"type"} - - [PresentationElection, LocationElection, KeynoteElection, TShirtElection].each do |t| + - [PresentationElection, PanelElection, LocationElection, KeynoteElection, TShirtElection].each do |t| - if @election.is_a? t %option{selected: true, value: t}= t.model_name.human - else