Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

blazor-crud scaffolder minor fixes #2938

Merged
merged 4 commits into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Scaffolding/VS.Web.CG.Mvc/Templates/Blazor/Create.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ public virtual string TransformText()
this.Write("@inject ");
this.Write(this.ToStringHelper.ToStringWithCulture(dbContextFactory));
this.Write("\r\n@inject NavigationManager NavigationManager\r\n\r\n<PageTitle>Create</PageTitle>\r\n\r" +
"\n<h1>Create</h1>\r\n\r\n<h4>");
"\n<h1>Create</h1>\r\n\r\n<h2>");
this.Write(this.ToStringHelper.ToStringWithCulture(modelName));
this.Write("</h4>\r\n<hr />\r\n<div class=\"row\">\r\n <div class=\"col-md-4\">\r\n <EditForm m" +
this.Write("</h2>\r\n<hr />\r\n<div class=\"row\">\r\n <div class=\"col-md-4\">\r\n <EditForm m" +
"ethod=\"post\" Model=\"");
this.Write(this.ToStringHelper.ToStringWithCulture(modelName));
this.Write("\" OnValidSubmit=\"Add");
Expand Down
2 changes: 1 addition & 1 deletion src/Scaffolding/VS.Web.CG.Mvc/Templates/Blazor/Create.tt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<h1>Create</h1>

<h4><#= modelName #></h4>
<h2><#= modelName #></h2>
<hr />
<div class="row">
<div class="col-md-4">
Expand Down
6 changes: 3 additions & 3 deletions src/Scaffolding/VS.Web.CG.Mvc/Templates/Blazor/Delete.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ public virtual string TransformText()
this.Write("@inject ");
this.Write(this.ToStringHelper.ToStringWithCulture(dbContextFactory));
this.Write("\r\n@inject NavigationManager NavigationManager\r\n\r\n<PageTitle>Delete</PageTitle>\r\n\r" +
"\n<h1>Delete</h1>\r\n\r\n<h3>Are you sure you want to delete this?</h3>\r\n<div>\r\n <" +
"h4>");
"\n<h1>Delete</h1>\r\n\r\n<p>Are you sure you want to delete this?</[]>\r\n<div>\r\n <h" +
deepchoudhery marked this conversation as resolved.
Show resolved Hide resolved
"2>");
this.Write(this.ToStringHelper.ToStringWithCulture(modelName));
this.Write("</h4>\r\n <hr />\r\n @if (");
this.Write("</h2>\r\n <hr />\r\n @if (");
this.Write(this.ToStringHelper.ToStringWithCulture(modelNameLowerInv));
this.Write(" is null)\r\n {\r\n <p><em>Loading...</em></p>\r\n }\r\n else {\r\n");

Expand Down
4 changes: 2 additions & 2 deletions src/Scaffolding/VS.Web.CG.Mvc/Templates/Blazor/Delete.tt
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@

<h1>Delete</h1>

<h3>Are you sure you want to delete this?</h3>
<p>Are you sure you want to delete this?</[]>
deepchoudhery marked this conversation as resolved.
Show resolved Hide resolved
<div>
<h4><#= modelName #></h4>
<h2><#= modelName #></h2>
<hr />
@if (<#= modelNameLowerInv #> is null)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Scaffolding/VS.Web.CG.Mvc/Templates/Blazor/Details.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public virtual string TransformText()
this.Write("@inject ");
this.Write(this.ToStringHelper.ToStringWithCulture(dbContextFactory));
this.Write("\r\n@inject NavigationManager NavigationManager\r\n\r\n<PageTitle>Details</PageTitle>\r\n" +
"\r\n<h1>Details</h1>\r\n\r\n<div>\r\n <h4>");
"\r\n<h1>Details</h1>\r\n\r\n<div>\r\n <h2>");
this.Write(this.ToStringHelper.ToStringWithCulture(modelName));
this.Write("</h4>\r\n <hr />\r\n @if (");
this.Write("</h2>\r\n <hr />\r\n @if (");
this.Write(this.ToStringHelper.ToStringWithCulture(modelNameLowerInv));
this.Write(" is null)\r\n {\r\n <p><em>Loading...</em></p>\r\n }\r\n else {\r\n " +
"<dl class=\"row\">\r\n");
Expand Down
2 changes: 1 addition & 1 deletion src/Scaffolding/VS.Web.CG.Mvc/Templates/Blazor/Details.tt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<h1>Details</h1>

<div>
<h4><#= modelName #></h4>
<h2><#= modelName #></h2>
<hr />
@if (<#= modelNameLowerInv #> is null)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Scaffolding/VS.Web.CG.Mvc/Templates/Blazor/Edit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public virtual string TransformText()
this.Write("@inject ");
this.Write(this.ToStringHelper.ToStringWithCulture(dbContextFactory));
this.Write("\r\n@inject NavigationManager NavigationManager\r\n\r\n<PageTitle>Edit</PageTitle>\r\n\r\n<" +
"h1>Edit</h1>\r\n\r\n<h4>");
"h1>Edit</h1>\r\n\r\n<h2>");
this.Write(this.ToStringHelper.ToStringWithCulture(modelName));
this.Write("</h4>\r\n<hr />\r\n@if (");
this.Write("</h2>\r\n<hr />\r\n@if (");
this.Write(this.ToStringHelper.ToStringWithCulture(modelName));
this.Write(" is null)\r\n{\r\n <p><em>Loading...</em></p>\r\n}\r\nelse\r\n{\r\n <div class=\"row\">\r\n" +
" <div class=\"col-md-4\">\r\n <EditForm method=\"post\" Model=\"");
Expand Down
2 changes: 1 addition & 1 deletion src/Scaffolding/VS.Web.CG.Mvc/Templates/Blazor/Edit.tt
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

