Soy novato aquí, trato de hacer algunos proyectos en Django (sqlite). En este proyecto, trato de arrastrar y soltar en una página web. Se hizo la tarjeta de arrastrar y soltar. Luego lo hago con jquery y jquery ui pero no funciona. Quiero arrastrar la tarjeta a la zona desde la que hice. En el tener un plano de construcción. la tarjeta caerá en la dirección de la habitación y permanecerán en la posición después de la caída aunque se actualice. ¿Cómo debería hacer?
He estado buscando sus soluciones pero no encontré ninguna ayuda.
Gracias
bucle para tarjeta de compilación
{% for x in Showinventory%} {% if x.Type == 'COMPUTER' and x.current == 'inventory'%} <div draggable="true" class="draggable card {% if Current_year|sub:x.comStart < 4 %} bg-success {% elif Current_year|sub:x.comStart == 4%} bg-warning {% else %} bg-danger {% endif %}" style = " height: 60px; width: 50px" > <div> <img src={% static 'img\computer.png'%} width=" 80%" height="80%" data-toggle="popover" data-trigger="hover" title={{x.Type}} data-content="Number:{{x.comNum}} || S/N:{{x.comSerial}} || Abstract:{{x.comAbsNum}} || Brand:{{x.comBrand}} || Model:{{x.comModel}} || Budget:{{x.comBudget}} || Room:{{x.comRoom}} || Table:{{x.comTable}} || Equip:{{x.upsEquip}} || UPS Number:{{x.upsNum}} || UPS Serial:{{x.upsSerial}} || UPS Abstract:{{x.upsAbsNum}} || UPS Brand:{{x.upsBrand}} || UPS Model:{{x.upeModel}} || UPS Budget:{{x.upsBudget}} || {{x.affair}}"> </div> </div>para dropzone
<div id="blab" class="stabcontent dropzone"> <div> <img src="{% static 'img\floor1\Blabnlift.png' %}" alt="blood" height="100%" width="100%"> </div> </div>