forked from metaware/angular-invoicing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
130 lines (125 loc) · 5.57 KB
/
index.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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<html>
<head>
<title>Simple Invoicing - Built with AngularJS</title>
<meta name="description" content="AngularJS and Angular Code Example for creating Invoices and Invoicing Application">
<script src="http://code.jquery.com/jquery-1.7.1.js" type="text/javascript"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-23971072-2', 'metaware.github.io');
ga('send', 'pageview');
</script>
</head>
<body ng:app="jqanim" ng:controller="InvoiceController" >
<div id="css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css">
</div>
<div class="container" width="800px" id="invoice" >
<a ng-hide="printMode" href="https://github.com/metaware/angular-invoicing"><img ng-hide="printMode" style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_red_aa0000.png" alt="Fork me on GitHub"></a>
<table class="table">
<tr>
<td align="center" style="background-color:#357EBD;color:#FFF" colspan="2">
INVOICE
</td>
</tr>
<tr>
<td>
<h4>Invoice #<input type="text" id="invoice_number" ng-model="invoice.invoice_number" /></h4>
</td>
<td align="right">
<input type='file' id="imgInp" />
<img ng-hide="logoRemoved" id="company_logo" src="images/metaware_logo.png" alt="your image" width="300" />
<br/>
<div class="noPrint" ng-hide="printMode">
<a ng-click="editLogo()" href >Edit Logo</a>
<a ng-click="removeLogo()" id="remove_logo" href >Remove logo</a>
</div>
</td>
</tr>
</table>
<table class="table">
<tr>
<td>
<div class="infos">
<div><strong><input type="text" ng-model="invoice.customer_info.name"/></strong></div>
<div><input type="text" ng-model="invoice.customer_info.web_link"/></div>
<div><input type="text" ng-model="invoice.customer_info.address1"/></div>
<div><input type="text" ng-model="invoice.customer_info.address2"/></div>
<div><input type="text" ng-model="invoice.customer_info.postal"/></div>
</div>
</td>
<td align="right">
<div class="align-right">
<div><strong><input type="text" ng-model="invoice.company_info.name"/></strong></div>
<div><input type="text" ng-model="invoice.company_info.web_link"/></div>
<div><input type="text" ng-model="invoice.company_info.address1"/></div>
<div><input type="text" ng-model="invoice.company_info.address2"/></div>
<div><input type="text" ng-model="invoice.company_info.postal"/></div>
</div>
</td>
</tr>
</table>
<table class="table table-striped" align="center" >
<tr>
<th></th>
<th>Description</th>
<th>Qty</th>
<th>Cost</th>
<th style="text-align:right;">Total</th>
</tr>
<tr ng:repeat="item in invoice.items" style="display: none" jq:animate="dropdown;250">
<td><a href ng-hide="printMode" ng-click="removeItem(item)" class="btn btn-danger">[X]</a></td>
<td><input ng:model="item.description" placeholder="Description"></td>
<td><input ng:model="item.qty" value="1" size="4" ng:required ng:validate="integer" placeholder="qty"></td>
<td><input ng:model="item.cost" value="0.00" ng:required ng:validate="number" size="6" placeholder="cost"></td>
<td align="right">{{item.cost * item.qty | currency}}</td>
</tr>
<tr ng-hide="printMode">
<td colspan="5"><a class="btn btn-primary" href ng:click="addItem()" >Add Item</a></td>
</tr>
<tr>
<td colspan="4" align="right">
Sub Total
</td>
<td align="right">
{{invoice_sub_total() | currency}}
</td>
</tr>
<tr>
<td colspan="4" align="right">
Tax(%): <input ng:model="invoice.tax" ng:validate="number" style="width:43px">
</td>
<td align="right">
{{calculate_tax() | currency}}
</td>
</tr>
<tr>
<td colspan="4" align="right">
Grand Total:
</td>
<td align="right">
{{calculate_grand_total() | currency}}
</td>
</tr>
</table>
<div class="noPrint">
<a href="#" class="btn btn-primary" ng-show="printMode" ng-click="printInfo()">Print</a>
<a href="#" class="btn btn-primary" ng-click="clearLocalStorage()">Reset</a>
<a href="#" class="btn btn-primary" ng-hide="printMode" ng-click="printMode = true;">Turn On Print Mode</a>
<a href="#" class="btn btn-primary" ng-show="printMode" ng-click="printMode = false;">Turn Off Print Mode</a>
</div>
</div>
<div ng-hide="printMode" class="copy noPrint">
<a href="http://jasdeep.ca/?utm_source=angular_invoicing">Jasdeep Singh</a> &
<a href="http://github.com/manpreetrules">Manpreet Singh</a>
Made with
<span class="love">♥</span> in Toronto by
<a href="http://metawarelabs.com/?utm_source=angular_invoicing">Metaware Labs Inc.</a>
</div>
</body>
</html>