refactor(central-ui): drop redundant Parent Template field from Template Properties
The Template Properties card repeated the parent template, which the page header already shows — the "inherits X" line for base templates and the "Derived from X — composed inside Y" line for derived ones. The card now carries only Name and Description.
This commit is contained in:
@@ -323,13 +323,8 @@
|
|||||||
<label class="form-label">Description</label>
|
<label class="form-label">Description</label>
|
||||||
<input type="text" class="form-control" @bind="_editDescription" />
|
<input type="text" class="form-control" @bind="_editDescription" />
|
||||||
</div>
|
</div>
|
||||||
<div class="col-12">
|
@* Parent template is shown in the header above (the "inherits"
|
||||||
<label class="form-label">Parent Template</label>
|
/ "Derived from" line), so it is not repeated here. *@
|
||||||
<input type="text" readonly class="form-control form-control-plaintext"
|
|
||||||
value="@(_selectedTemplate.ParentTemplateId is int pid
|
|
||||||
? _templates.FirstOrDefault(t => t.Id == pid)?.Name ?? $"#{pid}"
|
|
||||||
: "(none)")" />
|
|
||||||
</div>
|
|
||||||
<div class="col-12 text-end">
|
<div class="col-12 text-end">
|
||||||
<button class="btn btn-primary" @onclick="UpdateTemplateProperties">Save Properties</button>
|
<button class="btn btn-primary" @onclick="UpdateTemplateProperties">Save Properties</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user