{% load djblets_utils i18n %}
<div id="comment-detail" style="display:none;position:absolute;">
 <div id="review_comments">
  <h1 class="title">{% trans "Other reviews" %}</h1>
  <ul id="review_comment_list"></ul>
 </div>
 <form id="draft-form" method="post">
  <h1 class="title">{% trans "Your comment" %}</h1>
  <input type="hidden" name="action" id="comment_action" value="" />
{% if not request.user.is_authenticated %}
{%  url login as login_url %}
  <p>
   {% blocktrans %}You must <a href="{{login_url}}">log in</a> to post
   a comment.{% endblocktrans %}
  </p>
{% elif draft %}
{%  definevar "draft_url" %}{{review_request.get_absolute_url}}{% enddefinevar %}
  <p class="draft-warning">
{%  blocktrans %}
   The review request's current <a href="{{draft_url}}">draft</a> needs to be
   published before you can comment.
{%  endblocktrans %}
  </p>
{% endif %}
  <textarea id="comment_text" name="text" rows="6" cols="30"></textarea>
  <div id="comment-issue-options">
   <input type="checkbox" name="comment_issue" id="comment_issue"/>
   <label for="comment_issue">{% trans "Open an <u>i</u>ssue" %}</label>
  </div>
  <div class="status"></div>
  <div class="buttons">
   <input type="button" id="comment_save" value="{% trans "Save" %}" disabled="true" />
   <input type="button" id="comment_cancel" value="{% trans "Cancel" %}" disabled="true" />
   <input type="button" id="comment_delete" value="{% trans "Delete" %}" disabled="true" />
  </div>
 </form>
</div>
