Browse files

add cost estimator to send sms ask

  • Loading branch information...
1 parent 58afb34 commit a0691eb6d9c7db7fd1c04e19d1612b8b38be8ab3 Willa committed Nov 15, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −0 lib/views/asks/send_sms_ask.haml
  2. +0 −1 lib/views/campaign.haml
View
2 lib/views/asks/send_sms_ask.haml
@@ -1,3 +1,5 @@
%h3 Send SMS Ask
+%h4 Initial Cost Estimate
+=haml :price_estimate, locals: {price_estimate: ask.initial_price_estimate(@campaign.ringers, @campaign.sms_number.raw_number)}
="#{ask.recipients.count} recipients"
=haml :message, locals: {message: ask.message}
View
1 lib/views/campaign.haml
@@ -52,7 +52,6 @@
-if @campaign.asks.select{|n| n.triggered_ask && n.triggered_ask == ask}.empty? && ask != @campaign.asks.first
%form{action: "/campaign/#{@campaign.id}/asks/#{ask.id}/trigger", method: "post"}
%button{type:'submit'} Launch the Ask
-
=haml :ask, locals: {ask: ask, type: ask.class.typesym}
%form{action: "/campaign/#{@campaign.id}/asks/new", method: 'get'}
%button Add new ask

0 comments on commit a0691eb

Please sign in to comment.