Layout fixes
This commit is contained in:
parent
521b3fd6c5
commit
980c1491aa
@ -36,22 +36,16 @@ Contacts:
|
|||||||
{% include 'interface/project_items.html' %}
|
{% include 'interface/project_items.html' %}
|
||||||
|
|
||||||
{% if request.is_admin %}
|
{% if request.is_admin %}
|
||||||
<div class="">
|
<div class="box">
|
||||||
<div class="card">
|
<h3 class="subtitle">Admin Details</h3>
|
||||||
<header class="card header">
|
|
||||||
<p class="card-header-title">Admin Details</p>
|
|
||||||
</header>
|
|
||||||
<div class="card-content">
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="{{ ensemble_link }}">Ensemble Sharing Link</a></li>
|
<li><a href="{{ ensemble_link }}">Ensemble Sharing Link</a></li>
|
||||||
<li><a href="{% url 'project_create' ensemble.pk %}">Add a new project</a></li>
|
<li><a href="{% url 'project_create' ensemble.pk %}">Add a new project</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div>
|
<div class="has-text-right is-size-6">
|
||||||
<a href="{% url 'forget_resource' 'ensemble' ensemble.slug %}">Forget this ensemble</a>
|
<a href="{% url 'forget_resource' 'ensemble' ensemble.slug %}">Forget this ensemble</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@ -43,8 +43,11 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<div class="hero">
|
<div class="hero mx-auto my-4">
|
||||||
You don't currently have access to any ensembles - ask your administrator for a link.
|
<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>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -12,7 +12,8 @@
|
|||||||
<p class="card-header-icon" style="color: black;">{{ project.rough_date }}</p>
|
<p class="card-header-icon" style="color: black;">{{ project.rough_date }}</p>
|
||||||
</header>
|
</header>
|
||||||
</a>
|
</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">
|
<div class="content">
|
||||||
{{ project.description | markdown }}
|
{{ project.description | markdown }}
|
||||||
</div>
|
</div>
|
||||||
@ -26,8 +27,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<div class="hero">
|
<div class="hero mx-auto my-4">
|
||||||
<div class="hero-body">
|
<div class="hero-body has-text-centered">
|
||||||
<p class="title">No projects currently planned</p>
|
<p class="title">No projects currently planned</p>
|
||||||
<p class="subtitle">Go put your feet up!</p>
|
<p class="subtitle">Go put your feet up!</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,6 +1,9 @@
|
|||||||
<div class="panel">
|
<div class="panel">
|
||||||
<p class="panel-heading">
|
<p class="panel-heading">
|
||||||
Items
|
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>
|
</p>
|
||||||
|
|
||||||
{% for item in project.items.all %}
|
{% for item in project.items.all %}
|
||||||
@ -20,7 +23,7 @@
|
|||||||
<div class="modal-background" onclick="closeDownloadModal()"></div>
|
<div class="modal-background" onclick="closeDownloadModal()"></div>
|
||||||
<div class="modal-card">
|
<div class="modal-card">
|
||||||
<header class="modal-card-head">
|
<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>
|
<button class="delete" aria-label="close" onclick="closeDownloadModal()"></button>
|
||||||
</header>
|
</header>
|
||||||
<section class="modal-card-body" id="download-target">
|
<section class="modal-card-body" id="download-target">
|
||||||
|
|||||||
@ -41,7 +41,8 @@
|
|||||||
<th>Work</th>
|
<th>Work</th>
|
||||||
<th>Composer</th>
|
<th>Composer</th>
|
||||||
<th class="is-hidden-mobile">Edition</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>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -52,7 +53,8 @@
|
|||||||
</td>
|
</td>
|
||||||
<td title="{{ work.composer }}">{{ work.composer|truncatewords:3 }}</td>
|
<td title="{{ work.composer }}">{{ work.composer|truncatewords:3 }}</td>
|
||||||
<td class="is-hidden-mobile" title="{{ work.edition }}">{{ work.edition|truncatewords:2 }}</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>
|
</tr>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
<tr><td colspan="4">No works found</td></tr>
|
<tr><td colspan="4">No works found</td></tr>
|
||||||
|
|||||||
@ -1,27 +1,10 @@
|
|||||||
<h3 class="subtitle">{{ work.name }}</h3>
|
<h3 class="subtitle">{{ work.name }}</h3>
|
||||||
<div class="block tags">
|
<div class="block tags">
|
||||||
{% for tag, name in work.digital_parts %}
|
{% 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 %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!--
|
<p class="has-text-right">
|
||||||
<h3 class="subtitle">Files</h3>
|
<a href="{% url 'work_detail' work.collection_id work.pk %}">Full details for {{ work.name }}</a>
|
||||||
<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>
|
</p>
|
||||||
Loading…
x
Reference in New Issue
Block a user