diff --git a/preinfo/models.py b/preinfo/models.py new file mode 100644 index 0000000..427b9f5 --- /dev/null +++ b/preinfo/models.py @@ -0,0 +1,34 @@ +from django.db import models + +# Create your models here. +class PreinfoModel(models.Model): + container_number = models.CharField( + max_length=11, + ) + container_type = models.ForeignKey( + 'common.ContainerTypeModel', + on_delete=models.CASCADE, + related_name='preinfo_container_types', + ) + line = models.ForeignKey( + 'common.LinesModel', + on_delete=models.CASCADE, + related_name='preinfo_lines', + ) + created_on = models.DateTimeField(auto_now_add=True) + created_by = models.ForeignKey( + 'users.DepotUser', + on_delete=models.CASCADE, + related_name='preinfo_created_by', + db_column='created_by_id', # Ensure the column name matches your database schema + ) + deleted = models.BooleanField(default=False, null=False) + deleted_by = models.ForeignKey( + 'users.DepotUser', + on_delete=models.CASCADE, + related_name='preinfo_deleted_by', + db_column='deleted_by_id', # Ensure the column name matches your database schema + null=True, + ) + deleted_on = models.DateTimeField(null=True) + received = models.BooleanField(default=False, null=False) diff --git a/preinfo/views.py b/preinfo/views.py new file mode 100644 index 0000000..91ea44a --- /dev/null +++ b/preinfo/views.py @@ -0,0 +1,3 @@ +from django.shortcuts import render + +# Create your views here. diff --git a/static/images/depot.jpg b/static/images/depot.jpg new file mode 100644 index 0000000..7233258 Binary files /dev/null and b/static/images/depot.jpg differ diff --git a/templates/barrier expedition.html b/templates/barrier expedition.html new file mode 100644 index 0000000..af8ffc0 --- /dev/null +++ b/templates/barrier expedition.html @@ -0,0 +1,926 @@ + + + + + + + + Barrier Staff Interface | Container Depot + + + + + + + + +
+ +
+
+
+

Receive Container

+
+
+
+ + + 3 + + +
+ Gate North +
+
+
+ + +
+
+
+
+

Container Reception

+

Process incoming containers

+
+
+ Gate Open +
+
+
+
+
+
+ +
+ + +
+

Enter the full container number including prefix

+
+ +
+ + +
+
+ + + +
+
+
+ +
+
+

Recent Container Movements

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ContainerTypeLineTimeDirectionStatus
MSCU123456740HCMaersk10:15 AMIN + Complete +
CMAU765432120DVCMA CGM09:42 AMOUT + Complete +
OOLU246813540DVONE09:15 AMIN + Complete +
HLXU135792420RFHapag-Lloyd08:30 AMOUT + Complete +
+
+
+
+
+ + +
+
+
+
+

Container Expedition

+

Process outgoing containers

+
+
+ Gate Open +
+
+
+
+
+
+ +
+ + +
+

Enter the full container number including prefix

+
+ +
+ + +
+
+ + + +
+
+
+ +
+
+

Pending Expedition Orders

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Order IDContainerLinePickup DateTransportActions
ORD-2023-0015MSCU2468135Maersk2023-06-20ABC Trucking + +
ORD-2023-0014Any 40HCMaersk2023-06-19XYZ Logistics + +
ORD-2023-0016CMAU5678901CMA CGM2023-06-21Fast Transport + +
+
+
+
+
+
+ + +
+
+
+

Take Container Photo

+ +
+ +
+
+
+ + + + + + +
+ + +
+
+
+
+
+
+
+ +
+ +
+
+
+ + + + diff --git a/templates/barrier receive found.html b/templates/barrier receive found.html new file mode 100644 index 0000000..af8ffc0 --- /dev/null +++ b/templates/barrier receive found.html @@ -0,0 +1,926 @@ + + + + + + + + Barrier Staff Interface | Container Depot + + + + + + + + +
+ +
+
+
+

Receive Container

+
+
+
+ + + 3 + + +
+ Gate North +
+
+
+ + +
+
+
+
+

Container Reception

+

