Sha256: a13c4709addb9a0818957c0f3baa6ace04732e158dba37775e6b7a713eb1ca97

Contents?: true

Size: 1.13 KB

Versions: 6

Compression:

Stored size: 1.13 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' %><div class="buttonEnding"></div>
     <%= f.hidden_field :mailing_list_id %></td>
  </tr>
<% end %>
</table>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mail_manager-3.0.0 app/views/mail_manager/subscriptions/_form.html.erb
mail_manager-0.1.4 app/views/mail_manager/subscriptions/_form.html.erb
mail_manager-0.1.2 app/views/mail_manager/subscriptions/_form.html.erb
mail_manager-0.1.1 app/views/mail_manager/subscriptions/_form.html.erb
mail_manager-0.1.0 app/views/mail_manager/subscriptions/_form.html.erb
mail_manager-0.0.1 app/views/mail_manager/subscriptions/_form.html.erb