From 9819984047b181ca1b1bdae4c580065d20cbe4e2 Mon Sep 17 00:00:00 2001 From: Stella Rouzi Date: Wed, 19 Oct 2022 16:05:18 +0300 Subject: [PATCH] Add admin form for new event --- app/views/admin/events/new.html.haml | 1 + app/views/proposals/new.html.haml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 app/views/admin/events/new.html.haml diff --git a/app/views/admin/events/new.html.haml b/app/views/admin/events/new.html.haml new file mode 100644 index 0000000000..68af0532a2 --- /dev/null +++ b/app/views/admin/events/new.html.haml @@ -0,0 +1 @@ += render template: 'proposals/new' diff --git a/app/views/proposals/new.html.haml b/app/views/proposals/new.html.haml index 76e2860a0a..77dbcf1251 100644 --- a/app/views/proposals/new.html.haml +++ b/app/views/proposals/new.html.haml @@ -10,7 +10,7 @@ = markdown(@program.cfp.description) .row .col-md-12 - = render partial: 'encouragement_text' + = render partial: 'proposals/encouragement_text' .row .col-md-8 - unless current_user @@ -26,6 +26,6 @@ .tab-pane.active{role: 'tabpanel', id: 'signup'} = form_for(@event, url: @url) do |f| = render partial: 'devise/registrations/new_embedded' - = render partial: 'form', locals: { f: f } + = render partial: 'proposals/form', locals: { f: f } .tab-pane{role: 'tabpanel', id: 'signin'} = render partial: 'devise/sessions/new_embedded'