Skip to content

Instantly share code, notes, and snippets.

@Porter97
Created February 12, 2020 13:49
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/445dc72095bcb0062513d9a6588c58c2 to your computer and use it in GitHub Desktop.
Save Porter97/445dc72095bcb0062513d9a6588c58c2 to your computer and use it in GitHub Desktop.
{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}
{% block title %}Offbrand - Edit Collection{% endblock %}
{% block page_content %}
<div class="page-header">
<h2 class="display-4">Edit Collection</h2>
{% if collection.author == current_user or current_user.is_administrator() %}
<a id="delete-collection" class="btn btn-danger" href="{{ url_for('.delete_collection', id=collection.id) }}">Delete Collection</a>
{% endif %}
</div>
<hr>
<div class="collection-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