Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .subscriptions
- = form_for :subscriptions, :url => update_multiple_admin_subscriptions_path, :html => { :method => :put } do
- %table.attached.zebra
- %thead
- %tr
- %th.username= tc('mongoid.attributes.user.name')
- %th.type= 'typ'
- %th.from= 'od'
- %th.to= 'do'
- %tbody
- - @users.each do |user|
- = fields_for "user_ids[]", user do |user_fields|
- %tr
- %td{:rowspan => user.subscriptions.count }= user.name
- - user.subscriptions.each do |subscription|
- %tr
- %td= subscription._type.split("::").last.to_s
- %td= subscription.from
- %td= subscription.to
- %br
- = submit_tag t('campaign.admin.update_all')
Add Comment
Please, Sign In to add comment