small css adjustements to improve table display
This commit is contained in:
parent
b0ae2e8a0f
commit
0563ac391b
6 changed files with 19 additions and 11 deletions
|
@ -5,7 +5,6 @@
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
|
|
||||||
th {
|
th {
|
||||||
vertical-align: top;
|
|
||||||
padding: (2 * $default-spacer) $default-spacer;
|
padding: (2 * $default-spacer) $default-spacer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,7 +53,7 @@
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.folder-col {
|
.text-center {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -55,3 +55,13 @@
|
||||||
.force-table-100 {
|
.force-table-100 {
|
||||||
width: calc(100vw);
|
width: calc(100vw);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.fr-table--bordered {
|
||||||
|
.table {
|
||||||
|
&.hoverable {
|
||||||
|
tbody tr:hover {
|
||||||
|
background: $white;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
%tbody
|
%tbody
|
||||||
- @deleted_dossiers.each do |deleted_dossier|
|
- @deleted_dossiers.each do |deleted_dossier|
|
||||||
%tr
|
%tr
|
||||||
%td.folder-col
|
%td.text-center
|
||||||
%span.icon.folder
|
%span.icon.folder
|
||||||
%td.number-col
|
%td.number-col
|
||||||
= deleted_dossier.dossier_id
|
= deleted_dossier.dossier_id
|
||||||
|
@ -56,4 +56,3 @@
|
||||||
= paginate @deleted_dossiers
|
= paginate @deleted_dossiers
|
||||||
- else
|
- else
|
||||||
Aucun dossier supprimé
|
Aucun dossier supprimé
|
||||||
|
|
||||||
|
|
|
@ -78,15 +78,15 @@
|
||||||
.flex
|
.flex
|
||||||
.flex-grow= render batch_operation_component
|
.flex-grow= render batch_operation_component
|
||||||
.fr-table.fr-table--bordered
|
.fr-table.fr-table--bordered
|
||||||
%table.dossiers-table
|
%table.table.dossiers-table.hoverable
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
- if batch_operation_component.render?
|
- if batch_operation_component.render?
|
||||||
%th
|
%th.text-center
|
||||||
%input{ type: "checkbox", data: { "batch-operation-target" => "all","action" => "batch-operation#onCheckAll"}, id: dom_id(BatchOperation.new, :checkbox_all), aria: { title: t('views.instructeurs.dossiers.select_all') } }
|
%input{ type: "checkbox", data: { "batch-operation-target" => "all","action" => "batch-operation#onCheckAll"}, id: dom_id(BatchOperation.new, :checkbox_all), aria: { title: t('views.instructeurs.dossiers.select_all') } }
|
||||||
- else
|
- else
|
||||||
- if @statut.in? %w(suivis traites tous)
|
- if @statut.in? %w(suivis traites tous)
|
||||||
= render partial: "header_field", locals: { field: { "label" => "●", "table" => "notifications", "column" => "notifications" }, classname: "notification-col" }
|
= render partial: "header_field", locals: { field: { "label" => "●", "table" => "notifications", "column" => "notifications" }, classname: "notification-col text-center" }
|
||||||
- else
|
- else
|
||||||
%th.notification-col
|
%th.notification-col
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@
|
||||||
- @projected_dossiers.each do |p|
|
- @projected_dossiers.each do |p|
|
||||||
- path = instructeur_dossier_path(@procedure, p.dossier_id)
|
- path = instructeur_dossier_path(@procedure, p.dossier_id)
|
||||||
%tr{ class: [p.hidden_by_user_at.present? && "file-hidden-by-user"] }
|
%tr{ class: [p.hidden_by_user_at.present? && "file-hidden-by-user"] }
|
||||||
%td.folder-col
|
%td.text-center
|
||||||
- if batch_operation_component.render?
|
- if batch_operation_component.render?
|
||||||
- if p.batch_operation_id.present?
|
- if p.batch_operation_id.present?
|
||||||
= check_box_tag :"batch_operation[dossier_ids][]", p.dossier_id, true, disabled: true, id: dom_id(BatchOperation.new, "checkbox_#{p.dossier_id}")
|
= check_box_tag :"batch_operation[dossier_ids][]", p.dossier_id, true, disabled: true, id: dom_id(BatchOperation.new, "checkbox_#{p.dossier_id}")
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
%td.folder-col
|
%td.text-center
|
||||||
%p.cell-link
|
%p.cell-link
|
||||||
%span.icon.folder
|
%span.icon.folder
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
%tr{ class: [p.hidden_by_administration_at.present? && "file-hidden-by-user"] }
|
%tr{ class: [p.hidden_by_administration_at.present? && "file-hidden-by-user"] }
|
||||||
- if instructeur_and_expert_dossier
|
- if instructeur_and_expert_dossier
|
||||||
%td.folder-col.cell-link
|
%td.text-center.cell-link
|
||||||
%span.icon.folder
|
%span.icon.folder
|
||||||
%td.number-col
|
%td.number-col
|
||||||
.cell-link= p.dossier_id
|
.cell-link= p.dossier_id
|
||||||
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
- else
|
- else
|
||||||
|
|
||||||
%td.folder-col
|
%td.text-center
|
||||||
%a.cell-link{ href: path }
|
%a.cell-link{ href: path }
|
||||||
%span.icon.folder
|
%span.icon.folder
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue