+ @* TODO: Can we use dynamic form? *@
+
+
+
+
+
+
+
- @foreach (var propertyInfo in ObjectExtensionManager.Instance.GetProperties
())
- {
- if (!propertyInfo.Name.EndsWith("_Text"))
+ @foreach (var propertyInfo in ObjectExtensionManager.Instance.GetProperties())
{
- if (propertyInfo.Type.IsEnum || !propertyInfo.Lookup.Url.IsNullOrEmpty())
+ if (!propertyInfo.Name.EndsWith("_Text"))
{
- if (propertyInfo.Type.IsEnum)
+ if (propertyInfo.Type.IsEnum || !propertyInfo.Lookup.Url.IsNullOrEmpty())
{
- Model.UserInfo.ExtraProperties.ToEnum(propertyInfo.Name, propertyInfo.Type);
+ if (propertyInfo.Type.IsEnum)
+ {
+ Model.UserInfo.ExtraProperties.ToEnum(propertyInfo.Name, propertyInfo.Type);
+ }
+
}
-
- }
- else
- {
-
+ asp-format="@propertyInfo.GetInputFormatOrNull()"
+ value="@propertyInfo.GetInputValueOrNull(Model.UserInfo.GetProperty(propertyInfo.Name))" />
+ }
}
}
- }
+