pull/395/head
Halil ibrahim Kalkan 7 years ago
commit a5fc8ef9ab

@ -365,7 +365,7 @@ Change the `Pages/Books/Index.cshtml` as following:
@model IndexModel
@section scripts
{
<abp-script src="/pages/books/index.js" />
<abp-script src="/Pages/Books/index.js" />
}
<abp-card>
<abp-card-header>
@ -393,7 +393,7 @@ Change the `Pages/Books/Index.cshtml` as following:
##### Add a Script File
Create `index.js` JavaScript file under the `wwwroot/pages/books/` folder:
Create `index.js` JavaScript file under the `Pages/Books/` folder:
![bookstore-index-js-file](images/bookstore-index-js-file.png)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.9 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

@ -5,7 +5,7 @@
@section scripts {
<abp-script-bundle name="@typeof(EditModel).FullName">
<abp-script src="/pages/blog/posts/edit.js" />
<abp-script src="/Pages/Blog/Posts/edit.js" />
</abp-script-bundle>
}

@ -7,14 +7,14 @@
@section styles {
<abp-style-bundle @*name="@typeof(NewModel).FullName"*@>
<abp-style type="@typeof(TuiEditorStyleContributor)" />
<abp-style src="/pages/blog/posts/new.css" />
<abp-style src="/Pages/Blog/Posts/new.css" />
</abp-style-bundle>
}
@section scripts {
<abp-script-bundle @*name="@typeof(NewModel).FullName"*@>
<abp-script type="@typeof(LodashScriptContributor)" />
<abp-script type="@typeof(TuiEditorScriptContributor)" />
<abp-script src="/pages/blog/posts/new.js" />
<abp-script src="/Pages/Blog/Posts/new.js" />
</abp-script-bundle>
}
<div id="qa-new-post-container">

@ -32,7 +32,15 @@
<Content Remove="Pages\**\*.cshtml" />
<Content Remove="Localization\Resources\**\*.json" />
<Content Remove="Properties\launchSettings.json" />
<EmbeddedResource Include="Pages\Blog\Posts\edit.js" />
<EmbeddedResource Include="Pages\Blog\Posts\new.css" />
<EmbeddedResource Include="Pages\Blog\Posts\new.js" />
<EmbeddedResource Include="Pages\Blog\Posts\new.scss" />
<None Include="Properties\launchSettings.json" />
</ItemGroup>
<ItemGroup>
<Folder Include="wwwroot\pages\blog\posts\" />
</ItemGroup>
</Project>

@ -3,8 +3,8 @@
@inherits Acme.BookStore.Pages.BookStorePageBase
@model IndexModel
@section scripts
{
<abp-script src="/pages/books/index.js" />
{
<abp-script src="/Pages/Books/index.js" />
}
<abp-card>
<abp-card-header>
@ -23,14 +23,14 @@
<abp-card-body>
<abp-table striped-rows="true" id="BooksTable">
<thead>
<tr>
<th>@L["Actions"]</th>
<th>@L["Name"]</th>
<th>@L["Type"]</th>
<th>@L["PublishDate"]</th>
<th>@L["Price"]</th>
<th>@L["CreationTime"]</th>
</tr>
<tr>
<th>@L["Actions"]</th>
<th>@L["Name"]</th>
<th>@L["Type"]</th>
<th>@L["PublishDate"]</th>
<th>@L["Price"]</th>
<th>@L["CreationTime"]</th>
</tr>
</thead>
</abp-table>
</abp-card-body>

@ -2,9 +2,6 @@
@using Acme.BookStore.Pages
@inherits BookStorePageBase
@model IndexModel
@section styles {
<link href="~/pages/index.css" rel="stylesheet" />
}
<abp-card>
<abp-card-header>@L["Welcome"]</abp-card-header>
<abp-card-body>

Loading…
Cancel
Save