replace waring for yellow in details
This commit is contained in:
parent
be554eb526
commit
ef9687b0a5
|
@ -4,7 +4,7 @@
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<div class="position-fixed" style="bottom: 2rem; right: 2rem; z-index: 9999; display: flex; gap: 0.5rem;">
|
<div class="position-fixed" style="bottom: 2rem; right: 2rem; z-index: 9999; display: flex; gap: 0.5rem;">
|
||||||
<button class="btn btn-warning d-flex align-items-center shadow" type="button"
|
<button class="btn btn-yellow d-flex align-items-center shadow" type="button"
|
||||||
data-bs-toggle="offcanvas" data-bs-target="#notesOffcanvas" aria-controls="notesOffcanvas"
|
data-bs-toggle="offcanvas" data-bs-target="#notesOffcanvas" aria-controls="notesOffcanvas"
|
||||||
data-bs-toggle="tooltip" data-bs-placement="left" title="{% trans 'View recent notes' %}">
|
data-bs-toggle="tooltip" data-bs-placement="left" title="{% trans 'View recent notes' %}">
|
||||||
<i class="bi bi-journal-text me-1"></i>
|
<i class="bi bi-journal-text me-1"></i>
|
||||||
|
@ -18,18 +18,18 @@
|
||||||
<div class="offcanvas-header">
|
<div class="offcanvas-header">
|
||||||
<h5 id="notesOffcanvasLabel">{% trans "Latest Notes" %}</h5>
|
<h5 id="notesOffcanvasLabel">{% trans "Latest Notes" %}</h5>
|
||||||
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
|
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="offcanvas-body" style="margin-bottom: 5rem;">
|
<div class="offcanvas-body" style="margin-bottom: 5rem;">
|
||||||
{% for note in device_notes|slice:":4" %}
|
{% for note in device_notes|slice:":4" %}
|
||||||
<div class="card mb-3 shadow-sm">
|
<div class="card mb-3 shadow-sm">
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<div>
|
<div>
|
||||||
<small class="text-muted">
|
<small class="text-muted">
|
||||||
{{ note.date|timesince }} {% trans "ago" %}
|
{{ note.date|timesince }} {% trans "ago" %}
|
||||||
</small>
|
</small>
|
||||||
|
|
||||||
{% if user == note.user or user.is_admin %}
|
{% if user == note.user or user.is_admin %}
|
||||||
<span class="badge bg-warning text-dark ms-2">{% trans "Editable" %}</span>
|
<span class="badge bg-yellow text-dark ms-2">{% trans "Editable" %}</span>
|
||||||
</div>
|
</div>
|
||||||
<blockquote
|
<blockquote
|
||||||
class="blockquote mt-2 p-2 bg-light fst-italic"
|
class="blockquote mt-2 p-2 bg-light fst-italic"
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
<small>{{ note.user.get_full_name|default:note.user.username }}</small>
|
<small>{{ note.user.get_full_name|default:note.user.username }}</small>
|
||||||
</footer>
|
</footer>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
{% if user == note.user or user.is_admin %}
|
{% if user == note.user or user.is_admin %}
|
||||||
<div class="d-flex justify-content-end align-items-center">
|
<div class="d-flex justify-content-end align-items-center">
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@
|
||||||
<i class="fas fa-save px-1"></i>
|
<i class="fas fa-save px-1"></i>
|
||||||
</a>
|
</a>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<!-- delete note button -->
|
<!-- delete note button -->
|
||||||
<button type="button" class="btn btn-link btn-outline-danger btn-sm text-danger" id="deleteIcon{{ note.id }}" title="{% trans 'Delete note' %}" data-bs-toggle="collapse" data-bs-target="#confirmDelete{{ note.id }}">
|
<button type="button" class="btn btn-link btn-outline-danger btn-sm text-danger" id="deleteIcon{{ note.id }}" title="{% trans 'Delete note' %}" data-bs-toggle="collapse" data-bs-target="#confirmDelete{{ note.id }}">
|
||||||
<i class="bi bi-trash"></i>
|
<i class="bi bi-trash"></i>
|
||||||
|
@ -95,7 +95,7 @@
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% empty %}
|
{% empty %}
|
||||||
|
@ -150,7 +150,7 @@
|
||||||
</button>
|
</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<!-- Add note button -->
|
<!-- Add note button -->
|
||||||
<button class="btn btn-warning ms-2" type="button" data-bs-toggle="modal" data-bs-target="#addNoteModal">
|
<button class="btn btn-yellow ms-2" type="button" data-bs-toggle="modal" data-bs-target="#addNoteModal">
|
||||||
<i class="bi bi-sticky"></i> {% trans "Add a note" %}
|
<i class="bi bi-sticky"></i> {% trans "Add a note" %}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
@ -263,8 +263,8 @@
|
||||||
|
|
||||||
saveLink.classList.remove("disabled", "text-muted", "border-light");
|
saveLink.classList.remove("disabled", "text-muted", "border-light");
|
||||||
saveLink.classList.add("text-success", "border-success");
|
saveLink.classList.add("text-success", "border-success");
|
||||||
saveLink.style.pointerEvents = "auto";
|
saveLink.style.pointerEvents = "auto";
|
||||||
|
|
||||||
}
|
}
|
||||||
//updates note-update-form with new value from blockquote
|
//updates note-update-form with new value from blockquote
|
||||||
function submitUpdatedNote(noteId) {
|
function submitUpdatedNote(noteId) {
|
||||||
|
|
Loading…
Reference in a new issue