Refactor avis helpers
This commit is contained in:
parent
08d5e7d328
commit
b79e77687e
3 changed files with 3 additions and 4 deletions
|
@ -65,7 +65,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.confidentiel-explanation {
|
.confidentiel-explanation {
|
||||||
display: none;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: $grey;
|
color: $grey;
|
||||||
margin-top: -$default-padding;
|
margin-top: -$default-padding;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import $ from 'jquery';
|
import { toggle } from '@utils';
|
||||||
|
|
||||||
export function toggleCondidentielExplanation() {
|
export function toggleCondidentielExplanation() {
|
||||||
$('.confidentiel-explanation').toggle();
|
toggle(document.querySelector('.confidentiel-explanation'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
.confidentiel-wrapper
|
.confidentiel-wrapper
|
||||||
= f.label :confidentiel, 'Cet avis est'
|
= f.label :confidentiel, 'Cet avis est'
|
||||||
= f.select :confidentiel, [['partagé avec les autres experts', false], ['confidentiel', true]], {}, onchange: "javascript:DS.toggleCondidentielExplanation(event);"
|
= f.select :confidentiel, [['partagé avec les autres experts', false], ['confidentiel', true]], {}, onchange: "javascript:DS.toggleCondidentielExplanation(event);"
|
||||||
.confidentiel-explanation
|
.confidentiel-explanation.hidden
|
||||||
Il ne sera pas affiché aux autres experts consultés mais sera visible par les instructeurs
|
Il ne sera pas affiché aux autres experts consultés mais sera visible par les instructeurs
|
||||||
.send-wrapper
|
.send-wrapper
|
||||||
= f.submit 'Demander un avis', class: 'button send'
|
= f.submit 'Demander un avis', class: 'button send'
|
||||||
|
|
Loading…
Add table
Reference in a new issue