diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index de6be79..88543b7 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,2 +1,28 @@ module ApplicationHelper + def producttypeid_list + producttypeids = [] + producttypeids << ["720 - Basic Montage", 720] + producttypeids << ["721 - Advanced Montage", 721] + producttypeids << ["722 - Basic Video Shoot", 722] + producttypeids << ["723 - Repurposed", 723] + producttypeids << ["724 - Repurposed Edit", 724] + end + + def voiceoverselection_list + voiceoverselections = [] + voiceoverselections << ["1 - Male", 1] + voiceoverselections << ["2 - Female", 2] + voiceoverselections << ["3 - No Preference", 3] + end + + def musicselection_list + musicselections = [] + musicselections << ["0 - No Preference", 0] + musicselections << ["1 - Easy", 1] + musicselections << ["2 - Jazzy", 2] + musicselections << ["3 - High Energy", 3] + musicselections << ["4 - New Age", 4] + musicselections << ["5 - Positive", 5] + musicselections << ["6 - Rock", 6] + end end diff --git a/app/views/campaigns/_form.html.erb b/app/views/campaigns/_form.html.erb index 325581a..c740d52 100644 --- a/app/views/campaigns/_form.html.erb +++ b/app/views/campaigns/_form.html.erb @@ -35,16 +35,30 @@ <%= frm.input :city, label: 'City' %> <%= frm.input :state, label: 'State' %> <%= frm.input :zip, label: 'ZIP' %> - + + <%= frm.input :awards, label: 'Awards' %> + <%= frm.input :background, label: 'Background' %> + <%= frm.input :categories, label: 'Categories' %> + <%= frm.input :companycolors, label: 'Company Colors' %> + <%= frm.input :description, label: 'Description' %> + <%= frm.input :facebookurl, label: 'Facebook URL' %> + <%= frm.input :productsandservices, label: 'Products & Services' %> + <%= frm.input :targetaudience, label: 'Target Audience' %> + <%= frm.input :tollfreephone, label: 'Tollfree Phone' %> + <%= frm.input :vpa, label: 'Client Service Rep' %> + + + +
<%= frm.simple_fields_for(:videolistings, html: {class: 'form-horizontal'}) do |vidlist| %>
<%= vidlist.input :videocode, label: 'Video Code' %> - <%= vidlist.input :producttypeid, label: 'Product Type ID' %> - <%= vidlist.input :voiceoverselection, label: 'Voiceover Selection' %> - <%= vidlist.input :musicselection, label: 'Music Selection' %> + <%= vidlist.input :producttypeid, label: "Product Type", collection: producttypeid_list %> + <%= vidlist.input :voiceoverselection, label: 'Voiceover Selection', collection: voiceoverselection_list %> + <%= vidlist.input :musicselection, label: 'Music Selection', collection: musicselection_list %> <%= vidlist.input :clientprovidedscript, label: 'Client Provided Script' %> <%= vidlist.input :keywords, label: 'Keywords' %> <%= vidlist.input :focus, label: 'Focus' %>