edit.html 480 B

123456789101112131415
  1. {% extends "base.html" %}
  2. {% block content %}
  3. <h2>Редактировать комментарий к новости</h2>
  4. <h3>{{ comment.news.title }}</h3>
  5. <form class="form-horizontal" method="post">
  6. {% csrf_token %}
  7. {% include "includes/errors.html" %}
  8. {% for field in form %}
  9. {{ field }}
  10. {% endfor %}
  11. <div class="form-actions">
  12. <button type="submit" class="btn btn-primary" >Сохранить</button>
  13. </div>
  14. </form>
  15. {% endblock %}