aceb8996c1
Update app/javascript/controllers/checkbox_controller.ts Co-authored-by: Paul Chavard <github@paul.chavard.net>
9 lines
516 B
Text
9 lines
516 B
Text
%th{ class: classname }
|
|
= link_to update_sort_instructeur_procedure_path(@procedure, table: field['table'], column: field['column'], order: @procedure_presentation.opposite_order_for(field['table'], field['column'])) do
|
|
- if @procedure_presentation.sort['table'] == field['table'] && @procedure_presentation.sort['column'] == field['column']
|
|
- if @procedure_presentation.sort['order'] == 'asc'
|
|
#{field['label']} ↑
|
|
- else
|
|
#{field['label']} ↓
|
|
- else
|
|
#{field['label']}
|