-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c8ea1a7
commit fadbe13
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
...stinguer-facilement-les-questions-de-lexport-que-levalue-na-pas-passe/readme.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# EVA-260 : Le conseiller peut distinguer facilement les questions de l'export que l'évalué n'a pas passé | ||
|
||
[Lien du ticket](https://captive-team.atlassian.net/browse/EVA-260) | ||
|
||
Modifié la méthode `remplis_ligne` et ajouter une méthode pour appliquer le style dans Worksheet: | ||
|
||
|
||
Dans export numeratie faire qqch comme: | ||
```ruby | ||
def remplis_ligne(ligne, donnees, question) | ||
est_non_repondu = questions_non_repondues.any? { |q| q[:nom_technique] == donnees['question'] } | ||
code = Metacompetence.new(donnees['metacompetence']).code_clea_sous_sous_domaine | ||
row_data = ligne_data(code, donnees, question) | ||
@sheet.row(ligne).replace(row_data) | ||
grise_ligne(ligne) if est_non_repondu | ||
remplis_choix(ligne, donnees, question) | ||
ligne + 1 | ||
end | ||
``` | ||
|
||
dans Worksheet: | ||
```ruby | ||
def applique_style_ligne(ligne, style) | ||
@sheet.row(ligne).default_format = style | ||
end | ||
``` |