Process incoming containers

+
+
+ Gate Open +
+
+
+
+
+
+ +
+ + +
+

Enter the full container number including prefix

+
+ +
+ + +
+
+ + + +
+
+
+ +
+
+

Recent Container Movements

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ContainerTypeLineTimeDirectionStatus
MSCU123456740HCMaersk10:15 AMIN + Complete +
CMAU765432120DVCMA CGM09:42 AMOUT + Complete +
OOLU246813540DVONE09:15 AMIN + Complete +
HLXU135792420RFHapag-Lloyd08:30 AMOUT + Complete +
+
+
+
+
+ + +
+
+
+
+

Container Expedition

+

Process outgoing containers

+
+
+ Gate Open +
+
+
+
+
+
+ +
+ + +
+

Enter the full container number including prefix

+
+ +
+ + +
+
+ + + +
+
+
+ +
+
+

Pending Expedition Orders

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Order IDContainerLinePickup DateTransportActions
ORD-2023-0015MSCU2468135Maersk2023-06-20ABC Trucking + +
ORD-2023-0014Any 40HCMaersk2023-06-19XYZ Logistics + +
ORD-2023-0016CMAU5678901CMA CGM2023-06-21Fast Transport + +
+
+
+
+
+
+ + +
+
+
+

Take Container Photo

+ +
+ +
+
+
+ + + + + + +
+ + +
+
+
+
+
+
+
+ +
+ +
+
+
+ + + + diff --git a/templates/barrier receive.html b/templates/barrier receive.html new file mode 100644 index 0000000..af8ffc0 --- /dev/null +++ b/templates/barrier receive.html @@ -0,0 +1,926 @@ + + + + + + + + Barrier Staff Interface | Container Depot + + + + + + + + +
+ +
+
+
+

Receive Container

+
+
+
+ + + 3 + + +
+ Gate North +
+
+
+ + +
+
+
+
+

Container Reception

+

Process incoming containers

+
+
+ Gate Open +
+
+
+
+
+
+ +
+ + +
+

Enter the full container number including prefix

+
+ +
+ + +
+
+ + + +
+
+
+ +
+
+

Recent Container Movements

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ContainerTypeLineTimeDirectionStatus
MSCU123456740HCMaersk10:15 AMIN + Complete +
CMAU765432120DVCMA CGM09:42 AMOUT + Complete +
OOLU246813540DVONE09:15 AMIN + Complete +
HLXU135792420RFHapag-Lloyd08:30 AMOUT + Complete +
+
+
+
+
+ + +
+
+
+
+

Container Expedition

+

Process outgoing containers

+
+
+ Gate Open +
+
+
+
+
+
+ +
+ + +
+

Enter the full container number including prefix

+
+ +
+ + +
+
+ + + +
+
+
+ +
+
+

Pending Expedition Orders

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Order IDContainerLinePickup DateTransportActions
ORD-2023-0015MSCU2468135Maersk2023-06-20ABC Trucking + +
ORD-2023-0014Any 40HCMaersk2023-06-19XYZ Logistics + +
ORD-2023-0016CMAU5678901CMA CGM2023-06-21Fast Transport + +
+
+
+
+
+
+ + +
+
+
+

Take Container Photo

+ +
+ +
+
+
+ + + + + + +
+ + +
+
+
+
+
+
+
+ +
+ +
+
+
+ + + + diff --git a/templates/client-dashboard.html b/templates/client-dashboard.html new file mode 100644 index 0000000..f2169b9 --- /dev/null +++ b/templates/client-dashboard.html @@ -0,0 +1,689 @@ + + + + + + + + Line Operator Dashboard | Container Depot + + + + + + + + +
+ +
+
+
+

Dashboard

+
+
+ + +
+
+
+ + +
+ +
+
+
+
+
+ + + +
+
+

Active Containers

+

42

+

+3 since last week

+
+
+
+ +
+
+
+ + + +
+
+

Preinfo Sent

+

18

+

+5 since last week

+
+
+
+ +
+
+
+ + + +
+
+

Pending Orders

+

7

+

2 require attention

+
+
+
+
+ +
+
+
+

