第 5149 行上的块标记无效:"endif"。您是否忘记注册或加载此标签?我错在哪里?



我不确定哪里出了问题。我相信我遵守了这里的每一条规则。请指出我是否遗漏了什么。我很感激你的帮助。

(% if tot86|floatformat > 0 %)
<div class="row">
<div class="col-8 text-start fs2 border-bottom border-end border-start border-dark"><b>Income</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot86|floatformat}}</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot86|floatformat}}</b></div>
</div>
<div class="row">
<div class="col-8 text-start fs2 border-bottom border-end border-start border-dark"><b>AMOUNT PAYABLE</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot90|floatformat}}</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot91|floatformat}}</b></div>
</div>
{% endif %}

您在使用(代替{)代替}if语句中出现拼写错误。因此将(更改为{,将)更改为}

{% if tot86|floatformat > 0 %}
<div class="row">
<div class="col-8 text-start fs2 border-bottom border-end border-start border-dark"><b>Income</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot86|floatformat}}</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot86|floatformat}}</b></div>
</div>
<div class="row">
<div class="col-8 text-start fs2 border-bottom border-end border-start border-dark"><b>AMOUNT PAYABLE</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot90|floatformat}}</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot91|floatformat}}</b></div>
</div>
{% endif %}

相关内容

  • 没有找到相关文章

最新更新