added some filters to templates
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
{% extends 'list-crud.html' %}
|
||||
{% load custom_filters %}
|
||||
{% load filters %}
|
||||
{% load static %}
|
||||
|
||||
{% block filter %}
|
||||
@@ -34,7 +35,7 @@
|
||||
<td>{{ object.containers_left }}</td>
|
||||
<td>{{ object.vehicles|distinct_vehicles }}</td>
|
||||
<td>{{ object.vehicles_left|distinct_vehicles }}</td>
|
||||
<td>{{ object.created_on }}</td>
|
||||
<td>{{ object.created_on|bg_date }}</td>
|
||||
<td>{{ object.created_by.username }}</td>
|
||||
<td>{{ object.status }}</td>
|
||||
{% endblock %}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{% extends 'list-crud.html' %}
|
||||
{% load static %}
|
||||
{% load filters %}
|
||||
|
||||
{% block filter %}
|
||||
<form id="filterForm" method="get" style="display: inline;">
|
||||
@@ -24,7 +25,7 @@
|
||||
<td>{{ object.number }}</td>
|
||||
<td>{{ object.container_type }}</td>
|
||||
<td>{{ object.line.short_name }}</td>
|
||||
<td>{{ object.received_on|date:"y.m.d h:m" }}</td>
|
||||
<td>{{ object.received_on|bg_date }}</td>
|
||||
<td>{{ object.position }}</td>
|
||||
<td>{{ object.swept|yesno:"Yes," }}</td>
|
||||
<td>{{ object.washed|yesno:"Yes," }}</td>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{% extends 'common/base.html' %}
|
||||
|
||||
{% load filters %}
|
||||
{% block content %}
|
||||
<form method="POST">
|
||||
{% csrf_token %}
|
||||
@@ -32,8 +32,8 @@
|
||||
<td>{{ container.number }}</td>
|
||||
<td>{{ container.container_type }}</td>
|
||||
<td>{{ container.line.company.short_name }}</td>
|
||||
<td>{{ container.received_on|date:"Y-m-d" }}</td>
|
||||
<td>{{ container.expedited_on|date:"Y-m-d" }}</td>
|
||||
<td>{{ container.received_on|bg_date }}</td>
|
||||
<td>{{ container.expedited_on|bg_date }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
{% extends 'list-crud.html' %}
|
||||
{% load static %}
|
||||
{% load filters %}
|
||||
|
||||
{% block filter %}
|
||||
<form id="filterForm" method="get" style="display: inline;">
|
||||
@@ -25,7 +26,7 @@
|
||||
<td>{{ object.container_number }}</td>
|
||||
<td>{{ object.container_type }}</td>
|
||||
<td>{{ object.line.short_name }}</td>
|
||||
<td>{{ object.created_on }}</td>
|
||||
<td>{{ object.created_on|bg_date }}</td>
|
||||
<td>{{ object.created_by.username }}</td>
|
||||
<td>{{ object.received|yesno:"Received,Pending" }}</td>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user