app/views/proposals/edit.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
Edit
%em #{proposal.title}
.row
.col-md-12
.tabbable
%ul.nav.nav-tabs
%li.active
%a{"data-toggle" => "tab", :href => "#edit-proposal"} Proposal Form
%li
%a{"data-toggle" => "tab", :href => "#preview"} Preview
.tab-content
#edit-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 [event, proposal], url: event_proposal_path(event.slug, proposal) do |f|
= render partial: 'form', locals: {f: f}
#preview.tab-pane
= render partial: 'preview', locals: { proposal: proposal }