%li{ class: ('active' if active == 'Informations') } = link_to('Informations', admin_procedure_path(@procedure)) %li{ class: ('active' if active == 'Accompagnateurs') } = link_to('Accompagnateurs', admin_procedure_accompagnateurs_path(@procedure)) %li{ class: ('disabled' if @procedure.locked?) || ('active' if active == 'Description') } = link_to_unless(@procedure.locked?, 'Description', edit_admin_procedure_path(@procedure)) do = link_to('Description', '#') %li{ class: ('disabled' if @procedure.locked?) || ('active' if active == 'Champs') } = link_to_unless(@procedure.locked?, 'Champs', admin_procedure_types_de_champ_path(@procedure)) do = link_to('Champs', '#') %li{ class: ('disabled' if @procedure.locked?) || ('active' if active == 'Pieces') } = link_to_unless(@procedure.locked?, 'Pièces justificatives', admin_procedure_pieces_justificatives_path(@procedure)) do = link_to('Pièces justificatives', '#')