From e5e2d07ce9f4205b274f64ca5e1a16ba8d65ad12 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Wed, 2 Jul 2014 14:30:08 -0400 Subject: [PATCH] hiding some fields --- app/views/campaigns/_form.html.erb | 24 +++++----------- .../campaigns/_videolisting_fields.html.erb | 2 +- app/views/campaigns/index.html.erb | 2 +- app/views/campaigns/show.html.erb | 28 ++----------------- 4 files changed, 11 insertions(+), 45 deletions(-) diff --git a/app/views/campaigns/_form.html.erb b/app/views/campaigns/_form.html.erb index 078ac55..2d49327 100644 --- a/app/views/campaigns/_form.html.erb +++ b/app/views/campaigns/_form.html.erb @@ -17,11 +17,11 @@
<%= frm.input :advertisername, - label: 'Advertiser Name', + label: 'Business Name', hint: "The name of the company." %> <%= frm.input :listingcode, label: 'Listing Code', - hint: "Please provide the unique opportunity id." %> + as: :hidden %> <%= frm.input :description, label: 'Description', as: 'text', @@ -33,24 +33,15 @@ label: 'Website URL', hint: "Used for script research and may be used in the video if they are including websites in the video graphics." %> <%= frm.input :vpa, - label: 'Client Service Rep', - hint: "This is the full name of the client services representative, as entered in the BetterVideo system associated with this order. This feature is designed for sales reps that are well known to the system. This feature is typically used for automated communication." %> + label: 'MIS Rep' %> <%= frm.input :vpa_email, - label: 'Client Service Rep Email', - hint: "The Email for the above Client Service Rep, (not sent to BetterVideo, just used for video completion emails)" %> - <%= frm.input :billingcode, - label: 'Billing Code', - hint: "Market or billing code. Should match a billing code in the BetterVideo system so it can be associated." %> - <%= frm.input :emailaddress, + label: 'MIS Rep Email' %> + + <%= frm.input :emailaddress, label: 'Email Address' %> <%= frm.input :businessphone, label: 'Business Phone' %> - <%= frm.input :contactphone, - label: 'Contact Phone' %> - <%= frm.input :customerfirstname, - label: 'Customer First Name' %> - <%= frm.input :customerlastname, - label: 'Customer Last Name' %> + <%= frm.input :address, label: 'Address' %> <%= frm.input :city, @@ -60,7 +51,6 @@ collection: us_states%> <%= frm.input :zip, label: 'ZIP' %> - <%= frm.input :awards, label: 'Awards', hint: "Used in script and video research." %> diff --git a/app/views/campaigns/_videolisting_fields.html.erb b/app/views/campaigns/_videolisting_fields.html.erb index dd8d107..14d09cc 100644 --- a/app/views/campaigns/_videolisting_fields.html.erb +++ b/app/views/campaigns/_videolisting_fields.html.erb @@ -1,7 +1,7 @@
<%= f.input :videocode, label: 'Video Code', - hint: "Please provide the video code id." %> + hint: "Please provide the opportunity id." %> <%= f.input :voiceoverselection, label: 'Voiceover Selection', collection: voiceoverselection_list, diff --git a/app/views/campaigns/index.html.erb b/app/views/campaigns/index.html.erb index 5caf4b9..1444057 100644 --- a/app/views/campaigns/index.html.erb +++ b/app/views/campaigns/index.html.erb @@ -4,7 +4,7 @@ Listing Code (Form Hash) - Advertiser + Business Sent? Percent of Videos Completed Address diff --git a/app/views/campaigns/show.html.erb b/app/views/campaigns/show.html.erb index cac9f5d..11f9f18 100644 --- a/app/views/campaigns/show.html.erb +++ b/app/views/campaigns/show.html.erb @@ -34,22 +34,16 @@ <% end %> <% unless @campaign.vpa.blank? %>
  • -

    Client Services Rep
    +

    MIS Rep
    <%= @campaign.vpa %>

  • <% end %> <% unless @campaign.vpa_email.blank? %>
  • -

    Client Services Rep Email
    +

    MIS Rep Email
    <%= @campaign.vpa_email %>

  • <% end %> - <% unless @campaign.billingcode.blank? %> -
  • -

    Billing Code
    - <%= @campaign.billingcode %>

    -
  • - <% end %> <% unless @campaign.emailaddress.blank? %>
  • Email Address
    @@ -62,24 +56,6 @@ <%= number_to_phone @campaign.businessphone %>

  • <% end %> - <% unless @campaign.contactphone.blank? %> -
  • -

    Contact Phone
    - <%= number_to_phone @campaign.contactphone %>

    -
  • - <% end %> - <% unless @campaign.customerfirstname.blank? %> -
  • -

    Customer First Name
    - <%= @campaign.customerfirstname %>

    -
  • - <% end %> - <% unless @campaign.customerlastname.blank? %> -
  • -

    Customer Last Name
    - <%= @campaign.customerlastname %>

    -
  • - <% end %> <% unless @campaign.address.blank? %>
  • Address