mirror of
https://github.com/daniviga/django-ram.git
synced 2025-08-04 05:07:50 +02:00
Minor UI improvements
This commit is contained in:
@@ -9,6 +9,9 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if not book.published %}
|
||||||
|
<span class="badge text-bg-warning">Unpublished</span> |
|
||||||
|
{% endif %}
|
||||||
<small class="text-body-secondary">Updated {{ book.updated_time | date:"M d, Y H:i" }}</small>
|
<small class="text-body-secondary">Updated {{ book.updated_time | date:"M d, Y H:i" }}</small>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block carousel %}
|
{% block carousel %}
|
||||||
@@ -60,11 +63,6 @@
|
|||||||
<th colspan="2" scope="row">
|
<th colspan="2" scope="row">
|
||||||
{% if type == "catalog" %}Catalog
|
{% if type == "catalog" %}Catalog
|
||||||
{% elif type == "book" %}Book{% endif %}
|
{% elif type == "book" %}Book{% endif %}
|
||||||
<div class="float-end">
|
|
||||||
{% if not book.published %}
|
|
||||||
<span class="badge text-bg-warning">Draft</span>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
{% elif d.type == "book" %}Book{% endif %}
|
{% elif d.type == "book" %}Book{% endif %}
|
||||||
<div class="float-end">
|
<div class="float-end">
|
||||||
{% if not d.item.published %}
|
{% if not d.item.published %}
|
||||||
<span class="badge text-bg-warning">Draft</span>
|
<span class="badge text-bg-warning">Unpublished</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
|
@@ -27,12 +27,12 @@
|
|||||||
<th colspan="2" scope="row">
|
<th colspan="2" scope="row">
|
||||||
Consist
|
Consist
|
||||||
<div class="float-end">
|
<div class="float-end">
|
||||||
|
{% if not d.item.published %}
|
||||||
|
<span class="badge text-bg-warning">Unpublished</span>
|
||||||
|
{% endif %}
|
||||||
{% if d.item.company.freelance %}
|
{% if d.item.company.freelance %}
|
||||||
<span class="badge text-bg-secondary">Freelance</span>
|
<span class="badge text-bg-secondary">Freelance</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not d.item.published %}
|
|
||||||
<span class="badge text-bg-warning">Draft</span>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@@ -25,12 +25,12 @@
|
|||||||
<th colspan="2" scope="row">
|
<th colspan="2" scope="row">
|
||||||
Rolling stock
|
Rolling stock
|
||||||
<div class="float-end">
|
<div class="float-end">
|
||||||
|
{% if not d.item.published %}
|
||||||
|
<span class="badge text-bg-warning">Unpublished</span>
|
||||||
|
{% endif %}
|
||||||
{% if d.item.company.freelance %}
|
{% if d.item.company.freelance %}
|
||||||
<span class="badge text-bg-secondary">Freelance</span>
|
<span class="badge text-bg-secondary">Freelance</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not d.item.published %}
|
|
||||||
<span class="badge text-bg-warning">Draft</span>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@@ -7,6 +7,9 @@
|
|||||||
{{ t.name }}</a>{# new line is required #}
|
{{ t.name }}</a>{# new line is required #}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
|
{% if not consist.published %}
|
||||||
|
<span class="badge text-bg-warning">Unpublished</span> |
|
||||||
|
{% endif %}
|
||||||
<small class="text-body-secondary">Updated {{ consist.updated_time | date:"M d, Y H:i" }}</small>
|
<small class="text-body-secondary">Updated {{ consist.updated_time | date:"M d, Y H:i" }}</small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -83,9 +86,6 @@
|
|||||||
{% if consist.company.freelance %}
|
{% if consist.company.freelance %}
|
||||||
<span class="badge text-bg-secondary">Freelance</span>
|
<span class="badge text-bg-secondary">Freelance</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not consist.published %}
|
|
||||||
<span class="badge text-bg-warning">Draft</span>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@@ -1,6 +1,9 @@
|
|||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
|
{% if not flatpage.published %}
|
||||||
|
<span class="badge text-bg-warning">Unpublished</span> |
|
||||||
|
{% endif %}
|
||||||
<small class="text-body-secondary">Updated {{ flatpage.updated_time | date:"M d, Y H:i" }}</small>
|
<small class="text-body-secondary">Updated {{ flatpage.updated_time | date:"M d, Y H:i" }}</small>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block carousel %}
|
{% block carousel %}
|
||||||
@@ -9,11 +12,6 @@
|
|||||||
<section class="py-4 text-start container">
|
<section class="py-4 text-start container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="mx-auto">
|
<div class="mx-auto">
|
||||||
{% if not flatpage.published %}
|
|
||||||
<div class="alert alert-warning" role="alert">
|
|
||||||
⚠️ This page is a <strong>draft</strong> and is not published.
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
<div>{{ flatpage.content | safe }} </div>
|
<div>{{ flatpage.content | safe }} </div>
|
||||||
<div class="d-grid gap-2 d-md-flex justify-content-md-end">
|
<div class="d-grid gap-2 d-md-flex justify-content-md-end">
|
||||||
{% if request.user.is_staff %}<a class="btn btn-sm btn-outline-danger" href="{% url 'admin:portal_flatpage_change' flatpage.pk %}">Edit</a>{% endif %}
|
{% if request.user.is_staff %}<a class="btn btn-sm btn-outline-danger" href="{% url 'admin:portal_flatpage_change' flatpage.pk %}">Edit</a>{% endif %}
|
||||||
|
@@ -8,6 +8,9 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if not rolling_stock.published %}
|
||||||
|
<span class="badge text-bg-warning">Unpublished</span> |
|
||||||
|
{% endif %}
|
||||||
<small class="text-body-secondary">Updated {{ rolling_stock.updated_time | date:"M d, Y H:i" }}</small>
|
<small class="text-body-secondary">Updated {{ rolling_stock.updated_time | date:"M d, Y H:i" }}</small>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block carousel %}
|
{% block carousel %}
|
||||||
@@ -77,9 +80,6 @@
|
|||||||
{% if company.freelance %}
|
{% if company.freelance %}
|
||||||
<span class="badge text-bg-secondary">Freelance</span>
|
<span class="badge text-bg-secondary">Freelance</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if not rolling_stock.published %}
|
|
||||||
<span class="badge text-bg-warning">Draft</span>
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
</div>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
Reference in New Issue
Block a user