mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 15:36:22 +08:00
Merge pull request #4361 from aignatov-bio/ai-sci-7084-add-sorting-by-default-template
Add sorting by default label template [SCI-7084]
This commit is contained in:
commit
57282069e9
|
@ -225,7 +225,7 @@
|
|||
var $table = $('#label-templates-table');
|
||||
LABEL_TEMPLATE_TABLE = $table.DataTable({
|
||||
dom: "R<'label-toolbar'<'label-buttons-container'><'label-search-container'f>>t<'pagination-row hidden'<'pagination-info'li><'pagination-actions'p>>",
|
||||
order: [[2, 'desc']],
|
||||
order: [[1, 'asc']],
|
||||
sScrollX: '100%',
|
||||
sScrollXInner: '100%',
|
||||
processing: true,
|
||||
|
@ -245,7 +245,7 @@
|
|||
}, {
|
||||
targets: 1,
|
||||
searchable: false,
|
||||
orderable: false,
|
||||
orderable: true,
|
||||
sWidth: '1%',
|
||||
render: renderDefaultTemplateHTML
|
||||
}, {
|
||||
|
|
|
@ -79,6 +79,14 @@
|
|||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
|
||||
#label-template-selected {
|
||||
padding-right: 0;
|
||||
|
||||
&::after {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.label-template-name {
|
||||
|
|
|
@ -6,7 +6,8 @@ class LabelTemplateDatatable < CustomDatatable
|
|||
|
||||
TABLE_COLUMNS = %w(
|
||||
label_templates.name
|
||||
label_templates.format
|
||||
label_templates.default
|
||||
label_templates.type
|
||||
label_templates.description
|
||||
label_templates.modified_by
|
||||
label_templates.updated_at
|
||||
|
|
Loading…
Reference in a new issue