Recent Container Activity

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ContainerTypeStatusDate
MSCU123456740HC + Received + 2023-06-15
MSCU765432120DV + Preinfo + 2023-06-14
MSCU246813540DV + Order + 2023-06-13
MSCU135792420RF + Expedited + 2023-06-12
+
+
+
+ +
+
+

Payment Status

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
InvoiceAmountStatusDue Date
INV-2023-0042$1,250.00 + Paid + 2023-06-10
INV-2023-0041$875.50 + Pending + 2023-06-20
INV-2023-0040$2,100.00 + Overdue + 2023-06-05
INV-2023-0039$950.25 + Paid + 2023-05-28
+
+
+
+
+
+ + +
+
+
+

Submit Container Preinfo

+

Provide information about containers that will arrive at the depot

+
+
+
+
+
+ + +

Enter the full container number including prefix

+
+ +
+ + +
+
+ +
+
+ + +
+ +
+ + +
+
+ +
+ + +
+ +
+ + +
+ + + +
+ + +
+
+
+
+ +
+
+

Recent Preinfo Submissions

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ContainerTypeEst. ArrivalStatusActions
MSCU765432120DV2023-06-18 + Pending + + + +
MSCU987654340HC2023-06-17 + Received + + +
MSCU112233420RF2023-06-16 + Delayed + + + +
+
+
+
+
+ + +
+
+
+

Create Expedition Order

+

Request containers to be expedited from the depot

+
+
+
+
+ +
+
+ + +
+
+ + +
+
+
+ +
+ + +

Enter the full container number including prefix

+
+ + + +
+
+ + +
+ +
+ + +
+
+ +
+ +
+ + +
+
+ +
+ + +
+ +
+ +
+
+
+
+ +
+
+

Active Expedition Orders

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Order IDContainerPickup DateStatusActions
ORD-2023-0015MSCU24681352023-06-20 + Approved + + + +
ORD-2023-0014Any 40HC2023-06-19 + Pending + + + +
ORD-2023-0013MSCU13579242023-06-15 + Completed + + +
+
+
+
+
+
+
+ + + + diff --git a/templates/client-order.html b/templates/client-order.html new file mode 100644 index 0000000..f2169b9 --- /dev/null +++ b/templates/client-order.html @@ -0,0 +1,689 @@ + + + + + + + + Line Operator Dashboard | Container Depot + + + + + + + + +
+ +
+
+
+

Dashboard

+
+
+ + +
+
+
+ + +
+ +
+
+
+
+
+ + + +
+
+

Active Containers

+

42

+

+3 since last week

+
+
+
+ +
+
+
+ + + +
+
+

Preinfo Sent

+

18

+

+5 since last week

+
+
+
+ +
+
+
+ + + +
+
+

Pending Orders

+

7

+

2 require attention

+
+
+
+
+ +
+
+
+

Recent Container Activity

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ContainerTypeStatusDate
MSCU123456740HC + Received + 2023-06-15
MSCU765432120DV + Preinfo + 2023-06-14
MSCU246813540DV + Order + 2023-06-13
MSCU135792420RF + Expedited + 2023-06-12
+
+
+
+ +
+
+

Payment Status

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
InvoiceAmountStatusDue Date
INV-2023-0042$1,250.00 + Paid + 2023-06-10
INV-2023-0041$875.50 + Pending + 2023-06-20
INV-2023-0040$2,100.00 + Overdue + 2023-06-05
INV-2023-0039$950.25 + Paid + 2023-05-28
+
+
+
+
+
+ + +
+
+
+

Submit Container Preinfo

+

Provide information about containers that will arrive at the depot

+
+
+
+
+
+ + +

Enter the full container number including prefix

+
+ +
+ + +
+
+ +
+
+ + +
+ +
+ + +
+
+ +
+ + +
+ +
+ + +
+ + + +
+ + +
+
+
+
+ +
+
+

Recent Preinfo Submissions

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ContainerTypeEst. ArrivalStatusActions
MSCU765432120DV2023-06-18 + Pending + + + +
MSCU987654340HC2023-06-17 + Received + + +
MSCU112233420RF2023-06-16 + Delayed + + + +
+
+
+
+
+ + +
+
+
+

Create Expedition Order

+

Request containers to be expedited from the depot

+
+
+
+
+ +
+
+ + +
+
+ + +
+
+
+ +
+ + +

Enter the full container number including prefix

+
+ + + +
+
+ + +
+ +
+ + +
+
+ +
+ +
+ + +
+
+ +
+ + +
+ +
+ +
+
+
+
+ +
+
+

Active Expedition Orders

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Order IDContainerPickup DateStatusActions
ORD-2023-0015MSCU24681352023-06-20 + Approved + + + +
ORD-2023-0014Any 40HC2023-06-19 + Pending + + + +
ORD-2023-0013MSCU13579242023-06-15 + Completed + + +
+
+
+
+
+
+
+ + + + diff --git a/templates/client-preinfo.html b/templates/client-preinfo.html new file mode 100644 index 0000000..f2169b9 --- /dev/null +++ b/templates/client-preinfo.html @@ -0,0 +1,689 @@ + + + + + + + + Line Operator Dashboard | Container Depot + + + + + + + + +
+ +
+
+
+

Dashboard

+
+
+ + +
+
+
+ + +
+ +
+
+
+
+
+ + + +
+
+

Active Containers

+

42

+

+3 since last week

+
+
+
+ +
+
+
+ + + +
+
+

Preinfo Sent

+

18

+

+5 since last week

+
+
+
+ +
+
+
+ + + +
+
+

Pending Orders

+

7

+

2 require attention

+
+
+
+
+ +
+
+
+

Recent Container Activity

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ContainerTypeStatusDate
MSCU123456740HC + Received + 2023-06-15
MSCU765432120DV + Preinfo + 2023-06-14
MSCU246813540DV + Order + 2023-06-13
MSCU135792420RF + Expedited + 2023-06-12
+
+
+
+ +
+
+

Payment Status

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
InvoiceAmountStatusDue Date
INV-2023-0042$1,250.00 + Paid + 2023-06-10
INV-2023-0041$875.50 + Pending + 2023-06-20
INV-2023-0040$2,100.00 + Overdue + 2023-06-05
INV-2023-0039$950.25 + Paid + 2023-05-28
+
+
+
+
+
+ + +
+
+
+

Submit Container Preinfo

+

Provide information about containers that will arrive at the depot

+
+
+
+
+
+ + +

Enter the full container number including prefix

+
+ +
+ + +
+
+ +
+
+ + +
+ +
+ + +
+
+ +
+ + +
+ +
+ + +
+ + + +
+ + +
+
+
+
+ +
+
+

Recent Preinfo Submissions

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ContainerTypeEst. ArrivalStatusActions
MSCU765432120DV2023-06-18 + Pending + + + +
MSCU987654340HC2023-06-17 + Received + + +
MSCU112233420RF2023-06-16 + Delayed + + + +
+
+
+
+
+ + +
+
+
+

Create Expedition Order

+

Request containers to be expedited from the depot

+
+
+
+
+ +
+
+ + +
+
+ + +
+
+
+ +
+ + +

Enter the full container number including prefix

+
+ + + +
+
+ + +
+ +
+ + +
+
+ +
+ +
+ + +
+
+ +
+ + +
+ +
+ +
+
+
+
+ +
+
+

Active Expedition Orders

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Order IDContainerPickup DateStatusActions
ORD-2023-0015MSCU24681352023-06-20 + Approved + + + +
ORD-2023-0014Any 40HC2023-06-19 + Pending + + + +
ORD-2023-0013MSCU13579242023-06-15 + Completed + + +
+
+
+
+
+
+
+ + + + diff --git a/templates/depot-main.html b/templates/depot-main.html new file mode 100644 index 0000000..eb6b241 --- /dev/null +++ b/templates/depot-main.html @@ -0,0 +1,1078 @@ + + + + + + + + Depot Management Interface | Container Depot + + + + + + + + +
+ +
+
+
+

Dashboard

