badges
All checks were successful
Deploy powerbar.ti Frontend Portal / Deploy-Tinance2-Frontend-Portal-Production (push) Successful in 6s

This commit is contained in:
Matthew Frost 2023-11-20 13:35:33 +01:00
parent 4676068942
commit ff4c6bd06b

View file

@ -142,7 +142,12 @@ input:checked + .slider:before {
<li class="list-group-item"> <li class="list-group-item">
<div class="row"> <div class="row">
<div class="col-md-8">{{outlet[1].name}}<br><span class="badge badge-secondary">Outlet: {{outlet[0]}}</span></a></div> <div class="col-md-8">{{outlet[1].name}}<br><span class="badge badge-secondary">Outlet: {{outlet[0]}}</span>
{% if outlet[1].state == "on" %}
<span class="badge badge-success">On</span>
{% else %}
<span class="badge badge-danger">Off</span>
{% endif %}</div>
<div class="col-md-2"> <div class="col-md-2">
<label class="switch"> <label class="switch">
{% if outlet[1].state == "on" %} {% if outlet[1].state == "on" %}
@ -154,11 +159,7 @@ input:checked + .slider:before {
</label> </label>
</div> </div>
<div class="col-md-2"> <div class="col-md-2">
{% if outlet[1].state == "on" %}
<span class="badge badge-success">On</span>
{% else %}
<span class="badge badge-danger">Off</span>
{% endif %}
</div> </div>
</div> </div>
</li> </li>