% set_page_title 'Materials Manager' %>
ID | Identifier | File Name | Type | Title | Grade | Guidebook | Section | Lesson | Activity | Page Orientation | Name-Date | Header-Footer | Connected Lessons | Last Update | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<%= check_box_tag 'selected_ids[]', material.id, selected_id?(material.id), class: 'c-selected-ids' %> | <%= material.id %> | <%= link_to material.metadata['identifier'], ::Lcms::Engine::Admin::AdminController.material_path(material, request.query_parameters), target: '_blank' %> | <%= link_to material.name, material.file_url, target: '_blank' %> | <%= material.metadata['type'] %> | <%= material.metadata['title'] %> | <%= material.metadata['grade'] %> | <%= material.metadata['guidebook'] %> | <%= material.metadata['section'] %> | <%= material.metadata['lesson'] %> | <%= material.metadata['activity'] %> | <%= material.metadata['orientation'] %> | <%= material.metadata['name_date'] %> | <%= material.metadata['header_footer'] %> | <%= material.reimported_at.to_s.presence || material.updated_at.to_s %> | <%= render partial: 'lcms/engine/admin/materials/reimport', locals: { material: material } %> <%= button_to t('ui.delete'), admin_material_path(material, query: params[:query]), class: 'button small alert', data: { confirm: t('ui.are_you_sure') }, form_class: 'inline', method: :delete %> <% unless material.pdf? %> <%# link_to material.pdf_preview_title, preview_pdf_material_path(material), class: 'button warning', target: '_blank' %> <%# link_to material.gdoc_preview_title, preview_gdoc_material_path(material), class: 'button warning', target: '_blank' %> <% end %> |