mail_manager 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTQ5N2Y1YTdkZDMzODU3Mjc1ZjRkYjMxMjE1M2QyN2E3MmZjMWY2OQ==
4
+ NTM3MzI4NzE3MmUxZDQ2N2VmMDRmMTc3NDY4ODc4MjVkZjVmOTUwMg==
5
5
  data.tar.gz: !binary |-
6
- NDZhYTgxNmI3MTcxY2RkYmQzNDcyMGIxNDdhOTJjM2YxZWU2Mjk5OQ==
6
+ ZTI0Yjg4NzgxNWVlMzc0ZWY3NWU2MjYwNTEyZGUwMzg5NjU3ZDdlMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- N2VhZTliNGYwY2YyZjQ0MTc5ZDY3M2FiNzhhMGFiMjdjOTI3NjEwM2IyNTNh
10
- MzZjY2MwNGE0MDE1ZWRlZDQ0ODIzNzlhNmVjMjAzODdlMmNlZWE1YzhlYjNh
11
- NTdmOWRmNDg4Y2FiNGYxZjM4MDY5YzUzZmYxMDkzZjA3N2U2M2U=
9
+ NjUzYzcwYzQxMjI2ODdkOGRjNTlkYWQ5NjgyZGQwMThmNTlmN2M4MzAzZDdl
10
+ ZGJjY2M0MWY0ZDRkMjlhZjQ4ZTczN2I2OGYyMjY4NjFkNmViYWJhNjE1ZmU4
11
+ MmVlODRmYjEwZGY2YzZkZTA1Njc4ODBjYmI0OGQ0NmQ1YTgwMmQ=
12
12
  data.tar.gz: !binary |-
13
- Njg2OWE3ZWMwNmM0YTZhM2U5NDg2NWE1MGQxNzUzNmY4MTY0MzgyYzUxZDE0
14
- YjRhNmExMWU4NTllMDY5OTFjZmM0YzExZDUxNDY1ZGM2YWNhYmZhNmMzZmQw
15
- YjdlOGUyZjM5OGY5ZTVhZjc5Y2M3ZDQ0MDQxZjQ4NzcxODhkODU=
13
+ NjA4OWM0ZTU1YzFlZjg5NWY1ZDFiOGQxYWUwODQ4YjU2MzViZDljYmUxMDYz
14
+ YTM0ZjgwMDc0MDU0Y2RmYWJlOGExMjJkYTBlYzA5ZTJhN2I4MGU1YjE5OTgz
15
+ YzE1ZDlkOTBlZDVkNzg5MTMwYWVhZjVkZGE1YWUxYzBiZDUwY2U=
@@ -177,6 +177,7 @@ module MailManager
177
177
  model.class_eval do
178
178
  after_create :save
179
179
  attr_accessor :subscriptions_attributes
180
+ attr_accessible :subscriptions_attributes
180
181
  end
181
182
  end
182
183
  end
@@ -1,13 +1,9 @@
1
1
  <% unsubscribed_status ||= 'unsubscribed' %>
2
2
  <%= contactable_form.fields_for :subscriptions do |subscription_fields| %>
3
3
  <% subscription = subscription_fields.object %>
4
- <tr valign="top">
5
- <td>
6
- <%= subscription_fields.label :status, subscription.mailing_list.try(:name) %>
7
- </td>
8
- <td>
4
+ <div class="field">
5
+ <%= subscription_fields.label :status, subscription.mailing_list.try(:name) %><br/>
9
6
  <%= subscription_fields.check_box :status, {}, 'active', subscription.status.eql?('active') ? unsubscribed_status : subscription.status %>
10
7
  <%= subscription_fields.hidden_field :mailing_list_id %>
11
- </td>
12
- </tr>
8
+ </div>
13
9
  <% end %>
@@ -0,0 +1,9 @@
1
+ <% unsubscribed_status ||= 'unsubscribed' %>
2
+ <%= contactable_form.fields_for :subscriptions do |subscription_fields| %>
3
+ <% subscription = subscription_fields.object %>
4
+ <div class="field">
5
+ <%= subscription_fields.label :status, subscription.mailing_list.try(:name) %><br/>
6
+ <%= subscription_fields.check_box :status, {}, 'active', subscription.status.eql?('active') ? unsubscribed_status : subscription.status %>
7
+ <%= subscription_fields.hidden_field :mailing_list_id %>
8
+ </div>
9
+ <% end %>
@@ -1,3 +1,3 @@
1
1
  module MailManager
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mail_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lone Star Internet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-09 00:00:00.000000000 Z
11
+ date: 2014-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -186,6 +186,7 @@ files:
186
186
  - app/views/mail_manager/messages/index.html.erb
187
187
  - app/views/mail_manager/subscriptions/_form.html.erb
188
188
  - app/views/mail_manager/subscriptions/_subscriptions.html.erb
189
+ - app/views/mail_manager/subscriptions/_subscriptions_divs.html.erb
189
190
  - app/views/mail_manager/subscriptions/edit.html.erb
190
191
  - app/views/mail_manager/subscriptions/index.html.erb
191
192
  - app/views/mail_manager/subscriptions/new.html.erb