feat(medicos): seed 444 médicos + columnas telefonos/email en tabla y modal
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
48f9e32c22
commit
3b378c0d75
@@ -54,6 +54,7 @@ $API = BASE_URL . 'modules/medicos/api/';
|
||||
<th>Nombres</th>
|
||||
<th>Apellidos</th>
|
||||
<th>Especialidad</th>
|
||||
<th>Teléfonos</th>
|
||||
<th>Doc. ID</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@@ -98,10 +99,20 @@ $API = BASE_URL . 'modules/medicos/api/';
|
||||
<input type="text" id="med-apellidos" class="form-control form-control-sm"
|
||||
placeholder="Apellidos" maxlength="100">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<label class="form-label small fw-semibold">Teléfonos</label>
|
||||
<input type="text" id="med-telefonos" class="form-control form-control-sm"
|
||||
placeholder="Teléfonos" maxlength="50">
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<label class="form-label small fw-semibold">Email</label>
|
||||
<input type="email" id="med-email" class="form-control form-control-sm"
|
||||
placeholder="correo@ejemplo.com" maxlength="100">
|
||||
</div>
|
||||
<div class="col-12">
|
||||
<label class="form-label small fw-semibold">Código especialidad</label>
|
||||
<input type="text" id="med-esp" class="form-control form-control-sm"
|
||||
placeholder="Ej: MED, PED, GIN…" maxlength="50">
|
||||
placeholder="Ej: GEN, PED, GIN…" maxlength="10">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -172,6 +183,7 @@ function renderTabla(rows) {
|
||||
<td>${esc(m.nombres)}</td>
|
||||
<td>${esc(m.apellidos)}</td>
|
||||
<td>${m.cod_especialidad ? `<span class="badge-esp">${esc(m.cod_especialidad)}</span>` : '<span class="text-muted">—</span>'}</td>
|
||||
<td style="font-size:.82rem;color:#475569">${esc(m.telefonos || '—')}</td>
|
||||
<td>${esc(m.docidmedico || '—')}</td>
|
||||
<td>
|
||||
<div class="acciones">
|
||||
@@ -193,6 +205,8 @@ function abrirModal(m = null) {
|
||||
document.getElementById('med-codigo').value = m?.codigo ?? '';
|
||||
document.getElementById('med-nombres').value = m?.nombres ?? '';
|
||||
document.getElementById('med-apellidos').value = m?.apellidos ?? '';
|
||||
document.getElementById('med-telefonos').value = m?.telefonos ?? '';
|
||||
document.getElementById('med-email').value = m?.email ?? '';
|
||||
document.getElementById('med-esp').value = m?.cod_especialidad ?? '';
|
||||
document.getElementById('med-docid').value = m?.docidmedico ?? '';
|
||||
_modal.show();
|
||||
@@ -210,6 +224,8 @@ async function guardar() {
|
||||
codigo: document.getElementById('med-codigo').value.trim(),
|
||||
nombres: document.getElementById('med-nombres').value.trim(),
|
||||
apellidos: document.getElementById('med-apellidos').value.trim(),
|
||||
telefonos: document.getElementById('med-telefonos').value.trim(),
|
||||
email: document.getElementById('med-email').value.trim(),
|
||||
cod_especialidad: document.getElementById('med-esp').value.trim(),
|
||||
docidmedico: document.getElementById('med-docid').value.trim(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user