2 changed files with 35 additions and 74 deletions
@ -1,39 +1,18 @@ |
|||
label(for="majorDeviceUncategorized") |
|||
span(i18n="majorDeviceUncategorized") |
|||
input(type="radio", name="majorDevice", id="majorDeviceUncategorized", value=0x1F00) |
|||
|
|||
label(for="majorDeviceToy") |
|||
span(i18n="majorDeviceToy") |
|||
input(type="radio", name="majorDevice", id="majorDeviceToy", value=0x0800) |
|||
|
|||
label(for="majorDeviceWearable") |
|||
span(i18n="majorDeviceWearable") |
|||
input(type="radio", name="majorDevice", id="majorDeviceWearable", value=0x0700) |
|||
|
|||
label(for="majorDeviceImaging") |
|||
span(i18n="majorDeviceImaging") |
|||
input(type="radio", name="majorDevice", id="majorDeviceImaging", value=0x0600) |
|||
|
|||
label(for="majorDevicePeripheral") |
|||
span(i18n="majorDevicePeripheral") |
|||
input(type="radio", name="majorDevice", id="majorDevicePeripheral", value=0x0500) |
|||
|
|||
label(for="majorDeviceAudioVideo") |
|||
span(i18n="majorDeviceAudioVideo") |
|||
input(type="radio", name="majorDevice", id="majorDeviceAudioVideo", value=0x0400) |
|||
|
|||
label(for="majorDeviceNetworkAccessPoint") |
|||
span(i18n="majorDeviceNetworkAccessPoint") |
|||
input(type="radio", name="majorDevice", id="majorDeviceNetworkAccessPoint", value=0x0300) |
|||
|
|||
label(for="majorDevicePhone") |
|||
span(i18n="majorDevicePhone") |
|||
input(type="radio", name="majorDevice", id="majorDevicePhone", value=0x0200) |
|||
|
|||
label(for="majorDeviceComputer") |
|||
span(i18n="majorDeviceComputer") |
|||
input(type="radio", name="majorDevice", id="majorDeviceComputer", value=0x0100) |
|||
|
|||
label(for="majorDeviceMiscellaneous") |
|||
span(i18n="majorDeviceMiscellaneous") |
|||
input(type="radio", name="majorDevice", id="majorDeviceMiscellaneous", value=0x0000) |
|||
- |
|||
const majorDevices = { |
|||
"Uncategorized": 0x1F00, |
|||
"Toy": 0x0800, |
|||
"Wearable": 0x0700, |
|||
"Imaging": 0x0600, |
|||
"Peripheral": 0x0500, |
|||
"AudioVideo": 0x0400, |
|||
"NetworkAccessPoint": 0x0300, |
|||
"Phone": 0x0200, |
|||
"Computer": 0x0100, |
|||
"Miscellaneous": 0x0000, |
|||
} |
|||
|
|||
each value, key in majorDevices |
|||
label(for="majorDevice" + key) |
|||
span(i18n="majorDevice" + key) |
|||
input(type="radio", name="majorDevice", id="majorDevice" + key, value=value) |
|||
|
@ -1,35 +1,17 @@ |
|||
label(for="majorServiceInformation") |
|||
span(i18n="majorServiceInformation") |
|||
input(type="checkbox", id="majorServiceInformation", value=0x800000) |
|||
|
|||
label(for="majorServiceTelephony") |
|||
span(i18n="majorServiceTelephony") |
|||
input(type="checkbox", id="majorServiceTelephony", value=0x400000) |
|||
|
|||
label(for="majorServiceAudio") |
|||
span(i18n="majorServiceAudio") |
|||
input(type="checkbox", id="majorServiceAudio", value=0x200000) |
|||
|
|||
label(for="majorServiceObjectTransfer") |
|||
span(i18n="majorServiceObjectTransfer") |
|||
input(type="checkbox", id="majorServiceObjectTransfer", value=0x100000) |
|||
|
|||
label(for="majorServiceCapturing") |
|||
span(i18n="majorServiceCapturing") |
|||
input(type="checkbox", id="majorServiceCapturing", value=0x080000) |
|||
|
|||
label(for="majorServiceRendering") |
|||
span(i18n="majorServiceRendering") |
|||
input(type="checkbox", id="majorServiceRendering", value=0x040000) |
|||
|
|||
label(for="majorServiceNetworking") |
|||
span(i18n="majorServiceNetworking") |
|||
input(type="checkbox", id="majorServiceNetworking", value=0x020000) |
|||
|
|||
label(for="majorServicePositioning") |
|||
span(i18n="majorServicePositioning") |
|||
input(type="checkbox", id="majorServicePositioning", value=0x010000) |
|||
|
|||
label(for="majorServiceLimitedDiscovery") |
|||
span(i18n="majorServiceLimitedDiscovery") |
|||
input(type="checkbox", id="majorServiceLimitedDiscovery", value=0x002000) |
|||
- |
|||
const majorServices = { |
|||
"Information": 0x800000, |
|||
"Telephony": 0x400000, |
|||
"Audio": 0x200000, |
|||
"ObjectTransfer": 0x100000, |
|||
"Capturing": 0x080000, |
|||
"Rendering": 0x040000, |
|||
"Networking": 0x020000, |
|||
"Positioning": 0x010000, |
|||
"LimitedDiscovery": 0x002000, |
|||
} |
|||
|
|||
each value, key in majorServices |
|||
label(for="majorService" + key) |
|||
span(i18n="majorService" + key) |
|||
input(type="checkbox", id="majorService" + key, value=value) |
|||
|
Loading…
Reference in new issue