Browse Source

updated part 9

pull/15303/head
malik masis 4 years ago
parent
commit
8ad8e83568
  1. 12
      docs/en/Tutorials/Part-9.md
  2. BIN
      docs/en/Tutorials/images/bookstore-author-permissions-3.png
  3. BIN
      docs/en/Tutorials/images/bookstore-authors-page-3.png

12
docs/en/Tutorials/Part-9.md

@ -248,11 +248,11 @@ context.Menu.AddItem(
Run and login to the application. **You can not see the menu item since you don't have permission yet.** Go to the `Identity/Roles` page, click to the *Actions* button and select the *Permissions* action for the **admin role**: Run and login to the application. **You can not see the menu item since you don't have permission yet.** Go to the `Identity/Roles` page, click to the *Actions* button and select the *Permissions* action for the **admin role**:
![bookstore-author-permissions](images/bookstore-author-permissions-2.png) ![bookstore-author-permissions](images/bookstore-author-permissions-3.png)
As you see, the admin role has no *Author Management* permissions yet. Click to the checkboxes and save the modal to grant the necessary permissions. You will see the *Authors* menu item under the *Book Store* in the main menu, after **refreshing the page**: As you see, the admin role has no *Author Management* permissions yet. Click to the checkboxes and save the modal to grant the necessary permissions. You will see the *Authors* menu item under the *Book Store* in the main menu, after **refreshing the page**:
![bookstore-authors-page](images/bookstore-authors-page-2.png) ![bookstore-authors-page](images/bookstore-authors-page-3.png)
The page is fully working except *New author* and *Actions/Edit* since we haven't implemented them yet. The page is fully working except *New author* and *Actions/Edit* since we haven't implemented them yet.
@ -863,12 +863,11 @@ Create a new Razor Component Page, `/Pages/Authors.razor`, in the `Acme.BookStor
@inject AbpBlazorMessageLocalizerHelper<BookStoreResource> LH @inject AbpBlazorMessageLocalizerHelper<BookStoreResource> LH
<Card> <Card>
<CardHeader> <CardHeader>
<Row> <Row Class="justify-content-between">
<Column ColumnSize="ColumnSize.Is6"> <Column ColumnSize="ColumnSize.IsAuto">
<h2>@L["Authors"]</h2> <h2>@L["Authors"]</h2>
</Column> </Column>
<Column ColumnSize="ColumnSize.Is6"> <Column ColumnSize="ColumnSize.IsAuto">
<Paragraph Alignment="TextAlignment.Right">
@if (CanCreateAuthor) @if (CanCreateAuthor)
{ {
<Button Color="Color.Primary" <Button Color="Color.Primary"
@ -876,7 +875,6 @@ Create a new Razor Component Page, `/Pages/Authors.razor`, in the `Acme.BookStor
@L["NewAuthor"] @L["NewAuthor"]
</Button> </Button>
} }
</Paragraph>
</Column> </Column>
</Row> </Row>
</CardHeader> </CardHeader>

BIN
docs/en/Tutorials/images/bookstore-author-permissions-3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

BIN
docs/en/Tutorials/images/bookstore-authors-page-3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Loading…
Cancel
Save