Fix recently introduced bugs

This commit is contained in:
augustin64 2024-01-26 11:14:43 +01:00
parent 74444871c0
commit c219f28a37
3 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,8 @@
<textarea id="lyrics" name="body" type="text" placeholder="{{ _('lyrics') }}"></textarea><br/> <textarea id="lyrics" name="body" type="text" placeholder="{{ _('lyrics') }}"></textarea><br/>
{% if partition_uuid %} {% if partition_uuid %}
<input name="partition-uuid" value="{{ partition_uuid }}" type="hidden"> <input name="partition-uuid" value="{{ partition_uuid }}" type="hidden">
{% else %}
<input name="file" type="file" accept=".pdf" required=""><br/>
{% endif %} {% endif %}
<input type="submit" value="{{ _('Add') }}" /> <input type="submit" value="{{ _('Add') }}" />
</form> </form>

View File

@ -68,7 +68,7 @@
</tr> </tr>
<tr> <tr>
<td>{{ _("Attachments") }}</td> <td>{{ _("Attachments") }}</td>
{% set _ = partition.load_attachments() %} {{ partition.load_attachments() }}
<td><a href="/partition/{{ partition.uuid }}/attachments"> <td><a href="/partition/{{ partition.uuid }}/attachments">
{% if partition.attachments %} {% if partition.attachments %}
{% set number=partition.attachments | length %} {% set number=partition.attachments | length %}

View File

@ -39,7 +39,7 @@
</tr> </tr>
<tr> <tr>
<td>{{ _("Attachments") }}</td> <td>{{ _("Attachments") }}</td>
{% set _ = partition.load_attachments() %} {{ partition.load_attachments() }}
<td><a href="/partition/{{ partition.uuid }}/attachments"> <td><a href="/partition/{{ partition.uuid }}/attachments">
{% if partition.attachments %} {% if partition.attachments %}
{% set number=partition.attachments | length %} {% set number=partition.attachments | length %}