Thesaurus/templates/newPublisher.tpl
2026-02-23 16:11:35 +01:00

115 lines
5.9 KiB
Smarty

<!-- Modal - Neuer Verlag -->
<div class="modal fade" id="NewPublisherModal" tabindex="-1" aria-labelledby="NewPublisherModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg" style="max-width: 1024px;">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="NewPublisherModalHeadline">
<i class="fas fa-book"></i> Verlag
</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Schließen"></button>
</div>
<div class="modal-body">
<!-- Alert für Meldungen -->
<div class="row">
<div class="col-md-12">
<div id="errorNewPublisher" class="alert" style="display: none;"></div>
</div>
</div>
<!-- Formular -->
<div class="form-group row mb-3">
<label class="col-sm-2 col-form-label" for="new_term">Name</label>
<div class="col-sm-9">
<input type="text" id="new_term" class="form-control" />
<input type="hidden" id="new_id" />
</div>
</div>
<div class="form-group row mb-3">
<label class="col-sm-2 col-form-label" for="new_type">Type</label>
<div class="col-sm-3">
<select class="form-select" id="new_type">
<option value="Publisher">Verlag</option>
<option value="Imprint">Imprint</option>
</select>
</div>
</div>
<div class="form-group mb-3">
<label class="form-label" for="new_scopenote">Anmerkung</label>
<textarea class="form-control" id="new_scopenote" rows="3"></textarea>
</div>
<!-- Relationen-Bereich -->
<div id="new_relation_label" style="display: none;">
<hr>
<h5 class="mb-3"><i class="fas fa-link"></i> Relationen</h5>
<!-- Neue Relation hinzufügen -->
<div class="form-group row mb-3">
<label class="col-sm-2 col-form-label" for="new_relationtype">Relationstyp</label>
<div class="col-sm-3">
<select class="form-select" id="new_relationtype">
<option value="USEDEARLIER">Früher verwendet</option>
<option value="USEDLATER">Später verwendet</option>
<option value="ALTERNATIVENAME">Alternativer Name</option>
<option value="USE">Benutze</option>
<option value="USEDFOR">Benutzt für</option>
</select>
</div>
</div>
<div class="form-group row mb-3">
<label class="col-sm-2 col-form-label" for="search_relation">Relation suchen</label>
<div class="col-sm-7">
<input type="text" id="search_relation" class="form-control" placeholder="Verlag eingeben..." />
</div>
<div class="col-sm-2">
<button type="button" class="btn btn-success w-100" id="publisher-anlegen">
<i class="fas fa-plus"></i> Hinzufügen
</button>
</div>
</div>
<!-- Vorhandene Relationen -->
<div id="relation_table" style="display: none;">
<hr>
<h6><i class="fas fa-link me-1" style="color: #17a2b8;"></i> Vorhandene Relationen</h6>
<div class="table-responsive" style="border: 1px solid #dee2e6; border-radius: 0.375rem; overflow: hidden;">
<table class="table table-sm table-hover table-bordered mb-0">
<thead class="table-light">
<tr>
<th style="width: 80px;">Typ</th>
<th>Begriff</th>
<th style="width: 80px;" class="text-end">Aktion</th>
</tr>
</thead>
<tbody class="new_modal_content">
<!-- Relationen werden hier per AJAX eingefügt -->
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button id="newPublisherSave" type="button" class="btn btn-success" title="New Publisher" onclick="CreateNewEntry('Publisher')">
<i class="fas fa-save"></i> speichern
</button>
<button id="PublisherModifySave" type="button" class="btn btn-success" style="display: none;" title="Modify Publisher" onclick="UpdateEntry('Publisher')">
<i class="fas fa-sync"></i> aktualisieren
</button>
<button id="newPublisherDismiss" type="button" class="btn btn-secondary" data-bs-dismiss="modal">
<i class="fas fa-times"></i> schliessen
</button>
<button id="newRelationPublisherDismiss" type="button" class="btn btn-secondary" style="display: none;" data-bs-dismiss="modal">
<i class="fas fa-times"></i> schliessen
</button>
</div>
</div>
</div>
</div>