Add datatable to erq_list
This commit is contained in:
parent
6f3ce51ab9
commit
525a2a9378
2 changed files with 9 additions and 1 deletions
BIN
db.sqlite3
BIN
db.sqlite3
Binary file not shown.
|
@ -154,7 +154,15 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td>{{ inst.code }}</td>
|
<td>{{ inst.code }}</td>
|
||||||
<td>{{ inst.process.name }}</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>{{ inst.well.water_subscription_number }}</td>
|
||||||
<td>{% if inst.representative %}{{ inst.representative.get_full_name }}{% else %}-{% endif %}</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>
|
<td>{% if inst.well and inst.well.county %}{{ inst.well.county }}{% else %}-{% endif %}</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue