mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-05 04:03:45 +08:00
Fix markup
This commit is contained in:
parent
61bbca6bcf
commit
046c9662d1
3 changed files with 5 additions and 5 deletions
|
@ -42,7 +42,7 @@ class RepositoryDatatableService
|
|||
'LEFT OUTER JOIN "my_module_repository_rows" '\
|
||||
'ON "my_module_repository_rows"."repository_row_id" = "repository_rows"."id" '\
|
||||
'AND "my_module_repository_rows"."my_module_id" = ' + @my_module.id.to_s
|
||||
).select('CASE WHEN my_module_repository_rows.id IS NOT NULL'\
|
||||
).select('CASE WHEN my_module_repository_rows.id IS NOT NULL '\
|
||||
'THEN true ELSE false END as row_assigned').group('my_module_repository_rows.id')
|
||||
end
|
||||
end
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p><%= t('my_modules.modals.assign_repository_record.message', size: selected_rows.keys.count) %></p>
|
||||
<p><%= t('my_modules.modals.assign_repository_record.message', size: selected_rows.values.count) %></p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a class="btn btn-light" data-dismiss="modal">
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p><%= t('my_modules.modals.update_repository_record.message', size: selected_rows.keys.count) %></p>
|
||||
<p><%= t('my_modules.modals.update_repository_record.message', size: selected_rows.values.count) %></p>
|
||||
<div class="rows-list-container">
|
||||
<% if rows_to_assign.keys.any? %>
|
||||
<% if rows_to_assign.values.any? %>
|
||||
<div class="rows-to-assign">
|
||||
<p class="header">
|
||||
<i class="fas fa-plus"></i>
|
||||
|
@ -28,7 +28,7 @@
|
|||
</ul>
|
||||
</div>
|
||||
<% end %>
|
||||
<% if rows_to_unassign.keys.any? %>
|
||||
<% if rows_to_unassign.values.any? %>
|
||||
<div class="rows-to-unassign">
|
||||
<p class="header">
|
||||
<i class="fas fa-minus"></i>
|
||||
|
|
Loading…
Reference in a new issue