Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- h1= t('general.list_title_subject', subject: Book.model_name.human)
- span= t('.description')
- br/
- = link_to t('general.actions.new_subject', subject: Book.model_name.human), new_book_path
- br/
- br/
- table style='width:100%'
- thead
- th= Book.human_attribute_name('id')
- th= Book.human_attribute_name('borrow_state')
- th= Book.human_attribute_name('title')
- th colspan='3'= t('general.action')
- tbody
- - @books.each do |book|
- tr class= book.tr_style
- td= book.id
- td= Book.human_enum_name(:borrow_states, book.borrow_state.to_s)
- td= book.title
- td= link_to t('general.actions.show'), book
- td= link_to t('general.actions.edit'), edit_book_path(book)
- 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