Actualizar servicios2.html
This commit is contained in:
@@ -236,6 +236,16 @@
|
||||
<i data-lucide="clock" class="w-4 h-4 absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"></i>
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<label class="label-modern">Prioridad</label>
|
||||
<div class="relative">
|
||||
<select id="nUrgent" class="input-modern font-black uppercase appearance-none cursor-pointer pr-8">
|
||||
<option value="false" selected>Normal</option>
|
||||
<option value="true" class="text-red-600 font-bold">🚨 Urgente</option>
|
||||
</select>
|
||||
<i data-lucide="alert-triangle" class="w-4 h-4 absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 pointer-events-none"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1170,6 +1180,7 @@
|
||||
function openCreateModal() {
|
||||
document.getElementById('createModal').classList.remove('hidden');
|
||||
document.getElementById('isCompanyCheck').checked = false;
|
||||
if(document.getElementById('nUrgent')) document.getElementById('nUrgent').value = "false"; // 🛑 Reseteamos urgencia
|
||||
toggleCompanyFields(false);
|
||||
loadCompaniesForManual();
|
||||
lucide.createIcons();
|
||||
@@ -1254,6 +1265,7 @@
|
||||
guild_id: document.getElementById('nGuild').value,
|
||||
assigned_to: document.getElementById('nWorker').value || null,
|
||||
duration_minutes: document.getElementById('nDuration').value,
|
||||
is_urgent: document.getElementById('nUrgent').value === 'true', // 🛑 NUEVO
|
||||
is_company: is_company,
|
||||
company_name: is_company ? document.getElementById('nCompanySelect').value : 'Particular',
|
||||
company_ref: is_company ? document.getElementById('nExpRef').value : null,
|
||||
|
||||
Reference in New Issue
Block a user