First Commit
This commit is contained in:
commit
ce0758fbbb
496 changed files with 52062 additions and 0 deletions
32
templates/gallery/form.html
Normal file
32
templates/gallery/form.html
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{% load static %}
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Passion rétro</title>
|
||||
<link rel="stylesheet" href="{% static 'themes/grid.css' %}">
|
||||
<link rel="stylesheet" href="{% static 'themes/' %}{{ request.theme_active }}/colors.css">
|
||||
<link rel="stylesheet" href="{% static 'themes/' %}{{ request.theme_active }}/typo.css">
|
||||
<link rel="stylesheet" href="{% static 'themes/' %}{{ request.theme_active }}/structure.css">
|
||||
</head>
|
||||
<body>
|
||||
{% if messages %}
|
||||
<div class="notification">
|
||||
<ul class="messages">
|
||||
{% for message in messages %}
|
||||
<li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="container">
|
||||
<form action="" method="POST" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<input type="submit" value="Importer image">
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
16
templates/gallery/home.html
Normal file
16
templates/gallery/home.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<h4>Galerie de {{ request.user }}</h4>
|
||||
|
||||
<div class="gallery">
|
||||
{% if images %}
|
||||
{% for image in images %}
|
||||
<div class="gallery-item" style="max-width: 200px; max-height: 300px; overflow: hidden;">
|
||||
<img src="{{ image }}" alt="Image de la galerie" style="width: 100%; height: auto;">
|
||||
<button class="bbcode-bar-item" type="button" data-tag="[img]{{ image }}[/img]" onclick="copyToClipboard(event)">Copier lien</button>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<p>Aucune image disponible dans la galerie.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<a href="#" class="btn btn-add" onclick="openPopup('/gallery/import')">Importer une image</a>
|
||||
Loading…
Add table
Add a link
Reference in a new issue