2022-12-19 15:19:58 +01:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block content %}
|
2023-06-23 22:19:00 +02:00
|
|
|
<h2>{% block title %}Détails "{{ partition.name }}"{% endblock %}</h2>
|
2022-12-19 15:19:58 +01:00
|
|
|
<br />
|
|
|
|
|
2023-06-23 22:19:00 +02:00
|
|
|
<form action="/partition/{{ partition.uuid }}/edit" method="post" enctype="multipart/form-data">
|
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
Responsable de l'ajout
|
|
|
|
</td>
|
2023-10-01 14:47:49 +02:00
|
|
|
<td>
|
2023-06-23 22:19:00 +02:00
|
|
|
{% if user is not none %}
|
|
|
|
<div class="user-profile"><!-- Completely messy html for this -->
|
|
|
|
<div class="table-username">{{ user.username }}</div>
|
|
|
|
<div class="user-profile-picture" style="background-color:{{ user.color }};" title="{{ user.username }}">
|
|
|
|
{{ user.username[0] | upper }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
inconnu
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2023-08-30 19:50:00 +02:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
Type d'ajout
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{% if partition.source == "unknown" or partition.source == "upload" %}
|
|
|
|
{{ partition.source }}
|
|
|
|
{% else %}
|
|
|
|
<a href="{{ partition.source }}">search</a>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
2023-06-23 22:19:00 +02:00
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
Albums
|
|
|
|
</td>
|
|
|
|
<td class="liste">
|
|
|
|
<ul>
|
|
|
|
{% for album in albums %}
|
|
|
|
<li><a href="/albums/{{ album.uuid }}">{{ album.name }}</a></li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Fichier</td>
|
|
|
|
<td><a href="/partition/{{ partition.uuid }}"><img class="partition-thumbnail" src="/static/thumbnails/{{ partition.uuid }}.jpg"></a></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Titre</td>
|
|
|
|
<td><input name="name" type="text" value="{{ partition.name }}" placeholder="Titre" required /><br/></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Auteur</td>
|
|
|
|
<td><input name="author" type="text" value="{{ partition.author }}" placeholder="Auteur" /><br/></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>Paroles</td>
|
|
|
|
<td><textarea id="paroles" name="body" type="text" placeholder="Paroles">{{ partition.body }}</textarea><br/></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2022-12-19 15:19:58 +01:00
|
|
|
<input type="submit" value="Mettre à jour" />
|
|
|
|
</form>
|
|
|
|
<a href="/partition/{{ partition.uuid }}/delete">
|
2023-06-23 22:19:00 +02:00
|
|
|
<button id="delete-partition">Supprimer</button>
|
2022-12-19 15:19:58 +01:00
|
|
|
</a>
|
|
|
|
|
|
|
|
{% endblock %}
|