i want two button in a twig page where it show whether the status is "true" or "false", so i write my code like so, and it is working, i mean some of the part because it is returning whether it is "true" or "false" and changing it's color. But it is also re
<td>
<div class="btn-group" data-toggle="buttons-radio">
{% if userinfo.stats == TRUE %}
{<button class="btn btn-success btn-xs myOn-button" >}
{% else %}{<button class="btn btn-danger btn-xs myOn-button" >}{% endif %}
<button onclick="deleteStuff()">ON</button>
</div> </td>
But it is also showing some weird character in the button. Do someone knows where i am making mistake. I need to make two button "ON" and "OFF" which return the stats.
if i remove the---
{<button class="btn btn-success btn-xs myOn-button" >}
to
<button class="btn btn-success btn-xs myOn-button" >
so there is no button named "on" or "OFF" ! How i can fix it ...