Associate ScadaBridge controls, guidance and editor errors
This commit is contained in:
@@ -70,15 +70,15 @@
|
||||
else
|
||||
{
|
||||
<div class="mb-2">
|
||||
<label class="form-label small">Name</label>
|
||||
<label class="form-label small" for="@($"{_fieldScope}-field-1")">Name</label>
|
||||
@* Name is fixed on edit — the seam has no rename. *@
|
||||
<input type="text" class="form-control form-control-sm" @bind="_formName" disabled="@IsEditMode" />
|
||||
<input id="@($"{_fieldScope}-field-1")" type="text" class="form-control form-control-sm" @bind="_formName" disabled="@IsEditMode" />
|
||||
</div>
|
||||
<div class="mb-2">
|
||||
<label class="form-label small">API Method Access</label>
|
||||
<div class="mb-2" role="group" aria-labelledby="@($"{_fieldScope}-methods-label")" aria-describedby="@($"{_fieldScope}-methods-hint")">
|
||||
<div id="@($"{_fieldScope}-methods-label")" class="form-label small">API Method Access</div>
|
||||
@if (_allMethods.Count == 0)
|
||||
{
|
||||
<div class="form-text">
|
||||
<div id="@($"{_fieldScope}-methods-hint")" class="form-text">
|
||||
No API methods configured.
|
||||
<a href="/design/external-systems">Create one</a> to grant access.
|
||||
</div>
|
||||
@@ -97,7 +97,7 @@
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<div class="form-text">
|
||||
<div id="@($"{_fieldScope}-methods-hint")" class="form-text">
|
||||
Callers using this key can invoke any checked method. At least one is required.
|
||||
</div>
|
||||
}
|
||||
@@ -237,3 +237,5 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@code { private readonly string _fieldScope = "field-" + Guid.NewGuid().ToString("N"); }
|
||||
|
||||
Reference in New Issue
Block a user