Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. h1= t('general.list_title_subject', subject: Book.model_name.human)
  2. span= t('.description')
  3. br/
  4. = link_to t('general.actions.new_subject', subject: Book.model_name.human), new_book_path
  5. br/
  6. br/
  7. table style='width:100%'
  8. thead
  9. th= Book.human_attribute_name('id')
  10. th= Book.human_attribute_name('borrow_state')
  11. th= Book.human_attribute_name('title')
  12. th colspan='3'= t('general.action')
  13. tbody
  14. - @books.each do |book|
  15. tr class= book.tr_style
  16. td= book.id
  17. td= Book.human_enum_name(:borrow_states, book.borrow_state.to_s)
  18. td= book.title
  19. td= link_to t('general.actions.show'), book
  20. td= link_to t('general.actions.edit'), edit_book_path(book)
  21. td= link_to t('general.actions.delete'), book, method: :delete, data: {confirm: "#{t('general.delete_confirmation')}" }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement