app/views/astrochimp/signups/_form.html.erb in astrochimp-0.2.0 vs app/views/astrochimp/signups/_form.html.erb in astrochimp-0.2.1
- old
+ new
@@ -1,6 +1,8 @@
-<h2>Get Notified at Launch</h2>
+<% if ENV['SUBHEADER'] %>
+ <h2><%= ENV['SUBHEADER'] %></h2>
+<% end %>
<%= form_for(@signup) do |f| %>
<% if @signup.errors.any? %>
<div class="alert alert-error">
<a class="close" data-dismiss="alert">×</a>
<% @signup.errors.full_messages.each do |msg| %>
@@ -11,10 +13,10 @@
<div class="control-group">
<div class="controls">
<div class="input-append">
<%= text_field_tag :email, (params[:signup][:email] if params[:signup] or nil), name: 'signup[email]', placeholder: 'Email address', class: 'span4 btn-large' %>
- <%= submit_tag 'Notify Me »'.html_safe, class: 'btn btn-success btn-large' %>
+ <%= submit_tag ENV['SUBMIT_TEXT'].html_safe, class: 'btn btn-success btn-large' %>
</div>
</div>
</div>
<% end %>