emile 7 days ago
parent 7ea45839b9
commit 735b875f0b

@ -386,6 +386,7 @@
<!-- TABLE BODY --> <!-- TABLE BODY -->
{% for order in customer_orders %} {% for order in customer_orders %}
<tbody class="bg-white divide-y divide-gray-200"> <tbody class="bg-white divide-y divide-gray-200">
<a href="{% url 'customer_order_detail' order.id %}">
<td class="px-6 py-4 text-center text-sm border-r border-gray-300"> <td class="px-6 py-4 text-center text-sm border-r border-gray-300">
<p class="text-secondosiblue">{{order.order_id}}</p> <p class="text-secondosiblue">{{order.order_id}}</p>
</td> </td>
@ -408,7 +409,7 @@
<td class="px-6 py-4 text-center text-sm border-r border-gray-300"> <td class="px-6 py-4 text-center text-sm border-r border-gray-300">
<p class="text-secondosiblue">${{order.remaining_balance}}</p> <p class="text-secondosiblue">${{order.remaining_balance}}</p>
</td> </td>
</a>
</tbody> </tbody>
{% endfor %} {% endfor %}
</table> </table>

@ -241,7 +241,7 @@ def user_recent_activities_modal(request, user_id):
@staff_login_required @staff_login_required
def customers(request, *args, **kwargs): def customers(request, *args, **kwargs):
customers = CustomerProfile.objects.all().order_by('-customer_id') customers = CustomerProfile.objects.all().order_by('-user__first_name')
context = { context = {
'customers' : customers, 'customers' : customers,

Loading…
Cancel
Save