Add datatable to erq_list

This commit is contained in:
aminhashemi92 2025-09-07 11:30:33 +03:30
parent 6f3ce51ab9
commit 525a2a9378
2 changed files with 9 additions and 1 deletions

View file

@ -154,7 +154,15 @@
<tr>
<td>{{ inst.code }}</td>
<td>{{ inst.process.name }}</td>
<td class="text-primary">{{ inst.current_step.name|default:"--" }}</td>
<td class="text-primary">
{% if inst.status == 'completed' %}
<a href="{% url 'processes:instance_summary' inst.id %}" class="text-primary">{{ inst.current_step.name|default:"--" }}</a>
{% elif inst.current_step %}
<a href="{% url 'processes:instance_steps' inst.id %}" class="text-primary">{{ inst.current_step.name }}</a>
{% else %}
--
{% endif %}
</td>
<td>{{ inst.well.water_subscription_number }}</td>
<td>{% if inst.representative %}{{ inst.representative.get_full_name }}{% else %}-{% endif %}</td>
<td>{% if inst.well and inst.well.county %}{{ inst.well.county }}{% else %}-{% endif %}</td>