Sha256: 171ed400930572504f30a2a228bb658eb0b16903cd3cb0cb6e6416a8ee1dc3bd
Contents?: true
Size: 1.9 KB
Versions: 5
Compression:
Stored size: 1.9 KB
Contents
<h3 class="subscriptions-tite"> Which emails would you like to keep receiving? </h3> <%= form_for @subscriber, url: subscriptions_path(token: params[:token]), method: :put, html: { id: "edit-subscriptions-form" } do |f| %> <%= f.hidden_field Feste.options[:email_source], id: "subscriber-email" %> <%= f.fields_for :subscriptions do |subscription_form| %> <% @subscriber.subscriptions.order(category: :asc).each do |subscription| %> <div class="subscription-category-container"> <%= label_tag do %> <%= subscription_form.check_box(nil, {id: "subscription-#{subscription.category_name.parameterize}", checked: !subscription.canceled?}, subscription.id, nil) %> <span class="subscription-category-name"> <%= subscription.category_name %> </span> <% end %> </div> <% end %> <% end %> <%= f.submit "Submit", class: "subscription-submit-button button button--submit" %> <% end %> <% if params[:token].present? %> <div class="confirmation-modal-container hidden" id="confirmation-modal"> <div class="modal-overlay" data-js-modal-close="true"> <div class="modal-content"> <h4 class="modal-header">Please Confirm Your Email</h4> <p class="modal-body">To continue, please verify your email address.</p> <form action="#" class="cancel-subscription-form" id="cancel-subscription-form"> <div class="email-field-container" data-js-required="true"> <label class="error-label hidden" data-js-error="true">Please enter a valid email address</label> <input type="text" name="email-confirmation-input" id="email-confirmation-input" class="email-field-input"> </div> <button class="button button--submit" id="cofirm-submit-button">Confirm</button> </form> </div> </div> </div> <script type="text/javascript"> subscriptionVerification(); </script> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems