Skip to content

Commit

Permalink
added maitain page
Browse files Browse the repository at this point in the history
  • Loading branch information
anurag6569201 committed Jul 27, 2024
1 parent bb1ed59 commit 34e62b2
Show file tree
Hide file tree
Showing 35 changed files with 165 additions and 7 deletions.
Binary file modified .DS_Store
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h3>Location Tracking</h3>
<div class="vehicle_para">
<h3>Status Monitoring in Asset Management</h3>
<p>Status Monitoring is a crucial component of asset management that involves tracking and recording the operational state of assets throughout their lifecycle. This ensures that all assets, such as vehicles and machinery, are functioning efficiently and any issues are addressed promptly. Here's an overview of how status monitoring can be implemented and its significance</p>
<a class="view_list" href="{% url 'assets_manage:asset_status' %}">View Vehicle Inventory</a>
<a class="view_list" href="{% url 'assets_manage:asset_status' %}">View Vehicle Status</a>
</div>
</div>
<div class="col-md-6 vehicle_para_img p-0">
Expand Down
Binary file modified blinklog/__pycache__/settings.cpython-312.pyc
Binary file not shown.
Binary file modified blinklog/__pycache__/urls.cpython-312.pyc
Binary file not shown.
Binary file modified blinklog/__pycache__/wsgi.cpython-312.pyc
Binary file not shown.
1 change: 1 addition & 0 deletions blinklog/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@

# custom apps
'assets_manage',
'maintain',
]

MIDDLEWARE = [
Expand Down
1 change: 1 addition & 0 deletions blinklog/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@

# custom apps
path('assets_manage/',include('assets_manage.urls')),
path('maintain/',include('maintain.urls')),
]

