mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 01:35:32 +00:00
Setup Git Repository Parsing
This commit is contained in:
@@ -1,53 +0,0 @@
|
||||
@model (List<FileModel>? files, string title, string aspcontrolller, string aspaction, string id, string downloadprefix, bool multipleallowed);
|
||||
|
||||
|
||||
<script defer src="/js/filelistform.js" asp-append-version="true"></script>
|
||||
|
||||
<fieldset class="ha-filelistfieldset">
|
||||
<legend class="ha-filelistlegend">@Model.title</legend>
|
||||
@if(Model.files != null && Model.files.Any()) {
|
||||
<form class="ha-selectfilesform" id="selecthamannfilesform" asp-controller="@Model.aspcontrolller" asp-action="@Model.aspaction" asp-route-id="@Model.id" method="post" onsubmit="USESubmit(this);return false;" enctype="multipart/form-data">
|
||||
<div class="ha-filelistlist">
|
||||
@foreach (var file in Model.files.OrderByDescending(x => x.LastModified)) {
|
||||
<div class="ha-filelistfile">
|
||||
@if (Model.multipleallowed) {
|
||||
<input type="checkbox" id="@file.FileName" name="file" value="@file.FileName" @(file.IsUsed ? "checked='checked'" : "")>
|
||||
}
|
||||
else {
|
||||
<input type="radio" id="@file.FileName" name="file" value="@file.FileName" @(file.InProduction ? "checked='checked'" : "")>
|
||||
}
|
||||
<div class="ha-filelistname">@file.FileName</div>
|
||||
@if (file.InProduction || file.IsUsed) {
|
||||
<div class="ha-filelistusedproduction">
|
||||
@if (file.InProduction) {
|
||||
<div class="ha-filelistproduction">in Verwendung</div>
|
||||
}
|
||||
@if (file.IsUsed) {
|
||||
<div class="ha-filelistused">geladen</div>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
@if (file.Fields != null && file.Fields.Any()) {
|
||||
<div class="ha-filelistfields">
|
||||
@foreach (var field in file.Fields) {
|
||||
@if (field.Item2 != null) {
|
||||
<div class="ha-filelistfield">field.Item2</div>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
}
|
||||
<div class="ha-filelistmodified">@file.LastModified - @file.Prefix</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
<output id ="ha-filelistoutput"></output>
|
||||
<button type="submit" class="ha-filelistbutton" id="ha-filelistbutton" >
|
||||
Laden
|
||||
<div class="ha-lds-ellipsis-load" id="ha-lds-ellipsis-load"></div>
|
||||
</button>
|
||||
</form>
|
||||
}
|
||||
else {
|
||||
<div>Keine Dateien gefunden! Es wird eine fallback-Datei verwendet!</div>
|
||||
}
|
||||
</fieldset>
|
||||
@@ -1,10 +1,10 @@
|
||||
@model UploadViewModel;
|
||||
@model XMLStateViewModel;
|
||||
<script defer src="/js/publishform.js" asp-append-version="true"></script>
|
||||
|
||||
@if (Model.UsedFiles != null && Model.UsedFiles.Any()) {
|
||||
@* @if (Model. != null && Model..Any()) {
|
||||
<div class="ha-publishfilelisttitle">Aktuell geladene Dateien</div>
|
||||
<table class="ha-publishfilelistlist">
|
||||
@foreach (var (category, files) in Model.UsedFiles.OrderBy(x => x.Key))
|
||||
@foreach (var (category, files) in Model..OrderBy(x => x.Key))
|
||||
{
|
||||
<tr>
|
||||
<td>@Model.AvailableRoots.Where(x => x.Prefix == category).First().Type:</td>
|
||||
@@ -32,4 +32,4 @@
|
||||
<output form="uploadForm" name="publish-result" id="publish-result"></output>
|
||||
</div>
|
||||
</form>
|
||||
}
|
||||
} *@
|
||||
@@ -1,4 +1,4 @@
|
||||
@model UploadViewModel;
|
||||
@model XMLStateViewModel;
|
||||
|
||||
<script defer src="/js/uploadform.js" asp-append-version="true"></script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user