app/views/proposals/new.html.haml
.event-info-bar
.row
.col-md-8
.event-info.event-info-dense
%strong.event-title= event.name
- if event.start_date? && event.end_date?
%span.event-meta
%i.fa.fa-fw.fa-calendar
= event.date_range
.col-md-4.text-right.text-right-responsive
.event-info.event-info-dense
%span{:class => "event-meta event-status-badge event-status-#{event.status}"}
CFP
= event.status
- if event.open?
%span.event-meta
CFP closes:
%strong= event.closes_at(:month_day_year)
.page-header.page-header-slim
.row
.col-md-12
%h1 Submit a Proposal
.row
.col-md-12
.tabbable
%ul.nav.nav-tabs
%li.active
%a{"data-toggle" => "tab", :href => "#create-proposal"} Proposal Form
%li
%a{"data-toggle" => "tab", :href => "#preview"} Preview
.tab-content
#create-proposal.tab-pane.active
.row
.col-md-8
%p
Read the <strong>#{link_to 'guidelines', event_path(event.slug)}</strong> to maximize
your chance of approval. Refrain from including any information that
would allow a reviewer to identify you.
%p
All fields support
%a{href: 'https://help.github.com/articles/github-flavored-markdown'}
%strong GitHub Flavored Markdown.
= simple_form_for proposal, url: event_proposals_path(event) do |f|
= render partial: 'form', locals: {f: f}
#preview.tab-pane
= render partial: 'preview', locals: { proposal: proposal }