mirror of
https://github.com/partitioncloud/partitioncloud-server.git
synced 2025-01-24 01:36:25 +01:00
89 lines
2.9 KiB
HTML
89 lines
2.9 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
<h2>{% block title %}{{ _('Détails de "%(name)s"', name=partition.name)}}{% endblock %}</h2>
|
|
<br/>
|
|
|
|
<form action="/partition/{{ partition.uuid }}/edit" method="post" enctype="multipart/form-data">
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
{{ _("Responsable de l'ajout") }}
|
|
</td>
|
|
<td>
|
|
{% if user is not none %}
|
|
<div class="user-profile"><!-- Completely messy html for this -->
|
|
<div class="table-username">{{ partition_user.username }}</div>
|
|
<div class="user-profile-picture" style="background-color:{{ partition_user.color }};" title="{{ partition_user.username }}">
|
|
{{ partition_user.username[0] | upper }}
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
{{ _("Inconnu") }}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
<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>
|
|
<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="/thumbnails/{{ partition.uuid }}.jpg" loading="lazy">
|
|
</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>
|
|
<tr>
|
|
<td>{{ _("Pièces jointes") }}</td>
|
|
{% set _ = partition.load_attachments() %}
|
|
<td><a href="/partition/{{ partition.uuid }}/attachments">
|
|
{% if partition.attachments %}
|
|
{% set number=partition.attachments | length %}
|
|
{{ _("Oui, %(number)s", number=number) }}
|
|
{% else %}
|
|
{{ _("En rajouter") }}
|
|
{% endif %}
|
|
</a></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<input type="submit" value="{{ _('Mettre à jour') }}" />
|
|
</form>
|
|
<a href="/partition/{{ partition.uuid }}/delete">
|
|
<button id="delete-partition">{{ _("Supprimer") }}</button>
|
|
</a>
|
|
|
|
{% endblock %} |