Sha256: 0b764149dc46490ee40382901db23d468b5339a5bc09dba0a507ae669db87888

Contents?: true

Size: 502 Bytes

Versions: 13

Compression:

Stored size: 502 Bytes

Contents

<% unsubscribed_status ||= 'unsubscribed' %>
<%= contactable_form.fields_for :subscriptions do |subscription_fields| %>
	<% subscription = subscription_fields.object %>
  <div class="field">
    <%= subscription_fields.label :status, subscription.mailing_list.try(:name) %><br/>
    <%= subscription_fields.check_box :status, {}, 'active', subscription.status.eql?('active') ? unsubscribed_status : subscription.status %>
    <%= subscription_fields.hidden_field :mailing_list_id %>
  </div>
<% end %>

Version data entries

13 entries across 11 versions & 1 rubygems

Version Path
mail_manager-3.2.25.1 app/views/mail_manager/subscriptions/_subscriptions_divs.html.erb
mail_manager-3.2.22.0 app/views/mail_manager/subscriptions/_subscriptions_divs.html.erb
mail_manager-3.2.7 app/views/mail_manager/subscriptions/_subscriptions_divs.html.erb
mail_manager-3.2.6 app/views/mail_manager/subscriptions/_subscriptions_divs.html.erb
mail_manager-3.2.5 app/views/mail_manager/subscriptions/_subscriptions_divs.html.erb
mail_manager-3.2.4 app/views/mail_manager/subscriptions/_subscriptions_divs.html.erb
mail_manager-3.2.2 app/views/mail_manager/subscriptions/_subscriptions_divs.html.erb
mail_manager-3.2.1 app/views/mail_manager/subscriptions/_subscriptions_divs.html.erb
mail_manager-3.2.0 app/views/mail_manager/subscriptions/_subscriptions_divs.html.erb
mail_manager-3.0.0 app/views/mail_manager/subscriptions/_subscriptions_divs.html.erb
mail_manager-3.0.0 app/views/mail_manager/subscriptions/_subscriptions.html.erb
mail_manager-0.1.4 app/views/mail_manager/subscriptions/_subscriptions.html.erb
mail_manager-0.1.4 app/views/mail_manager/subscriptions/_subscriptions_divs.html.erb