sub-aligator/templates/partials/pool_preview.html

26 lines
898 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div class="preview-box">
{% if has_error %}
<p class="error" id="preview-warning">{{ error }}</p>
<p class="label">Next free subnet: <span class="value">–</span></p>
{% else %}
<p>
<span class="label">Next free subnet:</span>
<span class="value" id="preview-cidr">{{ cidr }}</span>
</p>
<p>
<span class="label">Total addresses:</span>
<span class="value" id="preview-address-count">{{ address_count }}</span>
</p>
<p>
<span class="label">Usable hosts:</span>
<span class="value" id="preview-usable-hosts">{{ usable_host_count }}</span>
</p>
{% if prefix_length >= 31 %}
<p class="small" id="preview-warning">
For /31 and /32, network/broadcast addresses may coincide with host addresses per RFC 3021.
</p>
{% else %}
<p class="small" id="preview-warning"></p>
{% endif %}
{% endif %}
</div>