Permalink
Browse files

Adding in view for previous commit.

  • Loading branch information...
1 parent abcb6f5 commit ab6dbf6e7632529fd68d9b6e724c381068d566a8 Willa committed Nov 13, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 lib/views/campaign_new_double_opt_in.haml
View
20 lib/views/campaign_new_double_opt_in.haml
@@ -0,0 +1,20 @@
+#new-campaign.rounded-box
+ %h2= "Campaign Settings for #{@title}"
+ %form{action: '/campaign/create/double_opt_in', method: 'post'}
+ %input{type: 'hidden', name: 'campaign[title]', value: @title}
+ %h3
+ SMSes for this campaign will be sent from
+ %b= pretty_phone_number(@sms_number)
+ %hr
+ -@number_summary.each do |entry|
+ %h3= pretty_phone_number(entry[:number])
+ %h3= "#{entry[:region][:country]} - #{entry[:region][:region] || 'General'}"
+ %h4 Add a description for the number
+ %input{type: 'hidden', name: 'campaign[voice_numbers][][phone_number]', value: entry[:number]}
+ %input.title-input{type: 'text', name: 'campaign[voice_numbers][][description]', placeholder: 'Use this space to describe where the number will be promoted, etc.'}
+ %h3 Add a response sms for callers of this number
+ %input.msg-text-area{type: 'text', name: 'sms_responses[]', placeholder: "Thank you for calling to support us. Call us at #{pretty_phone_number(entry[:number])} to subscribe."}
+ %hr
+ %input{type: 'hidden', name: 'campaign[sms_number]', value: @sms_number}
+ %button{type: 'submit'}
+ Complete Campaign Creation

0 comments on commit ab6dbf6

Please sign in to comment.