{% extends "templates/print_format/macros/Data.html" %} {% macro star(is_active=false) %} {%- set color = '#f6c35e' if is_active else '#dce0e3' -%} {% endmacro %} {%- block value -%}
{%- for i in range(value) -%} {{ star(true) }} {%- endfor -%} {%- for i in range(5 - value) -%} {{ star() }} {%- endfor -%}
{%- endblock -%}