First Commit
This commit is contained in:
commit
ce0758fbbb
496 changed files with 52062 additions and 0 deletions
17
templates/posts/create_post.html
Executable file
17
templates/posts/create_post.html
Executable 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 %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue