Combine layouts
This commit is contained in:
@@ -2,7 +2,18 @@
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
@foreach (var prop in ViewData.ModelMetadata.Properties.Where(pm => pm.ShowForEdit && !pm.ModelType.IsCollection()))
|
||||
|
||||
@foreach (var prop in ViewData.ModelMetadata.Properties)
|
||||
{
|
||||
@Html.Editor(prop.PropertyName)
|
||||
if (prop.ShowForEdit)
|
||||
{
|
||||
if (!prop.ModelType.IsCollection())
|
||||
{
|
||||
@Html.Editor(prop.PropertyName)
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user