Archive: ComponentOwl Rails app, DB backups, go redirect script
This commit is contained in:
33
app/views/subscriptions/from_download.html.erb
Normal file
33
app/views/subscriptions/from_download.html.erb
Normal file
@@ -0,0 +1,33 @@
|
||||
<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>
|
||||
9
app/views/subscriptions/index.html.erb
Normal file
9
app/views/subscriptions/index.html.erb
Normal file
@@ -0,0 +1,9 @@
|
||||
<div class="subpage support-content">
|
||||
|
||||
<h1>Component Owl Newsletter</h1>
|
||||
|
||||
<p>You've been unsubscribed.</p>
|
||||
|
||||
<p>You can now continue to our <%= link_to "home page", root_path %>.</p>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user