Layout fixes

This commit is contained in:
Tris Forster 2026-08-05 07:58:57 +10:00
parent 521b3fd6c5
commit 980c1491aa
6 changed files with 29 additions and 43 deletions

View File

@ -36,22 +36,16 @@ Contacts:
{% include 'interface/project_items.html' %}
{% if request.is_admin %}
<div class="">
<div class="card">
<header class="card header">
<p class="card-header-title">Admin Details</p>
</header>
<div class="card-content">
<ul>
<li><a href="{{ ensemble_link }}">Ensemble Sharing Link</a></li>
<li><a href="{% url 'project_create' ensemble.pk %}">Add a new project</a></li>
</ul>
</div>
</div>
<div class="box">
<h3 class="subtitle">Admin Details</h3>
<ul>
<li><a href="{{ ensemble_link }}">Ensemble Sharing Link</a></li>
<li><a href="{% url 'project_create' ensemble.pk %}">Add a new project</a></li>
</ul>
</div>
{% endif %}
<div>
<div class="has-text-right is-size-6">
<a href="{% url 'forget_resource' 'ensemble' ensemble.slug %}">Forget this ensemble</a>
</div>

View File

@ -43,8 +43,11 @@
</div>
</div>
{% empty %}
<div class="hero">
You don't currently have access to any ensembles - ask your administrator for a link.
<div class="hero mx-auto my-4">
<div class="hero-body has-text-centered">
<p class="title">No ensembles found</p>
<p class="subtitle">Ask your administrator for a link.</p>
</div>
</div>
{% endfor %}
</div>

View File

@ -12,7 +12,8 @@
<p class="card-header-icon" style="color: black;">{{ project.rough_date }}</p>
</header>
</a>
<div class="card-content" style="height: 100px; overflow: hidden">
<div class="card-content" style="height: 150px; overflow: hidden">
<div><b>{{ project.event_date|date:"l jS F Y, g:i A" }}</b></div>
<div class="content">
{{ project.description | markdown }}
</div>
@ -26,8 +27,8 @@
</div>
</div>
{% empty %}
<div class="hero">
<div class="hero-body">
<div class="hero mx-auto my-4">
<div class="hero-body has-text-centered">
<p class="title">No projects currently planned</p>
<p class="subtitle">Go put your feet up!</p>
</div>

View File

@ -1,6 +1,9 @@
<div class="panel">
<p class="panel-heading">
Items
{% if request.is_admin %}
<a href="{% url 'item_list_manage' project=project.pk %}" class="button is-small is-pulled-right">Edit Items</a>
{% endif %}
</p>
{% for item in project.items.all %}
@ -20,7 +23,7 @@
<div class="modal-background" onclick="closeDownloadModal()"></div>
<div class="modal-card">
<header class="modal-card-head">
<p class="modal-card-title">Parts</p>
<p class="modal-card-title">Available Parts</p>
<button class="delete" aria-label="close" onclick="closeDownloadModal()"></button>
</header>
<section class="modal-card-body" id="download-target">

View File

@ -41,7 +41,8 @@
<th>Work</th>
<th>Composer</th>
<th class="is-hidden-mobile">Edition</th>
{% if not collection %}<th class="is-hidden-touch">Collection</th>{% endif %}
{% if not collection and not project %}<th class="is-hidden-touch">Collection</th>{% endif %}
{% if project %}<th/>{% endif %}
</tr>
</thead>
<tbody>
@ -52,7 +53,8 @@
</td>
<td title="{{ work.composer }}">{{ work.composer|truncatewords:3 }}</td>
<td class="is-hidden-mobile" title="{{ work.edition }}">{{ work.edition|truncatewords:2 }}</td>
{% if not collection %}<td class="is-hidden-touch">{{ work.collection.name }}</td>{% endif %}
{% if not collection and not project %}<td class="is-hidden-touch">{{ work.collection.name }}</td>{% endif %}
{% if project %}<td><a href"" class="button is-primary is-small">Add</a>{% endif %}
</tr>
{% empty %}
<tr><td colspan="4">No works found</td></tr>

View File

@ -1,27 +1,10 @@
<h3 class="subtitle">{{ work.name }}</h3>
<div class="block tags">
{% for tag, name in work.digital_parts %}
<a class="tag is-info" href="{% url 'work_download' work.collection_id work.pk %}?tag={{ tag }}" target="polyphonic_parts">{{ name }}</a>
<a class="tag is-info" href="{% url 'work_download' work.collection_id work.pk %}?tag={{ tag }}" target="_blank">{{ name }}</a>
{% endfor %}
</div>
<!--
<h3 class="subtitle">Files</h3>
<table class="table is-narrow is-fullwidth">
<tbody>
{% for doc in work.pdfs %}
<tr>
<td><a href="{{ doc.upload.url }}">{{ doc.filename }}</a></td>
</tr>
{% empty %}
<tr>
<td>There are no files available for this work</td>
</tr>
{% endfor %}
</tbody>
</table>
-->
<p>
<a href="{% url 'work_detail' work.collection_id work.pk %}">More details...</a>
<p class="has-text-right">
<a href="{% url 'work_detail' work.collection_id work.pk %}">Full details for {{ work.name }}</a>
</p>