Initial work on #655: CSV import headers

This commit is contained in:
Jeremy Stretch
2017-05-31 17:40:11 -04:00
parent 293dbd8a8b
commit a598f0e632
6 changed files with 168 additions and 52 deletions

View File

@@ -28,6 +28,23 @@
</div>
<div class="col-md-6">
{% block instructions %}{% endblock %}
{% if fields %}
<h4>CSV Format</h4>
<table class="table">
<tr>
<th>Field</th>
<th>Required</th>
<th>Description</th>
</tr>
{% for name, field in fields.items %}
<tr>
<td><code>{{ name }}</code></td>
<td>{% if field.required %}<i class="glyphicon glyphicon-ok" title="Required"></i>{% endif %}</td>
<td>{{ field.help_text }}</td>
</tr>
{% endfor %}
</table>
{% endif %}
</div>
</div>
{% endblock %}