a Startup
This commit is contained in:
@ -9,20 +9,20 @@
|
||||
else if (Model.IsLayoutPageSelected)
|
||||
{
|
||||
@:@@{
|
||||
@:ViewData["Title"] = @@SR["@Model.ViewName"];
|
||||
@:ViewData["Title"] = @@Model.ViewName"];
|
||||
if (!string.IsNullOrEmpty(Model.LayoutPageFile))
|
||||
{
|
||||
@:Layout = "@Model.LayoutPageFile";
|
||||
}
|
||||
@:}
|
||||
@:
|
||||
@:<h2>@@SR["@Model.ViewName"]</h2>
|
||||
@:<h2>@@Model.ViewName"]</h2>
|
||||
@:
|
||||
}
|
||||
else
|
||||
{
|
||||
@:@@{
|
||||
@:Layout = null;
|
||||
@:Layout = "null";
|
||||
@:}
|
||||
@:
|
||||
@:<!DOCTYPE html>
|
||||
@ -38,9 +38,9 @@
|
||||
}
|
||||
@:<form asp-action="@Model.ViewName">
|
||||
@:<div class="form-horizontal">
|
||||
@:<h4>@@SR["@Model.ViewDataTypeShortName"]</h4>
|
||||
@:<h4>@@Model.ViewDataTypeShortName"]</h4>
|
||||
@:<hr />
|
||||
@:<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
@:<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
foreach (var property in Model.ModelMetadata.Properties)
|
||||
{
|
||||
if (property.Scaffold && !property.IsAutoGenerated && !property.IsReadOnly)
|
||||
@ -107,7 +107,7 @@
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">@@SR["Back to List"]</a>
|
||||
<a asp-action="Index">@Back to List</a>
|
||||
</div>
|
||||
|
||||
@{
|
||||
@ -142,4 +142,4 @@
|
||||
{
|
||||
return string.Equals("System.Guid", property.TypeName, StringComparison.OrdinalIgnoreCase);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user