<div class="p-3">
  <h4>CidUserExam: {% if cid_user_exam.cid_user %}{{ cid_user_exam.cid_user.cid }}{% elif cid_user_exam.user_user %}{{ cid_user_exam.user_user.username }}{% else %}-{% endif %}</h4>
  <table class="table table-sm">
    <tbody>
      <tr><th>CID</th><td>{% if cid_user_exam.cid_user %}{{ cid_user_exam.cid_user.cid }}{% else %}-{% endif %}</td></tr>
      <tr><th>User</th><td>{% if cid_user_exam.user_user %}{{ cid_user_exam.user_user.username }}{% else %}-{% endif %}</td></tr>
      <tr><th>Start time</th><td>{{ cid_user_exam.start_time }}</td></tr>
      <tr><th>End time</th><td>{{ cid_user_exam.end_time }}</td></tr>
      <tr><th>Completed</th><td>{{ cid_user_exam.completed }}</td></tr>
      <tr><th>Manual submission</th><td>{{ cid_user_exam.manual_submission }}</td></tr>
      <tr><th>Share with supervisor</th><td>{{ cid_user_exam.share_with_supervisor }}</td></tr>
      <tr><th>Results emailed status</th><td>{{ cid_user_exam.results_emailed_status }}</td></tr>
      <tr><th>CID User email</th><td>{% if cid_user_exam.cid_user %}{{ cid_user_exam.cid_user.email }}{% else %}-{% endif %}</td></tr>
    </tbody>
  </table>
  <div class="d-flex justify-content-end">
    {% if cid_user_exam %}
      <a class="btn btn-sm btn-outline-primary me-2" href="{% url 'generic:update_cid_user_exam' cid_user_exam.pk %}">Edit</a>
    {% endif %}
    <button class="btn btn-sm btn-secondary" data-bs-dismiss="modal">Close</button>
  </div>
</div>
