@inherits SettingsDialogBase @(this.item?.DisplayName ?? T("Tool Settings")) @if (this.item is null) { @T("The selected tool could not be loaded.") } else { @this.item.Description @if (!this.ToolRegistry.IsToolActive(this.item.Id)) { @T("This tool has been disabled by your organization.") } @if (!string.IsNullOrWhiteSpace(this.validationMessage)) { @this.validationMessage } @foreach (var warning in this.GetSettingsWarnings()) { @warning } @foreach (var toolSection in this.sections) { var visibleGroups = BuildVisibleFieldGroups(toolSection); @if (this.ShowsToolHeaders && visibleGroups.Count > 0) { @toolSection.Implementation.GetDisplayName() } @foreach (var group in visibleGroups) { @if (ShowsGroupHeader(toolSection, group)) { @this.GetGroupLabel(toolSection, group.Key) @foreach (var link in GetGroupLinks(toolSection, group.Key)) { @link.Label } } @foreach (var property in group.Fields) { var fieldName = property.Key; var field = property.Value; var fieldOptions = field.GetOptions(); if (fieldOptions.Count > 0) { @if (!toolSection.Definition.SettingsSchema.Required.Contains(fieldName)) { @T("Not set") } @foreach (var option in fieldOptions) { @option.Label } } else { } } } } } @T("Cancel") @T("Save")