<h1>Edit</h1>

<h4><#= modelName #></h4>
<h2><#= modelName #></h2>
<hr />
@if (<#= modelName #> is null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ public virtual string TransformText()
this.Write("@inject ");
this.Write(this.ToStringHelper.ToStringWithCulture(dbContextFactory));
this.Write("\r\n@inject NavigationManager NavigationManager\r\n\r\n<PageTitle>Create</PageTitle>\r\n\r" +
"\n<h1>Create</h1>\r\n\r\n<h4>");
"\n<h1>Create</h1>\r\n\r\n<h2>");
this.Write(this.ToStringHelper.ToStringWithCulture(modelName));
this.Write("</h4>\r\n<hr />\r\n<div class=\"row\">\r\n <div class=\"col-md-4\">\r\n <EditForm m" +
this.Write("</h2>\r\n<hr />\r\n<div class=\"row\">\r\n <div class=\"col-md-4\">\r\n <EditForm m" +
"ethod=\"post\" Model=\"");
this.Write(this.ToStringHelper.ToStringWithCulture(modelName));
this.Write("\" OnValidSubmit=\"Add");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<h1>Create</h1>

<h4><#= modelName #></h4>
<h2><#= modelName #></h2>
<hr />
<div class="row">
<div class="col-md-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ public virtual string TransformText()
this.Write("@inject ");
this.Write(this.ToStringHelper.ToStringWithCulture(dbContextFactory));
this.Write("\r\n@inject NavigationManager NavigationManager\r\n\r\n<PageTitle>Delete</PageTitle>\r\n\r" +
"\n<h1>Delete</h1>\r\n\r\n<h3>Are you sure you want to delete this?</h3>\r\n<div>\r\n <" +
"h4>");
"\n<h1>Delete</h1>\r\n\r\n<p>Are you sure you want to delete this?</p>\r\n<div>\r\n <h2" +
">");
this.Write(this.ToStringHelper.ToStringWithCulture(modelName));
this.Write("</h4>\r\n <hr />\r\n @if (");
this.Write("</h2>\r\n <hr />\r\n @if (");
this.Write(this.ToStringHelper.ToStringWithCulture(modelNameLowerInv));
this.Write(" is null)\r\n {\r\n <p><em>Loading...</em></p>\r\n }\r\n else {\r\n");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@

<h1>Delete</h1>

<h3>Are you sure you want to delete this?</h3>
<p>Are you sure you want to delete this?</p>
<div>
<h4><#= modelName #></h4>
<h2><#= modelName #></h2>
<hr />
@if (<#= modelNameLowerInv #> is null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public virtual string TransformText()
this.Write("@inject ");
this.Write(this.ToStringHelper.ToStringWithCulture(dbContextFactory));
this.Write("\r\n@inject NavigationManager NavigationManager\r\n\r\n<PageTitle>Details</PageTitle>\r\n" +
"\r\n<h1>Details</h1>\r\n\r\n<div>\r\n <h4>");
"\r\n<h1>Details</h1>\r\n\r\n<div>\r\n <h2>");
this.Write(this.ToStringHelper.ToStringWithCulture(modelName));
this.Write("</h4>\r\n <hr />\r\n @if (");
this.Write("</h2>\r\n <hr />\r\n @if (");
this.Write(this.ToStringHelper.ToStringWithCulture(modelNameLowerInv));
this.Write(" is null)\r\n {\r\n <p><em>Loading...</em></p>\r\n }\r\n else {\r\n " +
"<dl class=\"row\">\r\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<h1>Details</h1>

<div>
<h4><#= modelName #></h4>
<h2><#= modelName #></h2>
<hr />
@if (<#= modelNameLowerInv #> is null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ public virtual string TransformText()
this.Write("@inject ");
this.Write(this.ToStringHelper.ToStringWithCulture(dbContextFactory));
this.Write("\r\n@inject NavigationManager NavigationManager\r\n\r\n<PageTitle>Edit</PageTitle>\r\n\r\n<" +
"h1>Edit</h1>\r\n\r\n<h4>");
"h1>Edit</h1>\r\n\r\n<h2>");
this.Write(this.ToStringHelper.ToStringWithCulture(modelName));
this.Write("</h4>\r\n<hr />\r\n@if (");
this.Write("</h2>\r\n<hr />\r\n@if (");
this.Write(this.ToStringHelper.ToStringWithCulture(modelName));
this.Write(" is null)\r\n{\r\n <p><em>Loading...</em></p>\r\n}\r\nelse\r\n{\r\n <div class=\"row\">\r\n" +
" <div class=\"col-md-4\">\r\n <EditForm method=\"post\" Model=\"");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

<h1>Edit</h1>

<h4><#= modelName #></h4>
<h2><#= modelName #></h2>
<hr />
@if (<#= modelName #> is null)
{
Expand Down