874a0c1ad9
- forum/forms.py: TopicForm/ReplyForm/EditPostForm con CKEditor5Widget (rich text) - vistas crear/responder/editar pasan el form; el HTML del editor se sanea con nh3 - acciones de moderación (bloquear, fijar, mover, borrar/restaurar temas y posts) ahora exigen POST y van con CSRF; las plantillas usan formularios en vez de enlaces GET - docs/FORO.md actualizado Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
34 lines
1.2 KiB
HTML
34 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
|
|
{% include 'partials/head.html' %}
|
|
{% include 'partials/header.html' %}
|
|
{% include 'partials/video.html' %}
|
|
|
|
<div class="main-page">
|
|
<div class="middle-content">
|
|
<div class="body-content">
|
|
<div class="title-content"><h1>Editar mensaje</h1></div>
|
|
<div class="box-content">
|
|
<div class="body-box-content">
|
|
{% include 'forum/_style.html' %}
|
|
<div class="forum-wrap forum-form">
|
|
<form action="{% url 'forum_update_post' post_id=post.id %}" method="POST">
|
|
{% csrf_token %}
|
|
{{ form.text }}
|
|
<div class="forum-actions">
|
|
<button type="submit" class="forum-btn">Guardar cambios</button>
|
|
<a class="forum-btn" href="{% url 'forum_topic_p1' topic_id=post.topic_id %}">Cancelar</a>
|
|
</div>
|
|
</form>
|
|
{{ form.media }}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% include 'partials/social.html' %}
|
|
{% include 'partials/footer.html' %}
|
|
{% include 'partials/final.html' %}
|