feat: release v3.5.0 - formal MVP Bedelia closure, SDD harness, cartelera export, docs cleanup & model fixes
This commit is contained in:
@@ -266,7 +266,14 @@
|
||||
{{ log.details or '-' }}
|
||||
</div>
|
||||
{% if log.details and log.details.length > 50 %}
|
||||
<button type="button" class="btn btn-link btn-sm p-0 text-decoration-none text-primary" onclick="showLogDetailModal('{{ log.id }}', '{{ log.action }}', '{{ log.module }}', '{{ log.user_email or 'Sistema' }}', '{{ log.created_at }}', '{{ log.ip_address }}', {{ log.details | dump | escape }})">
|
||||
<button type="button" class="btn btn-link btn-sm p-0 text-decoration-none text-primary btn-view-log-detail"
|
||||
data-log-id="{{ log.id }}"
|
||||
data-log-action="{{ log.action }}"
|
||||
data-log-module="{{ log.module }}"
|
||||
data-log-user="{% if log.user_email %}{{ log.user_email }}{% else %}Sistema{% endif %}"
|
||||
data-log-time="{{ log.created_at }}"
|
||||
data-log-ip="{{ log.ip_address or '-' }}"
|
||||
data-log-details="{{ log.details | escape }}">
|
||||
<i class="bi bi-eye"></i>
|
||||
</button>
|
||||
{% endif %}
|
||||
@@ -402,5 +409,21 @@ function copyModalDetails() {
|
||||
alert('Detalle copiado al portapapeles.');
|
||||
});
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function() {
|
||||
document.querySelectorAll('.btn-view-log-detail').forEach(function(btn) {
|
||||
btn.addEventListener('click', function() {
|
||||
showLogDetailModal(
|
||||
this.dataset.logId,
|
||||
this.dataset.logAction,
|
||||
this.dataset.logModule,
|
||||
this.dataset.logUser,
|
||||
this.dataset.logTime,
|
||||
this.dataset.logIp,
|
||||
this.dataset.logDetails
|
||||
);
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user