Skip to content

Instantly share code, notes, and snippets.

@Porter97
Last active February 13, 2020 20:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Porter97/51111118ca21e02a41993aeb855b8232 to your computer and use it in GitHub Desktop.
Save Porter97/51111118ca21e02a41993aeb855b8232 to your computer and use it in GitHub Desktop.
{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% block title %}Offbrand - Edit Content{% endblock %}
{% block page_content %}
<div class="page-header">
<h2 class="display-4">Edit Content</h2>
{% if content.collection.author == current_user or current_user.is_administrator() %}
<a id="delete-content" class="btn btn-danger" href="{{ url_for('.delete_content', id=content.id) }}">Delete Content</a>
{% endif %}
</div>
<hr>
<div class="content-form">
{{ wtf.quick_form(form) }}
</div>
{% endblock %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment