Notenupload mit Bemerkung und Status Streaminglizenz

This commit is contained in:
aschwarz
2023-07-25 18:04:00 +02:00
parent 687e45b7b0
commit 50297c1d25
34 changed files with 77 additions and 65 deletions

View File

@ -23,6 +23,17 @@
<script src="js/all.js" crossorigin="anonymous"></script>
<link rel="stylesheet" href="../bootstrap/node_modules/bootstrap-icons/font/bootstrap-icons.css">
<script>
$(document).ready(function(){
$('[data-toggle="popover"]').popover();
$
});
</script>
<style>
.popover {
max-width: 800px;
}
</style>
</head>
<body class="sb-nav-fixed">
@ -69,13 +80,21 @@
<tbody>
{section name=table_data loop=$table_data}
<tr>
<td>{if $table_data[table_data].fileexists == 1}<a href="{$table_data[table_data].link}" target="_new">{$table_data[table_data].titel}</a>{else}{$table_data[table_data].titel}{/if}</td>
<td>{if $table_data[table_data].fileexists == 1}<a href="{$table_data[table_data].link}" target="_new">{$table_data[table_data].titel}</a>{else}{$table_data[table_data].titel}{/if}
{if $table_data[table_data].bemerkung != ''}
<a href="javascript:void(0)" type="button" class="link-secondary" data-bs-toggle="popover" data-bs-html="true" data-bs-trigger="hover focus"
title="Bemerkung"
data-bs-content="{$table_data[table_data].bemerkung}">
<i class="fa fa-info-circle"></i>
</a>
{/if}
</td>
<td class="d-none d-md-table-cell">{$table_data[table_data].verlag}</td>
<td>{$table_data[table_data].songbook}</td>
<td class="d-none d-md-table-cell">{$table_data[table_data].restlizenz}/{$table_data[table_data].anz_lizenzen}</td>
<td class="d-none d-md-table-cell">{$table_data[table_data].streamlizenz_vorh}</td>
<td>
<a href="notenupload.php?editjndid={$table_data[table_data].jndid}" class="settings" title="Edit Member" data-toggle="tooltip"><i class="fas fa fa-cog"></i></a>
<a href="notenupload.php?editjndid={$table_data[table_data].jndid}" class="settings" title="Edit Member" data-toggle="tooltip"><i class="fas fa fa-edit"></i></a>
&nbsp;
<a class="btn btn-danger btn-rounded btn-icon btn-sm" onclick="delNoten({$table_data[table_data].jndid})"><i class="fa fa-trash" style="width:10px;"></i></a>
</td>
@ -95,7 +114,12 @@
</div>
</div>
</body>
<script>
var popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'))
var popoverList = popoverTriggerList.map(function (popoverTriggerEl) {
return new bootstrap.Popover(popoverTriggerEl)
})
</script>
<script>
$(document).ready(function () {
$('#myTable').DataTable({