Update enfermero_portal.php
This commit is contained in:
@@ -259,12 +259,12 @@ $hoy = date('Y-m-d');
|
||||
<p class="text-muted small mb-3">Registra la temperatura corporal del paciente</p>
|
||||
<div class="temp-value-wrap d-inline-block">
|
||||
<input type="number" id="temp-modal-valor" class="form-control form-control-lg"
|
||||
step="0.1" min="30" max="45" placeholder="36.5"
|
||||
step="0.1" min="0" max="45" placeholder="36.5"
|
||||
onkeydown="if(event.key==='Enter')tempModal.confirmar()">
|
||||
<span class="temp-unit">°C</span>
|
||||
</div>
|
||||
<div id="temp-modal-error" class="text-danger small mt-2" style="display:none">
|
||||
Ingresa un valor válido entre 30 y 45 °C
|
||||
Ingresa un valor válido entre 0 y 45 °C
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer py-2 justify-content-center">
|
||||
@@ -1550,7 +1550,7 @@ const tempModal = {
|
||||
confirmar() {
|
||||
const val = parseFloat(document.getElementById('temp-modal-valor').value);
|
||||
const err = document.getElementById('temp-modal-error');
|
||||
if (!val || val < 30 || val > 45) { err.style.display = ''; return; }
|
||||
if (isNaN(val) || val < 0 || val > 45) { err.style.display = ''; return; }
|
||||
this._modal.hide();
|
||||
if (this._cb) this._cb(val);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user