Skip to content

Commit

Permalink
Merge pull request EasyAbp#232 from woshidajiao/dajiao
Browse files Browse the repository at this point in the history
RazorUi Index.cshtml template added content_toolbar
  • Loading branch information
blackWins authored May 21, 2024
2 parents e83a286 + 257e7eb commit 39aea50
Showing 1 changed file with 13 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,22 @@
{
<abp-style src="/Pages/{{ pagesFolder }}{{ EntityInfo.RelativeDirectory }}/{{ EntityInfo.Name }}/index.css"/>
}

<abp-card>
<abp-card-header>
<abp-row>
<abp-column size-md="_6">
<abp-card-title>@L["{{ EntityInfo.Name }}"]</abp-card-title>
</abp-column>
<abp-column size-md="_6" class="text-end">
@section content_toolbar
{
{{~ if !Option.SkipPermissions ~}}
@if (await Authorization.IsGrantedAsync({{ ProjectInfo.Name }}Permissions.{{ EntityInfo.Name }}.Create))
{
@if (await Authorization.IsGrantedAsync({{ ProjectInfo.Name }}Permissions.{{ EntityInfo.Name }}.Create))
{
{{~ end ~}}
<abp-button id="New{{ EntityInfo.Name }}Button"
text="@L["Create{{ EntityInfo.Name }}"].Value"
icon="plus"
button-type="Primary" />
<abp-button id="New{{ EntityInfo.Name }}Button"
text="@L["Create{{ EntityInfo.Name }}"].Value"
icon="plus"
button-type="Primary" />
{{~ if !Option.SkipPermissions ~}}
}
{{~ end ~}}
</abp-column>
</abp-row>
</abp-card-header>
}
{{~ end ~}}
}

<abp-card>
<abp-card-body>
{{~ if !Option.SkipGetListInputDto ~}}
<abp-row class="mb-3">
Expand Down

0 comments on commit 39aea50

Please sign in to comment.