Setting up pyenv and show default value on confirm add (#7)

Co-authored-by: Thu Trang Pham <thu@joinmodernhealth.com>
This commit is contained in:
Thu Trang Pham
2021-02-09 17:03:18 -08:00
committed by GitHub
parent 591aa48ba0
commit 209de62c9d
17 changed files with 219 additions and 23 deletions
+17 -9
View File
@@ -1,11 +1,19 @@
{% if changed_data %}
<div class="changed-data">
<p><b>Confirm Values:</b></p>
<table>
<tr><th>Field</th><th>Current Value</th><th>New Value</th></tr>
{% for field, values in changed_data.items %}
<tr><td>{{ field }}</td><td>{{ values.0 }}</td><td>{{ values.1 }}</td></tr>
{% endfor %}
</table>
</div>
<div class="changed-data">
<p><b>Confirm Values:</b></p>
<table>
<tr>
<th>Field</th>
<th>{% if add %} Default {% else %} Current {% endif %}Value</th>
<th>New Value</th>
</tr>
{% for field, values in changed_data.items %}
<tr>
<td>{{ field }}</td>
<td>{{ values.0 }}</td>
<td>{{ values.1 }}</td>
</tr>
{% endfor %}
</table>
</div>
{% endif %}