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>
|
<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>
|
</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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -1170,6 +1180,7 @@
|
|||||||
function openCreateModal() {
|
function openCreateModal() {
|
||||||
document.getElementById('createModal').classList.remove('hidden');
|
document.getElementById('createModal').classList.remove('hidden');
|
||||||
document.getElementById('isCompanyCheck').checked = false;
|
document.getElementById('isCompanyCheck').checked = false;
|
||||||
|
if(document.getElementById('nUrgent')) document.getElementById('nUrgent').value = "false"; // 🛑 Reseteamos urgencia
|
||||||
toggleCompanyFields(false);
|
toggleCompanyFields(false);
|
||||||
loadCompaniesForManual();
|
loadCompaniesForManual();
|
||||||
lucide.createIcons();
|
lucide.createIcons();
|
||||||
@@ -1254,6 +1265,7 @@
|
|||||||
guild_id: document.getElementById('nGuild').value,
|
guild_id: document.getElementById('nGuild').value,
|
||||||
assigned_to: document.getElementById('nWorker').value || null,
|
assigned_to: document.getElementById('nWorker').value || null,
|
||||||
duration_minutes: document.getElementById('nDuration').value,
|
duration_minutes: document.getElementById('nDuration').value,
|
||||||
|
is_urgent: document.getElementById('nUrgent').value === 'true', // 🛑 NUEVO
|
||||||
is_company: is_company,
|
is_company: is_company,
|
||||||
company_name: is_company ? document.getElementById('nCompanySelect').value : 'Particular',
|
company_name: is_company ? document.getElementById('nCompanySelect').value : 'Particular',
|
||||||
company_ref: is_company ? document.getElementById('nExpRef').value : null,
|
company_ref: is_company ? document.getElementById('nExpRef').value : null,
|
||||||
|
|||||||
Reference in New Issue
Block a user