17 lines
585 B
Text
17 lines
585 B
Text
|
<div class="card">
|
||
|
<div class="card-divider">
|
||
|
<h4><%= @driver_name %> Servo Driver</h4>
|
||
|
</div>
|
||
|
<div class="card-section">
|
||
|
<%= if @state_known do %>
|
||
|
<%= if @enabled do %>
|
||
|
<button type="button" class="button primary expanded" phx-click="disable-servos">Disable Servos</button>
|
||
|
<% else %>
|
||
|
<button type="button" class="button alert expanded" phx-click="enable-servos">Enable Servos</button>
|
||
|
<% end %>
|
||
|
<% else %>
|
||
|
<button type="button" class="button secondary expanded" disabled>Connecting...</button>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
</div>
|