Skip to content

Commit

Permalink
Update example_markdown_evaluations.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
vingerha authored Jan 23, 2023
1 parent 026be6d commit dab2564
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions example_markdown_evaluations.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
type: markdown
content: |
<div>Evaluations Florian</div>
<div>Evaluations</div>
<table>
{% set dates = state_attr('sensor.pronote_vingerhoeds_florian_evaluation','date')%}
{% set dates = state_attr('sensor.pronote_parent_fanny_evaluation','date')%}
{% for i in range(0, dates | count, 1) %}
<tr>
{% if state_attr('sensor.pronote_vingerhoeds_florian_evaluation','acquisition_level')[i] == 'Expert' %}
{% if state_attr('sensor.pronote_parent_fanny_evaluation','acquisition_level')[i] == 'Expert' %}
<td>
<mark>
{{ dates[i].split("/",1)[1] }}</mark></td>
{% elif state_attr('sensor.pronote_vingerhoeds_florian_evaluation','acquisition_level')[i] == 'Maîtrise satisfaisante' %}
{% elif state_attr('sensor.pronote_parent_fanny_evaluation','acquisition_level')[i] == 'Maîtrise satisfaisante' %}
<td><p>{{dates[i].split("/",1)[1]}}</p></td>
{% elif state_attr('sensor.pronote_vingerhoeds_florian_evaluation','acquisition_level')[i] == 'Maîtrise insuffisante' %}
{% elif state_attr('sensor.pronote_parent_fanny_evaluation','acquisition_level')[i] == 'Maîtrise insuffisante' %}
<td><strong>{{dates[i].split("/",1)[1]}}</strong></td>
{% elif state_attr('sensor.pronote_vingerhoeds_florian_evaluation','acquisition_level')[i] == 'Absent' %}
{% elif state_attr('sensor.pronote_parent_fanny_evaluation','acquisition_level')[i] == 'Absent' %}
<td><u>{{dates[i].split("/",1)[1]+'A'}}</u></td>
{% else %}
<td><em>{{dates[i].split("/",1)[1]}}</em></td>
{% endif %}
<td>{{ state_attr('sensor.pronote_vingerhoeds_florian_evaluation','subject')[i] }}</td>
<td>{{ state_attr('sensor.pronote_vingerhoeds_florian_evaluation','acquisition_name')[i] }}</td>
<td>{{ state_attr('sensor.pronote_parent_fanny_evaluation','subject')[i] }}</td>
<td>{{ state_attr('sensor.pronote_parent_fanny_evaluation','acquisition_name')[i] }}</td>
</tr>
{% endfor %}
card_mod:
Expand Down

0 comments on commit dab2564

Please sign in to comment.