+
+
+
+ + + 5 + + +
+
+ + +
+
+
+
+ + +
+
+
+
+
+ + + +
+
+

Total Containers

+

247

+
+
+
+
+ + + + + 12% + + from last month +
+
+
+ +
+
+
+ + + +
+
+

Available Capacity

+

68%

+
+
+
+
+ + + + + 5% + + from last week +
+
+
+ +
+
+
+ + + +
+
+

Avg. Dwell Time

+

14.3 days

+
+
+
+
+ + + + + 2.1 days + + improvement +
+
+
+ +
+
+
+ + + +
+
+

Damaged Containers

+

18

+
+
+
+
+ + + + + 3 + + new this week +
+
+
+
+ +
+
+
+
+

Container Movement

+

Daily gate activity

+
+
+ + + +
+
+
+
+
+
12
+
Mon
+
+
+
8
+
Tue
+
+
+
15
+
Wed
+
+
+
10
+
Thu
+
+
+
18
+
Fri
+
+
+
6
+
Sat
+
+
+
4
+
Sun
+
+ +
+
10
+
Mon
+
+
+
7
+
Tue
+
+
+
13
+
Wed
+
+
+
9
+
Thu
+
+
+
16
+
Fri
+
+
+
5
+
Sat
+
+
+
3
+
Sun
+
+
+ +
+
+
+ Gate In +
+
+
+ Gate Out +
+
+
+
+ +
+
+

Container Types

+

Current inventory

+
+
+
+
+
+ 40' High Cube (40HC) + 42% +
+
+
+
+
+ +
+
+ 40' Dry Van (40DV) + 28% +
+
+
+
+
+ +
+
+ 20' Dry Van (20DV) + 18% +
+
+
+
+
+ +
+
+ Reefer Containers + 8% +
+
+
+
+
+ +
+
+ Special Types + 4% +
+
+
+
+
+
+ +
+

Container Conditions

+
+
+
Good Condition
+
204
+
+
+
Minor Damage
+
25
+
+
+
Major Damage
+
18
+
+
+
In Repair
+
12
+
+
+
+
+
+
+ +
+
+
+
+

Recent Activity

+

Latest container movements

+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ContainerTypeLineTimeActivityStatus
MSCU123456740HCMaersk10:15 AMGate In + Complete +
CMAU765432120DVCMA CGM09:42 AMGate Out + Complete +
OOLU246813540DVONE09:15 AMRepositioned + Complete +
HLXU135792420RFHapag-Lloyd08:30 AMGate Out + Complete +
MSCU987654340HCMaerskYesterdayRepair Started + In Progress +
+
+
+
+ +
+
+

Upcoming Tasks

+

Scheduled operations

+
+
+
    +
  • +
    + + + +
    +
    +

    Container Pickup

    +

    MSCU2468135 - ABC Trucking

    +

    Today, 2:30 PM

    +
    +
    + Scheduled +
    +
  • + +
  • +
    + + + +
    +
    +

    Container Inspection

    +

    Block B - 15 containers

    +

    Tomorrow, 9:00 AM

    +
    +
    + Pending +
    +
  • + +
  • +
    + + + +
    +
    +

    Inventory Audit

    +

    Monthly verification

    +

    Jun 30, 10:00 AM

    +
    +
    + Confirmed +
    +
  • + +
  • +
    + + + +
    +
    +

    Staff Meeting

    +

    Operations review

    +

    Jun 28, 2:00 PM

    +
    +
    + Scheduled +
    +
  • +
+ +
+

Alerts

+
    +
  • +
    + + + +
    +
    +

    Block A capacity at 92% - consider reorganization

    +
    +
  • +
  • +
    + + + +
    +
    +

    3 reefer containers require maintenance

    +
    +
  • +
+
+
+
+
+
+ + +
+
+
+
+

Yard Overview

+

Visual representation of container positions

