1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Clean up CSV import table

This commit is contained in:
Jeremy Stretch
2020-05-01 16:01:55 -04:00
parent 4486957b9a
commit f9f7c19d81

View File

@ -43,7 +43,7 @@
<tr>
<th>Field</th>
<th>Required</th>
<th>Dynamic</th>
<th>Accessor</th>
<th>Description</th>
</tr>
{% for name, field in fields.items %}
@ -54,11 +54,15 @@
<td>
{% if field.required %}
<i class="fa fa-check text-success" title="Required"></i>
{% else %}
<span class="text-muted">&mdash;</span>
{% endif %}
</td>
<td>
{% if field.to_field_name %}
<i class="fa fa-asterisk text-success" title="Dynamic"></i>
<code>{{ field.to_field_name }}</code>
{% else %}
<span class="text-muted">&mdash;</span>
{% endif %}
</td>
<td>
@ -84,9 +88,8 @@
objects.
</p>
<p class="small text-muted">
<i class="fa fa-asterisk"></i> Dynamic fields may optionally refer to a related object by an
alternative attribute. For example, <code>vrf.rd</code> would identify a VRF by its RD
attribute.
<i class="fa fa-info-circle"></i> Related objects may be referenced by any unique attribute.
For example, <code>vrf.rd</code> would identify a VRF by its route distinguisher.
</p>
{% endif %}
</div>