* [up] add config for custom images, better js * [up] use bundler to bundle js * [fix] remove domcontentloaded since defer is used * [fix] formatting with black * [fix] images drf api * [up] add support for custom icons on additional roles: power panel, power feed, circuit * [up] optimize topology generation by using `_id` when trying to access pk of related object * [fix] kebab case instead of slugification * [fix] use empty queryset in api views & change coord save logic
44 lines
1.2 KiB
HTML
44 lines
1.2 KiB
HTML
<div id="django-messages" class="toast-container">
|
|
<div
|
|
id="topology-plugin-error-toast"
|
|
class="toast align-items-center border-0 bg-danger hide"
|
|
role="alert"
|
|
aria-live="assertive"
|
|
aria-atomic="true"
|
|
data-bs-delay="2000"
|
|
>
|
|
<div class="d-flex">
|
|
<div class="toast-body">
|
|
😢
|
|
<span>Error</span>
|
|
</div>
|
|
<button
|
|
type="button"
|
|
class="btn-close me-2 m-auto"
|
|
data-bs-dismiss="toast"
|
|
aria-label="Close"
|
|
></button>
|
|
</div>
|
|
</div>
|
|
<div
|
|
id="topology-plugin-success-toast"
|
|
class="toast align-items-center border-0 bg-success hide"
|
|
role="alert"
|
|
aria-live="assertive"
|
|
aria-atomic="true"
|
|
data-bs-delay="2000"
|
|
>
|
|
<div class="d-flex">
|
|
<div class="toast-body">
|
|
👍
|
|
<span>Success</span>
|
|
</div>
|
|
<button
|
|
type="button"
|
|
class="btn-close me-2 m-auto"
|
|
data-bs-dismiss="toast"
|
|
aria-label="Close"
|
|
></button>
|
|
</div>
|
|
</div>
|
|
</div> |