Associate ScadaBridge controls, guidance and editor errors

This commit is contained in:
Joseph Doherty
2026-11-13 17:59:00 -05:00
parent 20885b6161
commit 915a8a5914
93 changed files with 24126 additions and 476 deletions
@@ -30,19 +30,19 @@
<div class="row g-3 mb-3">
<div class="col-md-6">
<label class="form-label small">Name</label>
<input type="text" class="form-control form-control-sm"
<label class="form-label small" for="@($"{_fieldScope}-field-1")">Name</label>
<input aria-describedby="@($"{_helpScope}-0")" id="@($"{_fieldScope}-field-1")" type="text" class="form-control form-control-sm"
placeholder="e.g. Address" @bind="_formName" />
<div class="form-text">Referenced as <code>lib:@(string.IsNullOrWhiteSpace(_formName) ? "Name" : _formName.Trim())</code>.</div>
<div class="form-text" id="@($"{_helpScope}-0")">Referenced as <code>lib:@(string.IsNullOrWhiteSpace(_formName) ? "Name" : _formName.Trim())</code>.</div>
</div>
<div class="col-md-6">
<label class="form-label small">Scope <span class="text-muted">(optional)</span></label>
<input type="text" class="form-control form-control-sm"
<label class="form-label small" for="@($"{_fieldScope}-field-2")">Scope <span class="text-muted">(optional)</span></label>
<input id="@($"{_fieldScope}-field-2")" type="text" class="form-control form-control-sm"
placeholder="(global)" @bind="_formScope" />
</div>
</div>
<label class="form-label small">Schema</label>
<div class="form-label small">Schema</div>
<SchemaBuilder Mode="value"
Value="@_formSchemaJson"
ValueChanged="@(v => _formSchemaJson = v)" />
@@ -249,3 +249,7 @@
}
}
}
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
@code { private readonly string _helpScope = "help-" + Guid.NewGuid().ToString("N"); }