Associate ScadaBridge controls, guidance and editor errors
This commit is contained in:
@@ -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"); }
|
||||
|
||||
Reference in New Issue
Block a user