forked from Williano/Invoice-Management-System
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html
102 lines (86 loc) · 3.68 KB
/
base.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{% load static %}
<!DOCTYPE HTML>
<html lang="en">
<head>
<link rel="icon" href="{% static 'invoice/img/favicon.png' %}" type="image/gif" >
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% if title %}
<title>mPedigree Invoice Manager | {{ title }}</title>
{% else %}
<title>mPedigree Invoice Manager</title>
{% endif %}
{% block stylesheets %}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="{% static 'invoice/js/bootstrap.min.js' %}"></script>
<script src="{% static 'invoice/js/bootstrap-datepicker.min.js' %}"></script>
<link rel="stylesheet" type="text/css" href="{% static 'invoice/css/bootstrap.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'invoice/css/bootstrap-theme.min.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'invoice/css/bootstrap-datepicker.min.css' %}">
{% endblock stylesheets %}
</head>
<body>
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="{% url 'invoice:index' %}"><strong>mPedigree</strong> Invoice <strong>Manager</strong></a>
</div>
{% if user.is_authenticated %}
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">Invoices <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{% url 'invoice:new_invoice' %}"><strong>New Invoice</strong></a></li>
<li><a href="{% url 'invoice:index' %}">Recent</a></li>
<li class="divider" role="separator"></li>
<li><a href="{% url 'invoice:all_invoices' %}">List All</a></li>
<li><a href="{% url 'vue_all_invoices' %}">Vuejs All Invoices List</a></li>
<li><a href="{% url 'invoice:invalid_invoices' %}">Invalid Invoices</a></li>
<li><a href="{% url 'invoice:draft_invoices' %}">Draft Invoices</a></li>
<li><a href="{% url 'invoice:paid_invoices' %}">Paid Invoices</a></li>
<li><a href="{% url 'invoice:unpaid_invoices' %}">Unpaid Invoices</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">Customers <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{% url 'invoice:new_customer' %}"><strong>New Customer</strong></a></li>
<li role="separator" class="divider"></li>
<li><a href="{% url 'invoice:customer_list' %}">List All</a></li>
</ul>
</li>
</ul>
<form class="navbar-form navbar-right" action="{% url 'invoice:search_invoice' %}" method="POST">
{% csrf_token %}
<div class="form-group">
<input type="text" class="form-control" placeholder="Invoice Number" name="id">
</div>
<button type="submit" class="btn btn-default">Go</button>
</form>
<ul class="nav navbar-nav navbar-right">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button">Hello, {{ user.username }} <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{% url 'users:logout' %}"><strong>Logout</strong></a></li>
</ul>
</li>
</ul>
</div>
{% endif %}
</div>
</nav>
<div class="container">
{% if messages %}
{% for message in messages %}
<div class="alert alert-{{ message.tags }}">
{{ message }}
</div>
{% endfor %}
{% endif %}
{% block content %}
{% endblock %}
</div>
</body>
</html>