9 changed files with 62 additions and 77 deletions
@ -1,3 +1,3 @@
|
||||
<div class="card container-sm mt-1"> |
||||
<%= render(DocumentDoctrineIndexComponent.with_collection(@doctrines, current_user: current_user, opts: { is_index: true })) %> |
||||
<div class="card container-sm mt-1 p-0"> |
||||
<%= render(DocumentDoctrineIndexComponent.with_collection(@doctrines, current_user: current_user, opts: { is_disable_clickable_link: true, is_doctrines_index: true, subject_ids: params[:subject_ids] })) %> |
||||
</div> |
||||
|
||||
@ -1,23 +1,6 @@
|
||||
<div class="container-fluid mt-2 p-0"> |
||||
<div class="col-sm-12"> |
||||
<div class="card"> |
||||
<div class="card-header"> |
||||
<h2> <%= @subject_index.name %> |
||||
<% if can? :destroy, Cdao::Subject %> |
||||
<a href="<%= subject_index_path(@subject_index) %>" class="btn btn-sm btn-danger right-0" data-confirm="Are you sure you want to delete this subject?" data-method="DELETE" role="button"> |
||||
<i class="fas fa-trash-alt" data-toggle="tooltip" data-placement="bottom" title="Delete"></i> |
||||
</a> |
||||
<% end %> |
||||
<% if can? :update, Cdao::Subject %> |
||||
<a href="<%= edit_subject_index_path(@subject_index) %>" class="btn btn-sm btn-danger right-0" role="button"> |
||||
<i class="fas fa-edit" data-toggle="tooltip" data-placement="bottom" title="Edit"></i> |
||||
</a> |
||||
<% end %> |
||||
</h2> |
||||
</div> |
||||
<div class="card container-sm mt-1 p-0"> |
||||
<h5 class="card-header"> <%= @subject_index.lineage_name %> </h5> |
||||
<div class="card-body"> |
||||
<%= render(SubjectAccordionComponent.new(current_user: current_user, parent: @subject_index)) %> |
||||
</div> |
||||
</div> |
||||
<%= render(DocumentDoctrineIndexComponent.with_collection(@doctrines, current_user: current_user, opts: { is_subjects_index: true, is_disable_clickable_link: true })) %> |
||||
</div> |
||||
</div> |
||||
Loading…
Reference in new issue