Guest User

Untitled

a guest
Oct 21st, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. .subscriptions
  2. = form_for :subscriptions, :url => update_multiple_admin_subscriptions_path, :html => { :method => :put } do
  3. %table.attached.zebra
  4. %thead
  5. %tr
  6. %th.username= tc('mongoid.attributes.user.name')
  7. %th.type= 'typ'
  8. %th.from= 'od'
  9. %th.to= 'do'
  10.  
  11. %tbody
  12. - @users.each do |user|
  13. = fields_for "user_ids[]", user do |user_fields|
  14. %tr
  15. %td{:rowspan => user.subscriptions.count }= user.name
  16. - user.subscriptions.each do |subscription|
  17. %tr
  18. %td= subscription._type.split("::").last.to_s
  19. %td= subscription.from
  20. %td= subscription.to
  21. %br
  22. = submit_tag t('campaign.admin.update_all')
Add Comment
Please, Sign In to add comment