urlpatterns += static(settings.STATIC_URL,document_root=settings.STATIC_ROOT)
Expand Down
2 changes: 1 addition & 1 deletion core/static/core/css/welcome.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@font-face {
font-family: 'CustomFont';
src: url('../fonts/Gazpacho.ttf') format('truetype');
src: url('../') format('truetype');
}
/* navbar */
.navbar{
Expand Down
5 changes: 5 additions & 0 deletions core/static/core/image/settings.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 10 additions & 5 deletions core/templates/core/app/welcome.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,16 @@ <h1 class="feature-main-text">IMC <span>Inventory</span></h1>
</a>
</div>
<div class="feature col-md-12">
<div class="feature-content feature-content2">
<div class="main-text-li">
<span class="text-features"></span>
</div>
</div>
<a href="{% url 'maintain:maintain' %}">
<div class="feature-content feature-content1">
<div class="main-text-li">
<span class="text-features">Maintenance Management</span>
<div style="display: flex;align-items: center;justify-content: center;">
<img src="../../../static/core/image/settings.svg" alt="" style="margin-top: 0;">
</div>
</div>
</div>
</a>
</div>
<div class="feature col-md-12">
<div class="feature-content"></div>
Expand Down
Empty file added maintain/__init__.py
Empty file.
Binary file added maintain/__pycache__/__init__.cpython-312.pyc
Binary file not shown.
Binary file added maintain/__pycache__/admin.cpython-312.pyc
Binary file not shown.
Binary file added maintain/__pycache__/apps.cpython-312.pyc
Binary file not shown.
Binary file added maintain/__pycache__/models.cpython-312.pyc
Binary file not shown.
Binary file added maintain/__pycache__/urls.cpython-312.pyc
Binary file not shown.
Binary file added maintain/__pycache__/views.cpython-312.pyc
Binary file not shown.
3 changes: 3 additions & 0 deletions maintain/admin.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.contrib import admin

# Register your models here.
6 changes: 6 additions & 0 deletions maintain/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
from django.apps import AppConfig


class MaintainConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'maintain'
Empty file added maintain/migrations/__init__.py
Empty file.
Binary file not shown.
3 changes: 3 additions & 0 deletions maintain/models.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.db import models

# Create your models here.
21 changes: 21 additions & 0 deletions maintain/static/maintain/css/maintain.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.view_list{
text-decoration: none;
border: 1px solid grey;
padding: 5px 10px;
background-color: white;
border-radius: 5px;
color: #236aa9;
font-weight: 600;
}
.view_list:hover{
background-color: #236aa9;
color: white;
}
.vehicle_para{
padding: 20px;
}
.vehicle_para_img{
display: flex;
justify-content: right;
align-items: baseline;
}
6 changes: 6 additions & 0 deletions maintain/static/maintain/image/history.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions maintain/static/maintain/image/mail.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions maintain/static/maintain/image/manage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions maintain/static/maintain/image/repair.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
56 changes: 56 additions & 0 deletions maintain/templates/maintain/app/maintain.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{% extends 'maintain/partial/base.html' %}
{% load static %}
{% block index %}

<div class="container-fluid">
<div class="row">
<div class="col-md-6">
<div class="vehicle_para">
<h3>Automated Reminders</h3>
<p>Set up automated reminders for routine maintenance tasks. Schedule periodic checks and alerts to ensure timely maintenance.</p>
<a class="view_list" href="">View Reminders</a>
</div>
</div>
<div class="col-md-6 vehicle_para_img p-0" style="justify-content: center;">
<img height="200px" src="../../../static/maintain/image/mail.svg" alt="">
</div>
</div>
<div class="row">
<div class="col-md-6 vehicle_para_img p-0" style="justify-content: center;">
<img height="200px" src="../../../static/maintain/image/repair.svg" alt="">
</div>
<div class="col-md-6">
<div class="vehicle_para">
<h3>Log Repair Activities</h3>
<p>Track all repair activities including costs and downtime.Maintain records of repairs to monitor asset performance and costs.</p>
<a class="view_list" href="">View Activities</a>
</div>
</div>
</div>
<div class="row">
<div class="col-md-6">
<div class="vehicle_para">
<h3>Maintain Service History</h3>
<p>Keep a detailed history of all maintenance and repairs performed on each asset.Access historical data for analysis and decision-making.</p>
<a class="view_list" href="">View History</a>
</div>
</div>
<div class="col-md-6 vehicle_para_img p-0" style="justify-content: center;">
<img height="170px" src="../../../static/maintain/image/history.svg" alt="">
</div>
</div>
<div class="row">
<div class="col-md-6 vehicle_para_img p-0" style="justify-content: center;">
<img height="170px" src="../../../static/maintain/image/manage.svg" alt="">
</div>
<div class="col-md-6">
<div class="vehicle_para">
<h3>Manage Inventory</h3>
<p>Track and manage inventory of equipment and parts.Monitor stock levels and manage orders to ensure availability.</p>
<a class="view_list" href="">View Inventory</a>
</div>
</div>
</div>
</div>

{% endblock index %}
3 changes: 3 additions & 0 deletions maintain/templates/maintain/elements/script.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% load static %}
<!-- maintain js -->
<script src="{% static 'maintain/js/maintain.js' %}"></script>
3 changes: 3 additions & 0 deletions maintain/templates/maintain/elements/style.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{% load static %}
<!-- maintain css -->
<link rel="stylesheet" href="{% static 'maintain/css/maintain.css' %}">
15 changes: 15 additions & 0 deletions maintain/templates/maintain/partial/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{% extends 'core/partial/main-base.html' %}
{% load static %}

{% block appstyling %}
{% include 'maintain/elements/style.html' %}
{% endblock appstyling %}

{% block mainapp %}
{% block index %}
{% endblock index %}
{% endblock mainapp %}

{% block appscripting %}
{% include 'maintain/elements/script.html' %}
{% endblock appscripting %}
3 changes: 3 additions & 0 deletions maintain/tests.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from django.test import TestCase

# Create your tests here.
8 changes: 8 additions & 0 deletions maintain/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from django.urls import path
from maintain import views

app_name='maintain'

urlpatterns=[
path('',views.maintain,name='maintain'),
]
7 changes: 7 additions & 0 deletions maintain/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from django.shortcuts import render

def maintain(request):
context={

}
return render(request,'maintain/app/maintain.html',context)

0 comments on commit 34e62b2

Please sign in to comment.