First Commit

This commit is contained in:
mrtoine 2025-09-12 11:11:44 +02:00
commit ce0758fbbb
496 changed files with 52062 additions and 0 deletions

View file

@ -0,0 +1,17 @@
{% extends 'layout.html' %}
{% block content %}
<div class="container">
<h2>Créer un Post</h2>
<form action="" method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ post_form.as_p }}
{% if type == 'news' %}
<label for="image">Image</label>
<input type="file" name="image" id="image">
{% endif %}
<br>
<button type="submit" class="btn btn-primary">Créer</button>
</form>
</div>
{% endblock %}