up
This commit is contained in:
@@ -555,24 +555,35 @@ try {
|
||||
<div class="card-header d-flex justify-content-between align-items-center">
|
||||
<h5><i class="fas fa-file-alt"></i> Logs del Sistema</h5>
|
||||
<div>
|
||||
<button class="btn btn-outline-primary" onclick="refreshLogs()">
|
||||
<select class="form-select form-select-sm d-inline-block w-auto me-2" id="log-level-filter" onchange="filterLogs()">
|
||||
<option value="all">Todos los niveles</option>
|
||||
<option value="ERROR">❌ Error</option>
|
||||
<option value="WARNING">⚠️ Warning</option>
|
||||
<option value="INFO">ℹ️ Info</option>
|
||||
<option value="DEBUG">🔧 Debug</option>
|
||||
<option value="SUCCESS">✅ Success</option>
|
||||
</select>
|
||||
<button class="btn btn-outline-primary btn-sm" onclick="refreshLogs()">
|
||||
<i class="fas fa-sync-alt"></i> Actualizar
|
||||
</button>
|
||||
<button class="btn btn-outline-danger" onclick="clearLogs()">
|
||||
<button class="btn btn-outline-danger btn-sm" onclick="clearLogs()" title="Limpiar logs del sistema">
|
||||
<i class="fas fa-trash"></i> Limpiar
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="mb-3">
|
||||
<input type="text" class="form-control" id="log-search" placeholder="🔍 Buscar en logs..." onkeyup="filterLogs()">
|
||||
</div>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-sm">
|
||||
<table class="table table-sm table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Fecha</th>
|
||||
<th>IP</th>
|
||||
<th>Estado</th>
|
||||
<th>Request</th>
|
||||
<th>Response</th>
|
||||
<th style="width: 140px;">Fecha/Hora</th>
|
||||
<th style="width: 80px;">Nivel</th>
|
||||
<th>Mensaje</th>
|
||||
<th style="width: 120px;">Origen</th>
|
||||
<th style="width: 80px;">Acciones</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="logs-table">
|
||||
@@ -607,10 +618,8 @@ try {
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Idioma</label>
|
||||
<select class="form-control" id="template-language" name="template_language">
|
||||
<option value="es_ES" <?= (defined('APP_LANG') && constant('APP_LANG') === 'es_ES') ? 'selected' : '' ?>>Español</option>
|
||||
<option value="en_US" <?= (defined('APP_LANG') && constant('APP_LANG') === 'en_US') ? 'selected' : '' ?>>English</option>
|
||||
</select>
|
||||
<input type="text" class="form-control" id="template-language" name="template_language" value="<?= defined('APP_LANG') ? constant('APP_LANG') : 'es_ES' ?>" placeholder="ej: es_ES, en_US, pt_BR">
|
||||
<small class="form-text text-muted">Código de idioma según WhatsApp (ej: es_ES, en_US, pt_BR)</small>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label">Categoría</label>
|
||||
@@ -668,7 +677,7 @@ try {
|
||||
<!-- Scripts -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
|
||||
<script src="./assets/js/app_simple.js?v=13"></script>
|
||||
<script src="./assets/js/app_simple.js?v=14"></script>
|
||||
<script>
|
||||
// Función de diagnóstico mejorada
|
||||
function runDiagnostic() {
|
||||
|
||||
Reference in New Issue
Block a user