Titel und Kurzbeschreibung hinzugefügt
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
else if (_applications.Count == 0)
|
||||
{
|
||||
<div class="alert alert-warning">
|
||||
Keine genehmigten Anträge gefunden.
|
||||
Keine Anträge gefunden.
|
||||
</div>
|
||||
}
|
||||
else
|
||||
@@ -27,12 +27,16 @@
|
||||
<div class="col-md-4 mb-3">
|
||||
<div class="card h-100">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Ingenieur-Antrag</h5>
|
||||
<h5 class="card-title">@(string.IsNullOrEmpty(app.Title) ? "Ingenieur-Antrag" : app.Title)</h5>
|
||||
<h6 class="card-subtitle mb-2 text-muted">Benutzer ID: @app.UserId</h6>
|
||||
<p class="card-text">
|
||||
<strong>Datei:</strong> @app.FileId<br/>
|
||||
<strong>Status:</strong> <span class="badge bg-success">Veröffentlicht</span><br/>
|
||||
<strong>Datum:</strong> @(app.ApprovedOn?.ToShortDateString() ?? app.CreatedOn.ToShortDateString())
|
||||
@if (!string.IsNullOrEmpty(app.ShortDescription))
|
||||
{
|
||||
<p class="card-text">@app.ShortDescription</p>
|
||||
}
|
||||
<p class="card-text text-muted">
|
||||
<small>
|
||||
<strong>Datum:</strong> @(app.ApprovedOn?.ToShortDateString() ?? app.CreatedOn.ToShortDateString())
|
||||
</small>
|
||||
</p>
|
||||
<div class="d-flex gap-2">
|
||||
<button class="btn btn-primary btn-sm" @onclick="@(async () => ShowDetail(app))">PDF ansehen</button>
|
||||
|
||||
@@ -22,6 +22,16 @@
|
||||
<div class="card p-3">
|
||||
<p>Bitte laden Sie Ihren Ingenieur-Antrag als PDF-Datei hoch.</p>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="title" class="form-label">Titel</label>
|
||||
<input id="title" type="text" class="form-control" @bind="_existingApp.Title" maxlength="256"/>
|
||||
</div>
|
||||
|
||||
<div class="mb-3">
|
||||
<label for="description" class="form-label">Kurzbeschreibung</label>
|
||||
<textarea id="description" class="form-control" rows="3" @bind="_existingApp.ShortDescription" placeholder="Kurze Beschreibung Ihres Ingenieur-Antrags..."></textarea>
|
||||
</div>
|
||||
|
||||
@* <div class="mb-3">
|
||||
<label for="pdfUpload" class="form-label">Antrags-PDF</label>
|
||||
<InputFile OnChange="@LoadFiles" class="form-control" accept=".pdf"/>
|
||||
@@ -49,6 +59,18 @@ else
|
||||
<p>
|
||||
<strong>Status:</strong> <span class="badge bg-success">Veröffentlicht</span>
|
||||
</p>
|
||||
@if (!string.IsNullOrEmpty(_existingApp.Title))
|
||||
{
|
||||
<p>
|
||||
<strong>Titel:</strong> @_existingApp.Title
|
||||
</p>
|
||||
}
|
||||
@if (!string.IsNullOrEmpty(_existingApp.ShortDescription))
|
||||
{
|
||||
<p>
|
||||
<strong>Kurzbeschreibung:</strong> @_existingApp.ShortDescription
|
||||
</p>
|
||||
}
|
||||
<p>
|
||||
<strong>Datum:</strong> @_existingApp.CreatedOn.ToShortDateString()
|
||||
</p>
|
||||
@@ -104,8 +126,10 @@ else
|
||||
{
|
||||
ApplicationId = _existingApp?.ApplicationId ?? 0,
|
||||
ModuleId = ModuleState.ModuleId,
|
||||
UserId = PageState.User.UserId, // Ensure UserID is set
|
||||
UserId = PageState.User.UserId,
|
||||
FileId = _existingApp.FileId,
|
||||
Title = _existingApp.Title,
|
||||
ShortDescription = _existingApp.ShortDescription,
|
||||
Status = "Published", // Auto-publish
|
||||
SubmittedOn = DateTime.UtcNow,
|
||||
ApprovedOn = DateTime.UtcNow, // Auto-approved
|
||||
|
||||
@@ -9,10 +9,12 @@ namespace SZUAbsolventenverein.Module.PremiumArea
|
||||
public ModuleDefinition ModuleDefinition => new ModuleDefinition
|
||||
{
|
||||
Name = "PremiumArea",
|
||||
Description = "This module adds a premium member system to Octane. Users receive premium status after completing a payment. Premium members get access to exclusive features and content.",
|
||||
Version = "1.0.2",
|
||||
ServerManagerType = "SZUAbsolventenverein.Module.PremiumArea.Manager.PremiumAreaManager, SZUAbsolventenverein.Module.PremiumArea.Server.Oqtane",
|
||||
ReleaseVersions = "1.0.0,1.0.1,1.0.2",
|
||||
Description =
|
||||
"This module adds a premium member system to Octane. Users receive premium status after completing a payment. Premium members get access to exclusive features and content.",
|
||||
Version = "1.0.3",
|
||||
ServerManagerType =
|
||||
"SZUAbsolventenverein.Module.PremiumArea.Manager.PremiumAreaManager, SZUAbsolventenverein.Module.PremiumArea.Server.Oqtane",
|
||||
ReleaseVersions = "1.0.0,1.0.1,1.0.2,1.0.3",
|
||||
Dependencies = "SZUAbsolventenverein.Module.PremiumArea.Shared.Oqtane",
|
||||
PackageName = "SZUAbsolventenverein.Module.PremiumArea",
|
||||
// Hier definieren Sie, WELCHE Permissions verfügbar sind
|
||||
|
||||
Reference in New Issue
Block a user