33 lines
970 B
Plaintext
33 lines
970 B
Plaintext
@namespace Oqtane.Modules.Admin.Modules
|
|
@inherits ModuleBase
|
|
@inject NavigationManager NavigationManager
|
|
@inject IModuleService ModuleService
|
|
|
|
<table class="table table-borderless">
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<label class="control-label">Content: </label>
|
|
</td>
|
|
<td>
|
|
<textarea class="form-control" @bind="@_content" rows="5"></textarea>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<button type="button" class="btn btn-success" @onclick="ExportModule">Export</button>
|
|
<NavLink class="btn btn-secondary" href="@NavigateUrl()">Cancel</NavLink>
|
|
|
|
|
|
@code {
|
|
public override SecurityAccessLevel SecurityAccessLevel { get { return SecurityAccessLevel.Admin; } }
|
|
public override string Title { get { return "Export Module"; } }
|
|
|
|
string _content = "";
|
|
|
|
private async Task ExportModule()
|
|
{
|
|
_content = await ModuleService.ExportModuleAsync(ModuleState.ModuleId);
|
|
}
|
|
}
|