Select Git revision
shopping.go
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
_project-collection.go.html 3.59 KiB
{{ define "project-collection" }}
<h1>Projekt-Sammlung</h1>
<!-- Export-Buttons -->
<div style="margin-bottom: 20px;">
<form method="GET" action="/eiffel/export/json" style="display: inline;">
<button type="submit" style="padding: 10px; margin-right: 10px; background-color: #4CAF50; color: white; border: none; cursor: pointer;">
Export als JSON
</button>
</form>
<form method="GET" action="/eiffel/export/txt" style="display: inline;">
<button type="submit" style="padding: 10px; background-color: #2196F3; color: white; border: none; cursor: pointer;">
Export als TXT
</button>
</form>
</div>
<div class="container text-center">
<div class="row align-items-start">
<div class="col">
Das
</div>
<div class="col">
Ist
</div>
<div class="col">
ein Test
</div>
</div>
</div>
<form>
<div class="mb-3">
<label for="project-id" class="form-label">Projekt-ID</label>
<input type="text" class="form-control" id="project-id" placeholder="PRJ-2025-XXX">
</div>
<div class="mb-3">
<label for="project-name" class="form-label">Name</label>
<input type="text" class="form-control" id="project-name" placeholder="Projektname">
</div>
<div class="mb-3">
<label for="description" class="form-label">Beschreibung</label>
<textarea class="form-control" id="description" rows="3"></textarea>
</div>
<div class="mb-3">
<label for="start-date" class="form-label">Startdatum</label>
<input type="date" class="form-control" id="start-date">
</div>
<div class="mb-3">
<label for="end-date" class="form-label">Enddatum</label>
<input type="date" class="form-control" id="end-date">
</div>
<button type="submit" class="btn btn-primary mt-3">Speichern</button>
</form>
{{ with .Data.Form }}
{{ range .Projects }}
<div class="project-box" style="border: 1px solid #ccc; margin: 10px; padding: 10px;">
<h2>Projekt ID: {{ ._id }}</h2>
<ul>
{{ range .requirements }}
<li>
<!-- Input-Box -->
<form method="POST" action="/eiffel/{{ .template_id }}/{{ .variant_key }}" style="display: inline;">
<p style="display: inline; margin-right: 10px; max-width: 1000px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">
{{ .parsing_result.requirement }}
</p>
<input type="hidden" name="requirementID" value="{{ ._id }}">
<input type="hidden" name="edit" value="true">
<input type="hidden" name="project_id" value="{{ .project_id }}">
<button type="submit" style="padding: 5px; background-color: #4CAF50; color: white; border: none; cursor: pointer;">
Edit
</button>
</form>
<!-- Löschen-Knopf -->
<form method="POST" action="/eiffel/requirements/{{ index . "_id" }}/delete" style="display: inline;">
<button type="submit" style="margin-left: 5px; padding: 5px; background-color: #F44336; color: white; border: none; cursor: pointer;">
Delete
</button>
</form>
</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ else }}
<p>Keine Projektdaten vorhanden</p>
{{ end }}
{{ end }}