Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add files via upload #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
3 changes: 3 additions & 0 deletions crm1_v3_templates/accounts/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.
5 changes: 5 additions & 0 deletions crm1_v3_templates/accounts/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from django.apps import AppConfig


class AccountsConfig(AppConfig):
name = 'accounts'
Binary file not shown.
3 changes: 3 additions & 0 deletions crm1_v3_templates/accounts/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.
69 changes: 69 additions & 0 deletions crm1_v3_templates/accounts/templates/accounts/customer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{% extends 'accounts/main.html' %}

{% block content %}

<br>

<div class="row">
<div class="col-md">
<div class="card card-body">
<h5>Customer:</h5>
<hr>
<a class="btn btn-outline-info btn-sm btn-block" href="">Update Customer</a>
<a class="btn btn-outline-danger btn-sm btn-block" href="">Delete Customer</a>

</div>
</div>

<div class="col-md">
<div class="card card-body">
<h5>Contact Information</h5>
<hr>
<p>Email: </p>
<p>Phone: </p>
</div>
</div>

<div class="col-md">
<div class="card card-body">
<h5>Total Orders</h5>
<hr>
<h1 style="text-align: center;padding: 10px"></h1>
</div>
</div>
</div>


<br>
<div class="row">
<div class="col">
<div class="card card-body">
<form method="get">

<button class="btn btn-primary" type="submit">Search</button>
</form>
</div>
</div>

</div>
<br>

<div class="row">
<div class="col-md">
<div class="card card-body">
<table class="table table-sm">
<tr>
<th>Product</th>
<th>Category</th>
<th>Date Orderd</th>
<th>Status</th>
<th>Update</th>
<th>Remove</th>
</tr>

</table>
</div>
</div>
</div>

{% endblock %}
47 changes: 47 additions & 0 deletions crm1_v3_templates/accounts/templates/accounts/dashboard.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% extends 'accounts/main.html' %}

{% block content %}

{% include 'accounts/status.html' %}

<br>

<div class="row">
<div class="col-md-5">
<h5>CUSTOMERS:</h5>
<hr>
<div class="card card-body">
<a class="btn btn-primary btn-sm btn-block" href="">Create Customer</a>
<table class="table table-sm">
<tr>
<th></th>
<th>Customer</th>
<th>Orders</th>
</tr>

</table>
</div>
</div>

<div class="col-md-7">
<h5>LAST 5 ORDERS</h5>
<hr>
<div class="card card-body">
<a class="btn btn-primary btn-sm btn-block" href="">Create Order</a>
<table class="table table-sm">
<tr>
<th>Product</th>
<th>Date Orderd</th>
<th>Status</th>
<th>Update</th>
<th>Remove</th>
</tr>

</table>
</div>
</div>

</div>

{% endblock %}

53 changes: 53 additions & 0 deletions crm1_v3_templates/accounts/templates/accounts/main.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>
<html>
<head>
<title>CRM</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">


<style>

#logo{
}

body{
background-color: #ebeff5;
}


#total-orders{
background-color: #4cb4c7;
}


#orders-delivered{
background-color: #7abecc;
}

#orders-pending{
background-color: #7CD1C0;
}




</style>
</head>
<body>
{% include 'accounts/navbar.html' %}
<div class="container-fluid">
{% block content %}



{% endblock %}
</div>
<hr>
<h5>Our footer</h5>

</body>

<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</html>
16 changes: 16 additions & 0 deletions crm1_v3_templates/accounts/templates/accounts/navbar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">Navbar</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav">
<li class="nav-item active">
<a class="nav-link" href="#">Dashboard</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#">Products</a>
</li>
</ul>
</div>
</nav>
26 changes: 26 additions & 0 deletions crm1_v3_templates/accounts/templates/accounts/products.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{% extends 'accounts/main.html' %}

{% block content %}

<br>

<div class="row">
<div class="col-md">
<div class="card card-body">
<h5>Products</h5>
</div>
<div class="card card-body">
<table class="table">
<tr>
<th>Product</th>
<th>Category</th>
<th>Price</th>
</tr>

</table>
</div>
</div>

</div>

{% endblock content %}
42 changes: 42 additions & 0 deletions crm1_v3_templates/accounts/templates/accounts/status.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<br>

<div class="row">
<div class="col">
<div class="col-md">
<div class="card text-center text-white mb-3" id="total-orders">
<div class="card-header">
<h5 class="card-title">Total Orders</h5>
</div>
<div class="card-body">
<h3 class="card-title"></h3>
</div>
</div>
</div>
</div>

<div class="col">
<div class="col-md">
<div class="card text-center text-white mb-3" id="orders-delivered">
<div class="card-header">
<h5 class="card-title">Orders Delivered</h5>
</div>
<div class="card-body">
<h3 class="card-title"></h3>
</div>
</div>
</div>
</div>

<div class="col">
<div class="col-md">
<div class="card text-center text-white mb-3" id="orders-pending">
<div class="card-header">
<h5 class="card-title">Orders Pending</h5>
</div>
<div class="card-body">
<h3 class="card-title"></h3>
</div>
</div>
</div>
</div>
</div>
3 changes: 3 additions & 0 deletions crm1_v3_templates/accounts/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.
9 changes: 9 additions & 0 deletions crm1_v3_templates/accounts/urls.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from django.urls import path
from . import views


urlpatterns = [
path('', views.home),
path('products/', views.products),
path('customer/', views.customer),
]
14 changes: 14 additions & 0 deletions crm1_v3_templates/accounts/views.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
from django.shortcuts import render
from django.http import HttpResponse

# Create your views here.

def home(request):
return render(request, 'accounts/dashboard.html')

def products(request):
return render(request, 'accounts/products.html')

def customer(request):
return render(request, 'accounts/customer.html')

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading