-
-
Save vitorfs/ee9d8c91888b0bc60013b8f037bae7bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'base.html' %} | |
{% load static %} | |
{% block title %}Edit post{% endblock %} | |
{% block stylesheet %} | |
<link rel="stylesheet" href="{% static 'css/simplemde.min.css' %}"> | |
{% endblock %} | |
{% block javascript %} | |
<script src="{% static 'js/simplemde.min.js' %}"></script> | |
<script> | |
var simplemde = new SimpleMDE(); | |
</script> | |
{% endblock %} | |
{% block breadcrumb %} | |
<li class="breadcrumb-item"><a href="{% url 'home' %}">Boards</a></li> | |
<li class="breadcrumb-item"><a href="{% url 'board_topics' post.topic.board.pk %}">{{ post.topic.board.name }}</a></li> | |
<li class="breadcrumb-item"><a href="{% url 'topic_posts' post.topic.board.pk post.topic.pk %}">{{ post.topic.subject }}</a></li> | |
<li class="breadcrumb-item active">Edit post</li> | |
{% endblock %} | |
{% block content %} | |
<form method="post" class="mb-4" novalidate> | |
{% csrf_token %} | |
{% include 'includes/form.html' %} | |
<button type="submit" class="btn btn-success">Save changes</button> | |
<a href="{% url 'topic_posts' post.topic.board.pk post.topic.pk %}" class="btn btn-outline-secondary" role="button">Cancel</a> | |
</form> | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment