Add empty case handling for differentials in partial template
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
<ul>
|
||||
{% for diff in case.differentialcase.all %}
|
||||
<li>{{diff.condition.get_link}} - {{diff.text}}</li>
|
||||
{% empty %}
|
||||
<span class="text-muted">No differentials added for this case.</span>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
Reference in New Issue
Block a user