37 lines
1.0 KiB
Plaintext
37 lines
1.0 KiB
Plaintext
@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" />
|
|
<table class="table table-borderless">
|
|
<thead>
|
|
<tr>
|
|
<th> </th>
|
|
<th> </th>
|
|
<th>Name</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (Page page in PageState.Pages)
|
|
{
|
|
<tr>
|
|
<td><ActionLink Action="Edit" Parameters="@($"id=" + page.PageId.ToString())" /></td>
|
|
<td><ActionLink Action="Delete" Parameters="@($"id=" + page.PageId.ToString())" Class="btn btn-danger" /></td>
|
|
<td>@(new string('-', page.Level * 2))@(page.Name)</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
|
|
}
|
|
|
|
@code {
|
|
public override SecurityAccessLevel SecurityAccessLevel { get { return SecurityAccessLevel.Admin; } }
|
|
}
|