{% extends "ui/panels/_base.html" %}
{% load helpers %}
{% load i18n %}

{% block panel_content %}
  {% with backend=object.backend_class %}
    <table class="table table-hover attr-table">
      {% for name, field in backend.parameters.items %}
        <tr>
          <th scope="row">{{ field.label }}</th>
          {% if name in backend.sensitive_parameters %}
            <td>********</td>
          {% else %}
            <td>{{ object.parameters|get_key:name|placeholder }}</td>
          {% endif %}
        </tr>
      {% empty %}
        <tr>
          <td colspan="2" class="text-muted">
            {% trans "No parameters defined" %}
          </td>
        </tr>
      {% endfor %}
    </table>
  {% endwith %}
{% endblock panel_content %}