+
+
+ + +
+
+
+
+
+
+ Empty +
+
+
+ Occupied +
+
+
+ Damaged +
+
+
+ In Repair +
+
+
+ Reserved +
+
+ +
+
+
+
+
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
+ +
+
A
+
+
+ A1 +
MSCU1234567 (40HC)
+
+
+
+ A2 +
CMAU7654321 (20DV)
+
+
+ A3 +
Empty Position
+
+
+
+ A4 +
OOLU2468135 (40DV)
+
+
+
+ A5 +
HLXU1357924 (20RF)
+
+
+ A6 +
Empty Position
+
+
+
+ A7 +
MSCU9876543 (40HC)
+
+
+ A8 +
Empty Position
+
+
+
+ A9 +
CMAU1122334 (20DV)
+
+
+
+ A10 +
OOLU5566778 (40DV) - Damaged
+
+
+ +
+
B
+
+
+ B1 +
HLXU9988776 (40RF)
+
+
+ B2 +
Empty Position
+
+
+
+ B3 +
MSCU5544332 (40HC)
+
+
+
+ B4 +
CMAU3322114 (20DV) - In Repair
+
+
+
+ B5 +
OOLU7766554 (40DV)
+
+
+ B6 +
Empty Position
+
+
+
+ B7 +
HLXU3344556 (20RF) - Damaged
+
+
+
+ B8 +
MSCU7788990 (40HC)
+
+
+ B9 +
Empty Position
+
+
+
+ B10 +
CMAU1122334 (20DV)
+
+
+ +
+
C
+
+ C1 +
Empty Position
+
+
+
+ C2 +
OOLU9988776 (40DV)
+
+
+
+ C3 +
HLXU5544332 (40RF) - In Repair
+
+
+
+ C4 +
MSCU3322114 (40HC)
+
+
+ C5 +
Empty Position
+
+
+
+ C6 +
CMAU7766554 (20DV)
+
+
+ C7 +
Empty Position
+
+
+
+ C8 +
OOLU3344556 (40DV)
+
+
+
+ C9 +
HLXU7788990 (20RF) - Damaged
+
+
+ C10 +
Empty Position
+
+
+ +
+
D
+
+
+ D1 +
MSCU1122334 (40HC)
+
+
+ D2 +
Empty Position
+
+
+
+ D3 +
CMAU9988776 (20DV)
+
+
+ D4 +
Empty Position
+
+
+
+ D5 +
OOLU5544332 (40DV) - In Repair
+
+
+
+ D6 +
HLXU3322114 (40RF)
+
+
+ D7 +
Empty Position
+
+
+
+ D8 +
MSCU7766554 (40HC)
+
+
+ D9 +
Empty Position
+
+
+
+ D10 +
CMAU3344556 (20DV) - Reserved
+
+
+ +
+
E
+
+ E1 \ No newline at end of file diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..f2169b9 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,689 @@ + + + + + + + + Line Operator Dashboard | Container Depot + + + + + + + + +
+ +
+
+
+

Dashboard

+
+
+ + +
+
+
+ + +
+ +
+
+
+
+
+ + + +
+
+

Active Containers

+

42

+

+3 since last week

+
+
+
+ +
+
+
+ + + +
+
+

Preinfo Sent

+

18

+

+5 since last week

+
+
+
+ +
+
+
+ + + +
+
+

Pending Orders

+

7

+

2 require attention

+
+
+
+
+ +
+
+
+

Recent Container Activity

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ContainerTypeStatusDate
MSCU123456740HC + Received + 2023-06-15
MSCU765432120DV + Preinfo + 2023-06-14
MSCU246813540DV + Order + 2023-06-13
MSCU135792420RF + Expedited + 2023-06-12
+
+
+
+ +
+
+

Payment Status

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
InvoiceAmountStatusDue Date
INV-2023-0042$1,250.00 + Paid + 2023-06-10
INV-2023-0041$875.50 + Pending + 2023-06-20
INV-2023-0040$2,100.00 + Overdue + 2023-06-05
INV-2023-0039$950.25 + Paid + 2023-05-28
+
+
+
+
+
+ + +
+
+
+

Submit Container Preinfo

+

Provide information about containers that will arrive at the depot

+
+
+
+
+
+ + +

Enter the full container number including prefix

+
+ +
+ + +
+
+ +
+
+ + +
+ +
+ + +
+
+ +
+ + +
+ +
+ + +
+ + + +
+ + +
+
+
+
+ +
+
+

