Files
componentowl-rails-archive/app/views/download/show.html.erb

37 lines
1.4 KiB
Plaintext

<div class="download-content" id="download-page">
<h2><%= t('txt.download_page.thanks', :product => strip_version(@product.name), :version => @product.current_version) %></h2>
<%= hidden_field_tag "download_url", @download_url %>
<div class="section-info"><%= t('txt.download_page.start') %></div>
<p><%= t('txt.download_page.info') %></p>
<% form_tag @download_url do -%>
<%= submit_button t('txt.common.start_download'), :btn_class => "dbtn-hilight" %>
<% end -%>
<hr />
<div class="newsletter-ct"><div class="newsletter">
<% if @product.has_newsletter? %>
<h3><%= t('txt.download_page.newsletter_product', :product => @product.name) %></h3>
<% else %>
<h3><%= t('txt.download_page.newsletter_general') %></h3>
<% end %>
<% remote_form_for newsletter_subscription, :html => { :onsubmit => "if (!validate_newsletter_form(this)) return false" } do |f| -%>
<%= hidden_field_tag "form_id", "#new_subscription" %>
<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 %>
<% end -%>
</div></div>
</div>