Files
onefinity-firmware/src/pug/templates/io-view.pug
2022-12-21 16:26:22 +05:30

23 lines
727 B
Plaintext

script#io-view-template(type="text/x-template")
#io
h1 I/O Configuration
.pure-form.pure-form-aligned
fieldset
h2 Switches
templated-input(v-for="templ in template.switches", :name="$key",
:model.sync="config.switches[$key]", :template="templ")
label.extra(slot="extra", v-if="templ.pin")
| Pin {{templ.pin}}
io-indicator(:name="$key", :state="state")
fieldset
h2 Outputs
templated-input(v-for="templ in template.outputs", :name="$key",
:model.sync="config.outputs[$key]", :template="templ")
label.extra(slot="extra")
| Pin {{templ.pin}}
io-indicator(:name="$key", :state="state")