{% load i18n sizeformat %}

<h3>{% trans "Quick Test Results" %}</h3>

{% block modal-header %}
  <a href="{% url 'horizon:project:connections:reachability_tests:save' %}" class="btn btn-primary ajax-modal pull-right">{% trans "Save" %}</a>
{% endblock %}

<div class="info row-fluid detail">
  <h4>{% trans "Info" %}</h4>
  <hr class="header_rule">
  <dl>
    <dt>{% trans "Connection Source" %}</dt>
    <dd>Source Tenant: {{ reachabilityquicktest.src_tenant_name|default:_("None") }}</dd>
    <dd>Source Segment: {{ reachabilityquicktest.src_segment_name|default:_("None") }}</dd>
    <dd>Source IP: {{ reachabilityquicktest.src_ip|default:_("None") }}</dd>
    <dt>{% trans "Connection Destination" %}</dt>
    <dd>Destination IP: {{ reachabilityquicktest.dst_ip|default:_("None") }}</dd>
  </dl>
</div>

<div class="specs row-fluid detail">
  <h4>{% trans "Results" %}</h4>
  <hr class="header_rule">
  <dl>
    <dt>{% trans "Time Stamp" %}</dt>
    <dd>{{ reachabilityquicktest.test_time|default:_("None") }}</dd>
    <dt>{% trans "Expected Result" %}</dt>
    <dd>{{ reachabilityquicktest.expected_result|default:_("None") }}</dd>
    <dt>{% trans "Test Results" %}</dt>
    <dd>{{ reachabilityquicktest.test_result|default:_("None") }}</dd>
    <dt>{% trans "Command Line Output" %}</dt>
    <div class="command-prompt-background">
        <ul class="command-prompt-text"></ul>
    </div>
  </dl>
</div>

