fixed implementation of UGC content uploader
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
{% extends 'base.html' %}
|
||||
{% load static %}
|
||||
|
||||
{% block title %}Edit {{ project.title }} - Packs Site{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1><i class="fas fa-pen"></i> Edit {{ project.title }}</h1>
|
||||
<p><a href="{% url 'library:project_detail' project.slug %}">← Back to project</a></p>
|
||||
|
||||
<form method="post" enctype="multipart/form-data" class="card project-form" id="project-form">
|
||||
{% csrf_token %}
|
||||
|
||||
<div class="project-form-grid">
|
||||
<div class="project-form-main">
|
||||
{% include 'library/_project_form_fields.html' with form=project_form %}
|
||||
</div>
|
||||
|
||||
<aside class="project-form-side">
|
||||
{% include 'library/_project_form_side.html' with form=project_form %}
|
||||
</aside>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-primary"><i class="fas fa-check"></i> Save changes</button>
|
||||
</div>
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
||||
{% block extra_js %}
|
||||
<script src="{% static 'js/tags.js' %}"></script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user