template.esl 633 B

12345678910111213141516
  1. (lambda (data)
  2. (return (/h ".device.port" (array
  3. (/h ".device-header" (array
  4. (./device/label data.label (+ "Port " data.id))
  5. (/h ".device-buttons"
  6. (/h (+ ".device-power" (?: data.alive ".active" ""))
  7. (object
  8. "onclick" (./emit (?: data.alive "port.kill" "port.spawn") data.id))
  9. (?: data.alive "on" "off")))))
  10. (/h "div" (/h "label" (array "Direction " (/h "select" (array
  11. (/h "option" "Input")
  12. (/h "option" "Output"))))))
  13. (/h "div" (/h "label" (array "Protocol " (/h "select" (array
  14. (/h "option" "JACK MIDI")
  15. (/h "option" "JACK Audio"))))))))))