Hello ! I have a table that is in a loop and displays data and when I press an object, I would like it to display all the data related to the selected object in a popup.
My table
<tbody>
{% for ad in HubriseOrderNewcommande %}
<tr class="btnSelect tr-commande contenttableforpopup" id="commandid"> {% comment %} onclick="document.location = '{% url 'myapp:hubrise_accept' %}';" {% endcomment %}
<td data-label=""><img class="icon-commande" src="{% get_static_prefix %}apc/images/{{ ad.pictureplatform }}"></td>
<td data-label="N° de commande" >{{ ad.id_order }}</td>
<td data-label="Type de service">{{ ad.service_type }}</td>
<td data-label="Prix">{{ ad.amount }}</td>
<td data-label="Statut"><a style="background-color: {{ ad.statuscolor }}; font-size: 11px; padding-top: 8px; padding-bottom: 8px; padding-left: 30px; padding-right: 30px; border-radius: 3px;">{{ ad.status }}</a></td>
</tr>
{% endfor %}
</tbody>
When you click on id="commandid"
it opens my popup.
And I would like to display other data that are not in the same model but are still linked by a ForeignKey
If anyone can help me, this is an assignment due as soon as possible ^^'.