- @:
@@SR["@Model.ViewDataTypeShortName"]
+ @:
@@Model.ViewDataTypeShortName"]
@:
- @:
+ @:
foreach (var property in Model.ModelMetadata.Properties)
{
if (property.Scaffold && !property.IsAutoGenerated && !property.IsReadOnly)
@@ -107,7 +107,7 @@
@{
@@ -142,4 +142,4 @@
{
return string.Equals("System.Guid", property.TypeName, StringComparison.OrdinalIgnoreCase);
}
-}
\ No newline at end of file
+}
diff --git a/scripts/configure/tools/mvc-code-generators/new-templates/ViewGenerator/Delete.cshtml b/scripts/configure/tools/mvc-code-generators/new-templates/ViewGenerator/Delete.cshtml
index d2845a09..d8fbd304 100644
--- a/scripts/configure/tools/mvc-code-generators/new-templates/ViewGenerator/Delete.cshtml
+++ b/scripts/configure/tools/mvc-code-generators/new-templates/ViewGenerator/Delete.cshtml
@@ -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";
}
@:}
@:
-@:
@@SR["@Model.ViewName"]
+@:
@@Model.ViewName"]
@:
}
else
{
@:@@{
- @:Layout = null;
+ @:Layout = "null";
@:}
@:
@:
@@ -30,16 +30,16 @@
@:
@:
@:
- @:
@@SR[@Model.ViewName]
+ @:
@@@Model.ViewName
@:
@:
@:
// PushIndent(" ");
}
}
-
@@SR["AreYourSureYouWantToDeleteThis"]
+
@AreYourSureYouWantToDeleteThis
-
@@SR[@Model.ViewDataTypeShortName]
+
@@@Model.ViewDataTypeShortName
@{
@@ -59,8 +59,8 @@
@:
@:
@:
@@ -78,4 +78,4 @@
//Todo: Get the association for the property and use that.
return property.PropertyName;
}
-}
\ No newline at end of file
+}
diff --git a/scripts/configure/tools/mvc-code-generators/new-templates/ViewGenerator/Details.cshtml b/scripts/configure/tools/mvc-code-generators/new-templates/ViewGenerator/Details.cshtml
index 8d443d94..99024a45 100644
--- a/scripts/configure/tools/mvc-code-generators/new-templates/ViewGenerator/Details.cshtml
+++ b/scripts/configure/tools/mvc-code-generators/new-templates/ViewGenerator/Details.cshtml
@@ -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";
}
@:}
@:
-@:
@@SR["@Model.ViewName"]
+@:
@@Model.ViewName"]
@:
}
else
{
@:@@{
- @:Layout = null;
+ @:Layout = "null";
@:}
@:
@:
@@ -61,13 +61,13 @@
string pkName = GetPrimaryKeyName();
if (pkName != null)
{
- @:
@@SR["Edit"] |
- @:
@@SR["Back to List"]
+ @:
@Edit |
+ @:
Back to List
}
else
{
- @:@@Html.ActionLink(@@SR["Edit"], "Edit", new { /* id = Model.PrimaryKey */ }) |
- @:
@@SR["Back to List"]
+ @:@@Html.ActionLink(@Edit, "Edit", new { /* id = Model.PrimaryKey */ }) |
+ @:
Back to List
}
}
@{
@@ -92,4 +92,4 @@
//Todo: Get the association for the property and use that.
return property.PropertyName;
}
-}
\ No newline at end of file
+}
diff --git a/scripts/configure/tools/mvc-code-generators/new-templates/ViewGenerator/Edit.cshtml b/scripts/configure/tools/mvc-code-generators/new-templates/ViewGenerator/Edit.cshtml
index df402e34..12d7b2a5 100644
--- a/scripts/configure/tools/mvc-code-generators/new-templates/ViewGenerator/Edit.cshtml
+++ b/scripts/configure/tools/mvc-code-generators/new-templates/ViewGenerator/Edit.cshtml
@@ -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";
}
@:}
@:
-@:
@@SR["@Model.ViewName"]
+@:
@@Model.ViewName"]
@:
}
else
{
@:@@{
- @:Layout = null;
+ @:Layout = "null";
@:}
@:
@:
@@ -30,7 +30,7 @@
@:
@:
@:
- @:
@@SR["@Model.ViewName"]
+ @:
@@Model.ViewName"]
@:
@:
@:
@@ -40,7 +40,7 @@
@: