|
12345678910111213141516171819202122232425262728293031323334353637 |
- <form id="add_comment" action="{% url "add_comment" %}" method="post" accept-charset="utf-8">
- <input type="hidden" name="last_comment" value="$post.latest_comment" id="last_comment" />
- {% if visitor.logged_in %}
- <p>
- <span class="who">
- <a class="logout" href="{% url "logout" %}">${ "Log Out →" | translate }</a>
- ${ "Logged in as %s" | translate | format(visitor.full_name | fallback(visitor.login)) }
- </span>
- </p>
- {% else %}
- <p>
- <label for="author">${ "Your Name" | translate }</label>
- <input type="text" name="author" value="" id="author" />
- </p>
- <p>
- <label for="email">${ "Your E-Mail" | translate }</label>
- <input type="text" name="email" value="" id="email" />
- </p>
- <p>
- <label for="url">${ "Your Website" | translate }</label>
- <input type="text" name="url" value="" id="url" />
- </p>
- {% endif %}
- <p>
- <textarea name="body" rows="8" cols="40" class="wide"></textarea>
- </p>
-
- <p>
- {% if visitor.logged_in %}
- <input type="hidden" name="author" value="${ visitor.full_name | fallback(visitor.login) }" id="author" />
- <input type="hidden" name="email" value="$visitor.email" id="email" />
- <input type="hidden" name="url" value="$visitor.website" id="url" />
- {% endif %}
- <input type="hidden" name="post_id" value="$post.id" id="post_id" />
- <button type="submit">${ "Speak" | translate }</button>
- </p>
- </form>
|