2017-09-25 10:46:09 +02:00
|
|
|
%th{ class: classname }
|
2019-08-06 11:02:54 +02:00
|
|
|
= link_to update_sort_instructeur_procedure_path(@procedure, table: field['table'], column: field['column']) do
|
2017-09-27 15:16:07 +02:00
|
|
|
= field['label']
|
|
|
|
- if @procedure_presentation.sort['table'] == field['table'] && @procedure_presentation.sort['column'] == field['column']
|
|
|
|
- if @procedure_presentation.sort['order'] == 'asc'
|
2021-04-23 21:16:56 +02:00
|
|
|
%img.caret-icon{ src: image_url("table/up_caret.svg"), width: 10, height: 6, loading: 'lazy' }
|
2017-09-27 15:16:07 +02:00
|
|
|
- else
|
2021-04-23 21:16:56 +02:00
|
|
|
%img.caret-icon{ src: image_url("table/down_caret.svg"), width: 10, height: 6, loading: 'lazy' }
|