Permalink
Browse files

knock off launch button for offline ask

  • Loading branch information...
1 parent ac4f668 commit 9a0240dbb7928f00ac6e137e0f897e12e64f7918 Willa committed Nov 15, 2012
Showing with 4 additions and 3 deletions.
  1. +2 −2 lib/views/campaign.haml
  2. +2 −1 lib/views/campaign_add_new_ask.haml
View
@@ -15,7 +15,7 @@
%span Campaign Details
%li
%a{href: "#basic-chart"}
- %span Statistic Analysis
+ %span Analytics
%li
%a{href: "#export"}
%span Export To CSV
@@ -49,7 +49,7 @@
#asks
%h2= "ASKS"
-@campaign.asks.each do |ask|
- -if @campaign.asks.select{|n| n.triggered_ask && n.triggered_ask == ask}.empty?
+ -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
@@ -20,6 +20,7 @@
%input{type: 'radio', name:'[triggered_by]', id: 'ask', value: 'previous'}
%label{for: 'ask'} The Previous Event
%button{type:'submit'} Add new ask
-
+%form{action: '/campaigns##{@campaign.id}', method: 'get'}
+ %button « Back
#original-filtered-message-template-container{style: 'display:none'}
=haml :filtered_message_template

0 comments on commit 9a0240d

Please sign in to comment.