mirror of
https://github.com/jwetzell/showbridge-webui.git
synced 2026-08-15 19:33:39 +00:00
make route input/output a select list of module id's
This commit is contained in:
@@ -15,12 +15,16 @@
|
||||
<div class="m-2">
|
||||
<div class="flex items-center m-1">
|
||||
<label class="mr-2 text-gray-300"> input: </label>
|
||||
<input
|
||||
type="text"
|
||||
<select
|
||||
class="pl-1 border-2 border-gray-200 text-gray-200 border-solid rounded-sm"
|
||||
[placeholder]="'module-1'"
|
||||
[formControlName]="'input'"
|
||||
/>
|
||||
formControlName="input"
|
||||
>
|
||||
@for (option of moduleIds(); track option) {
|
||||
<option [value]="option">
|
||||
{{ option }}
|
||||
</option>
|
||||
}
|
||||
</select>
|
||||
@if (!formGroup.controls['input'].valid) {
|
||||
<!-- TODO(jwetzell): better error displaying -->
|
||||
<div class="ml-2 text-red-500">{{ formGroup.controls['input'].errors | json }}</div>
|
||||
@@ -28,12 +32,16 @@
|
||||
</div>
|
||||
<div class="flex items-center m-1">
|
||||
<label class="mr-2 text-gray-300"> output: </label>
|
||||
<input
|
||||
type="text"
|
||||
<select
|
||||
class="pl-1 border-2 border-gray-200 text-gray-200 border-solid rounded-sm"
|
||||
[placeholder]="'module-1'"
|
||||
[formControlName]="'output'"
|
||||
/>
|
||||
formControlName="output"
|
||||
>
|
||||
@for (option of moduleIds(); track option) {
|
||||
<option [value]="option">
|
||||
{{ option }}
|
||||
</option>
|
||||
}
|
||||
</select>
|
||||
@if (!formGroup.controls['output'].valid) {
|
||||
<!-- TODO(jwetzell): better error displaying -->
|
||||
<div class="ml-2 text-red-500">
|
||||
|
||||
Reference in New Issue
Block a user