Review your campaign summary and make edits if needed.
<%= form_for campaign, url: campaign_path, turboboost: :true, validate: true do |f| %>
CAMPAIGN OVERVIEW
<%= link_to campaign_path(campaign.id) do %>
Edit
<% end %>
Campaign Name
<%= campaign.name %>
Campaign Type
<%= image_tag("social_media_campaign_icon.png")%>
<%= "#{campaign.type} Campaign"%>
<% if campaign.social_media? %>
Target Gender
<%= campaign.target_gender%>
<% end %>
Target Audience Location
<%= campaign.location %>
Campaign Length
<%= "#{campaign.start_date.try(:strftime, '%b %d, %Y')} - #{campaign.end_date.try(:strftime, '%b %d, %Y')}"%>
CAMPAIGN OVERVIEW
<% type = campaign.event? ? 'talent' : 'social_media_tabs' %>
<%= link_to campaign_path(campaign.id, type: type ) do %>
Edit
<% end %>
<% if campaign.social_media? %>
Social Media Channels
<% campaign.social_media_platforms.in_groups_of(3) do |social_media_platfroms| %>
<% social_media_platfroms.compact.each do |social_media_platfrom| %>
<%= image_tag(social_media_platfrom.image_file_name , class: "ml10")%>
<%= social_media_platfrom.name %>
<% end %>
<% end %>
<% else %>
Event Talents
<%= campaign.talent.name%>
<% end %>
ADDITONAL DETAILS
<%= link_to campaign_path(campaign.id, type: 'document_upload') do %>
Edit
<% end %>
Uploaded Attachments
<% if campaign.campaign_documents.present? %>
<% campaign.campaign_documents.each do |campaign_document| %>
<% if campaign_document.image? %>
<%= link_to campaign_document.document.url, data: {lightbox: "campaign-document-image-#{campaign.id}"} do %>
<%= image_tag campaign_document.document.url(:thumb) %> <%= campaign_document.document_file_name %>
<% end %>
<% else %>
<%= link_to campaign_document.document.url, target: "_blank" do %>
<%= image_tag get_thumbnail(campaign_document) %> <%= campaign_document.document_file_name %>
<% end %>
<% end %>
<% end %>
<% else %>
No Attachments.
<% end %>
Additional Comments
<%= campaign.comments %>
Campaign Keywords
<%= campaign.keywords.try(:titleize) %>
<%= f.hidden_field :step, value: "review" %>
<%= f.submit "BACK", class: "btn back-btn", name: "back_btn" %>
<%= f.submit "SAVE AND CONTINUE", class: "btn btn-success" %>
<% end %>