Files
componentowl-rails-archive/app/views/subscriptions/from_download.html.erb

33 lines
1.2 KiB
Plaintext

<div class="subscribe-content">
<h2><%= t('txt.download.started') %></h2>
<% remote_form_for newsletter_subscription("download-page"), :html => { :onsubmit => "if (!validate_newsletter_form(this)) return false" } do |f| -%>
<% f.field_set "Optional" do -%>
<% name = @product.has_newsletter? ? t('txt.download.newsletter_product', :product => @product.name) : t('txt.download.newsletter_general') %>
<p><%= t('txt.download.newsletter', :name => name) %></p>
<div class="newsletter-box">
<%= hidden_field_tag "form_id", "#new_subscription" %>
<%= hidden_field_tag "callback", "download_subscription_saved" %>
<%= f.hidden_field :subscription_location_id %>
<div class="field">
<%= f.label :first_name, t("txt.common.first_name") %>
<%= f.text_field :first_name, :class => "name stressed" %>
</div>
<div class="field">
<%= f.label :email, t("txt.common.your_email") %>
<%= f.text_field :email, :class => "email stressed" %>
</div>
<%= subscription_lists('download-page', @product) %>
<%= subscribe :hilight %>
<div class="clear"></div>
</div>
<% end -%>
<% end -%>
</div>