31 lines
986 B
Plaintext
31 lines
986 B
Plaintext
@using Microsoft.AspNetCore.Components.Web
|
|
@using Oqtane.Modules.Controls
|
|
@using Oqtane.Services
|
|
@using Oqtane.Models
|
|
@using Oqtane.Modules
|
|
@using Oqtane.Shared
|
|
@namespace Oqtane.Modules.Admin.Pages
|
|
@inherits ModuleBase
|
|
|
|
@if (PageState.Pages != null)
|
|
{
|
|
<ActionLink Action="Add" Text="Add Page" Style="float: right; margin: 10px;" />
|
|
|
|
<Pager Items="@PageState.Pages" DisplayPages="3" PageSize="3">
|
|
<Header>
|
|
<th>Name</th>
|
|
<th> </th>
|
|
<th> </th>
|
|
</Header>
|
|
<Row>
|
|
<td>@(new string('-', context.Level * 2))@(context.Name)</td>
|
|
<td><ActionLink Action="Edit" Parameters="@($"id=" + context.PageId.ToString())" /></td>
|
|
<td><ActionLink Action="Delete" Parameters="@($"id=" +context.PageId.ToString())" Class="btn btn-danger" /></td>
|
|
</Row>
|
|
</Pager>
|
|
}
|
|
|
|
@code {
|
|
public override SecurityAccessLevel SecurityAccessLevel { get { return SecurityAccessLevel.Admin; } }
|
|
}
|