Sha256: 55759716bc00e33fb8290af2e29957161a30aac2a805873bc10d332d707d4be1

Contents?: true

Size: 532 Bytes

Versions: 4

Compression:

Stored size: 532 Bytes

Contents

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mail_manager-0.1.2 app/views/mail_manager/subscriptions/_subscriptions.html.erb
mail_manager-0.1.1 app/views/mail_manager/subscriptions/_subscriptions.html.erb
mail_manager-0.1.0 app/views/mail_manager/subscriptions/_subscriptions.html.erb
mail_manager-0.0.1 app/views/mail_manager/subscriptions/_subscriptions.html.erb