+
-
@if (feature.ValueType is ToggleStringValueType)
{
-
- @if (feature.Description != null)
+ type="checkbox"
+ class="d-inline"
+ abp-id-name="@Model.FeatureGroups[i].Features[j].BoolValue"
+ label="@Model.GetShownName(feature)"
+ disabled="disabled"
+ group-data-feature-name="@feature.Name"
+ group-data-parent-name="@(feature.ParentName ?? "")"
+ group-style="margin-inline-start: @(feature.Depth * 20)px"/>
+ if (feature.Description != null)
{
@feature.Description
}
-
}
@if (feature.ValueType is FreeTextStringValueType)
{
- var type = "text";
- if(feature.ValueType.Validator is NumericValueValidator)
- {
- type = "number";
- }
-
+ var type = feature.ValueType.Validator is NumericValueValidator ? "number" : "text";
- @if (feature.Description != null)
+ label="@Model.GetShownName(feature)"
+ abp-id-name="@Model.FeatureGroups[i].Features[j].Value"
+ type="@type"
+ disabled="disabled"
+ group-data-feature-name="@feature.Name"
+ group-data-parent-name="@(feature.ParentName ?? "")"
+ group-style="margin-inline-start: @(feature.Depth * 25)px"/>
+ if (feature.Description != null)
{
@feature.Description
}
@@ -91,19 +87,12 @@
@if (feature.ValueType is SelectionStringValueType selectType)
{
-
-
-
}
-
+
}