Recent Preinfo Submissions

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ContainerTypeEst. ArrivalStatusActions
MSCU765432120DV2023-06-18 + Pending + + + +
MSCU987654340HC2023-06-17 + Received + + +
MSCU112233420RF2023-06-16 + Delayed + + + +
+
+
+
+
+ + +
+
+
+

Create Expedition Order

+

Request containers to be expedited from the depot

+
+
+
+
+ +
+
+ + +
+
+ + +
+
+
+ +
+ + +

Enter the full container number including prefix

+
+ + + +
+
+ + +
+ +
+ + +
+
+ +
+ +
+ + +
+
+ +
+ + +
+ +
+ +
+
+
+
+ +
+
+

Active Expedition Orders

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Order IDContainerPickup DateStatusActions
ORD-2023-0015MSCU24681352023-06-20 + Approved + + + +
ORD-2023-0014Any 40HC2023-06-19 + Pending + + + +
ORD-2023-0013MSCU13579242023-06-15 + Completed + + +
+
+
+
+
+
+
+ + + + diff --git a/templates/login - test.html b/templates/login - test.html new file mode 100644 index 0000000..79bab41 --- /dev/null +++ b/templates/login - test.html @@ -0,0 +1,354 @@ + + + + + + + + Container Depot Management System + + + + +
+ + + + + + \ No newline at end of file diff --git a/templates/login.html b/templates/login.html new file mode 100644 index 0000000..aaf32d5 --- /dev/null +++ b/templates/login.html @@ -0,0 +1,172 @@ + + + + + + + + Container Depot Management System + + + + +
+ + + + + + diff --git a/templates/logintest.html b/templates/logintest.html new file mode 100644 index 0000000..460414f --- /dev/null +++ b/templates/logintest.html @@ -0,0 +1,114 @@ +{% load static %} + + + + + + Container Depot Management System + + + +{# {{ title|default:"Container Depot Management System" }} {{ description|default:"Login to the Container Depot Management System" }}#} +
+
+ + + + \ No newline at end of file diff --git a/templates/test-gmaps.html b/templates/test-gmaps.html new file mode 100644 index 0000000..8394330 --- /dev/null +++ b/templates/test-gmaps.html @@ -0,0 +1,45 @@ + + + + + Title + + + +
+
+
+ +
+ © 2025 Kikimor EOOD | K-DepoT - All rights reserved. +
+ + + + + + \ No newline at end of file diff --git a/templates/test.html b/templates/test.html new file mode 100644 index 0000000..a27db07 --- /dev/null +++ b/templates/test.html @@ -0,0 +1,342 @@ + + + + + + Container Depot Management System + + + +
+ + + + + + \ No newline at end of file diff --git a/users/models.py b/users/models.py new file mode 100644 index 0000000..abb6a9a --- /dev/null +++ b/users/models.py @@ -0,0 +1,21 @@ +from django.contrib.auth.models import AbstractUser +from django.db import models + +class DepotUser(AbstractUser): + USER_TYPES = ( + ('management', 'Management'), + ('barrier', 'Barrier Staff'), + ('client', 'Client'), + ) + user_type = models.CharField(max_length=20, choices=USER_TYPES, default='client') + + # Add any other fields you want + phone_number = models.CharField(max_length=15, blank=True, null=True) + email = models.EmailField(unique=True, blank=False, null=False) + line = models.ForeignKey( + 'common.LinesModel', + on_delete=models.CASCADE, + related_name='user_lines', + blank=True, + null=True + ) \ No newline at end of file diff --git a/users/views.py b/users/views.py new file mode 100644 index 0000000..d0a8dcc --- /dev/null +++ b/users/views.py @@ -0,0 +1,12 @@ +from django.shortcuts import render +from django.urls import reverse_lazy +from django.views.generic import TemplateView, FormView + +from users.forms import LoginForm + + +# Create your views here. +class LoginView(FormView): + template_name = 'logintest.html' + success_url = reverse_lazy('dashboard') + form_class = LoginForm \ No newline at end of file