54 lines
1.8 KiB
Text
54 lines
1.8 KiB
Text
@* Copyright (C) 2022 FCS Frede's Computer Services.
|
|
// This program is free software: you can redistribute it and/or modify
|
|
// it under the terms of the GNU Affero General Public License as
|
|
// published by the Free Software Foundation, either version 3 of the
|
|
// License, or (at your option) any later version.
|
|
//
|
|
// This program is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU Affero General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU Affero General Public License
|
|
// along with this program. If not, see [https://www.gnu.org/licenses/agpl-3.0.en.html]
|
|
*@
|
|
|
|
@using Microsoft.AspNetCore.Authorization
|
|
@attribute [Authorize(Roles = "Admin")]
|
|
|
|
@page "/system/texts/section2"
|
|
|
|
<PageTitle>Tekster for 'Egenskaber'</PageTitle>
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<div class="card-title">
|
|
<h3>Egenskaber</h3>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
@if (TextProps.Any())
|
|
{
|
|
<table class="table table-striped">
|
|
<thead>
|
|
<tr>
|
|
<td>Navn</td>
|
|
<td>Tekst</td>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach (var textProp in TextProps)
|
|
{
|
|
<tr>
|
|
<td>@textProp.Name</td>
|
|
<td><input type="text" class="form-control" name="@textProp.Name" value="@textProp.GetValue(Section, null)"/></td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
</table>
|
|
}
|
|
else
|
|
{
|
|
<div>Ingen data!</div>
|
|
}
|
|
</div>
|
|
</div>
|