oTree Forum >

Underline part of a label for models.IntegerField

#1 by steleta

Otree version 5.10.4.
Using a models.IntegerField.

label='I believe that a bonus is awarded mainly based on <u>how many times the employee answered correctly.</u>'
Trying to have a part of a label underlined but unable.  Tried in the template with
            {% for field in form %}
                <tr>
                    <th scope="col" colspan="7">label {{ field.label|safe }}</th>
                </tr>
But this didn't have the desired effect.

#2 by steleta (edited )

This appears to be happening because of the for loop. If I just do a {{ formfields }} the underline is working.

Write a reply

Set forum username