Sha256: 059cf4ce09711adeaf1aeb6d6fb0210822cab3f60b33452522c9375eb255c667

Contents?: true

Size: 1.1 KB

Versions: 9

Compression:

Stored size: 1.1 KB

Contents

<%= form_for(@subscription) do |f| %>
  <%= f.error_messages %>
  <table cellpadding="0" cellspacing="2" border="0">

  <tr>
    <td><%= f.label 'Subscription Status: '  %></td>
    <td><%= f.select :status, ['active','unsubscribed'] %></td>
  </tr>

  <%= 
     begin
  f.fields_for :contactable, @contact do |c| 
  %>
  <tr>
    <td><%= c.label @contact.contactable_method(:first_name)  %></td>
    <td><%= c.text_field @contact.contactable_method(:first_name) %></td>
  </tr>
  <tr>
    <td><%= c.label @contact.contactable_method(:last_name)  %></td>
    <td><%= c.text_field @contact.contactable_method(:last_name) %></td>
  </tr>
  <tr>
      <td><%= c.label @contact.contactable_method(:email_address)  %></td>
      <td><%= c.text_field @contact.contactable_method(:email_address) %><td>
  </tr>
  <% 
end
  rescue => e %>
       <%= "#{e.message} - #{e.backtrace.join("<br/>")} - #{@contact.inspect} - #{@subscription.contactable.inspect}" %>
<%     end
 %>
  <tr>
     <td colspan="2" align="right"><%= f.submit 'Save', :class => 'button' %>
     <%= f.hidden_field :mailing_list_id %></td>
  </tr>
<% end %>
</table>

Version data entries

9 entries across 9 versions & 1 rubygems

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