1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-09-20 00:11:35 +02:00
invoiceninja/storage/templates/modern.js

247 lines
6.9 KiB
JavaScript
Raw Normal View History

2015-07-21 20:51:56 +02:00
{
"content": [
{
2015-09-20 23:05:02 +02:00
"columns": [
{
"image": "$accountLogo",
"fit": [120, 80],
"margin": [0, 60, 0, 30]
},
{
"stack": "$clientDetails",
2015-12-29 11:23:50 +01:00
"margin": [0, 80, 0, 0]
2015-09-20 23:05:02 +02:00
}
]
2015-07-21 20:51:56 +02:00
},
{
"style": "invoiceLineItemsTable",
"table": {
"headerRows": 1,
"widths": "$invoiceLineItemColumns",
2015-07-21 20:51:56 +02:00
"body": "$invoiceLineItems"
},
"layout": {
2015-07-26 22:05:38 +02:00
"hLineWidth": "$notFirst:.5",
2015-09-20 23:05:02 +02:00
"vLineWidth": "$notFirstAndLastColumn:.5",
2015-07-21 20:51:56 +02:00
"hLineColor": "#888888",
2015-09-20 23:05:02 +02:00
"vLineColor": "#FFFFFF",
2015-07-26 22:05:38 +02:00
"paddingLeft": "$amount:8",
"paddingRight": "$amount:8",
"paddingTop": "$amount:8",
"paddingBottom": "$amount:8"
2015-07-21 20:51:56 +02:00
}
},
{
"columns": [
"$notesAndTerms",
{
"table": {
"widths": ["*", "40%"],
2015-07-21 20:51:56 +02:00
"body": "$subtotalsWithoutBalance"
},
"layout": {
2015-07-26 22:05:38 +02:00
"hLineWidth": "$none",
"vLineWidth": "$none",
2015-07-29 21:55:12 +02:00
"paddingLeft": "$amount:34",
2015-07-26 22:05:38 +02:00
"paddingRight": "$amount:8",
"paddingTop": "$amount:4",
"paddingBottom": "$amount:4"
2015-07-21 20:51:56 +02:00
}
}
]
},
{
"columns": [
{
"canvas": [
{
"type": "rect",
"x": 0,
"y": 0,
"w": 515,
"h": 26,
"r": 0,
"lineWidth": 1,
2015-09-07 11:07:55 +02:00
"color": "$secondaryColor:#403d3d"
2015-07-21 20:51:56 +02:00
}
],
"width": 10,
"margin": [
0,
10,
0,
0
]
},
{
"text": "$balanceDueLabel",
"style": "balanceDueLabel",
"margin": [0, 16, 0, 0],
"width": 370
},
{
"text": "$balanceDue",
"style": "balanceDue",
"margin": [0, 16, 8, 0]
}
]
} ],
"footer": [
{
"canvas": [
{
2015-07-24 16:13:17 +02:00
"type": "line", "x1": 0, "y1": 0, "x2": 600, "y2": 0,"lineWidth": 100,"lineColor":"$primaryColor:#f26621"
2015-09-20 23:05:02 +02:00
}]
,"width":10
},
{
2015-07-21 20:51:56 +02:00
"columns": [
2015-09-20 23:05:02 +02:00
{
"width": 350,
"stack": [
{
"text": "$invoiceFooter",
"margin": [40, -40, 40, 0],
"alignment": "left",
"color": "#FFFFFF"
}
]
2015-07-21 20:51:56 +02:00
},
{
"stack": "$accountDetails",
"margin": [0, -40, 0, 0],
"width": "*"
},
{
"stack": "$accountAddress",
"margin": [0, -40, 0, 0],
"width": "*"
}
]
}
],
"header": [
{
2015-07-24 16:13:17 +02:00
"canvas": [{ "type": "line", "x1": 0, "y1": 0, "x2": 600, "y2": 0,"lineWidth": 200,"lineColor":"$primaryColor:#f26621"}],"width":10
2015-07-21 20:51:56 +02:00
},
{
"columns": [
{
"text": "$accountName", "bold": true,"fontSize":30,"color":"#ffffff","margin":[40,20,0,0],"width":350
}
]
},
{
"width": 300,
"table": {
"body": "$invoiceDetails"
},
"layout": "noBorders",
"margin": [400, -40, 0, 0]
}
],
"defaultStyle": {
"fontSize": "$fontSize",
"margin": [8, 4, 8, 4]
},
"styles": {
"primaryColor":{
"color": "$primaryColor:#299CC2"
},
"accountName": {
"margin": [4, 2, 4, 2],
"color": "$primaryColor:#299CC2"
},
"accountDetails": {
"margin": [4, 2, 4, 2],
"color": "#FFFFFF"
},
"accountAddress": {
"margin": [4, 2, 4, 2],
"color": "#FFFFFF"
},
"clientDetails": {
"margin": [0, 2, 4, 2]
},
"invoiceDetails": {
"color": "#FFFFFF"
},
"invoiceLineItemsTable": {
"margin": [0, 0, 0, 16]
},
"productKey": {
"bold": true
},
"clientName": {
"bold": true
},
"tableHeader": {
"bold": true,
"color": "#FFFFFF",
2015-09-20 23:05:02 +02:00
"fontSize": "$fontSizeLargest",
"fillColor": "$secondaryColor:#403d3d"
2015-07-21 20:51:56 +02:00
},
2015-09-04 09:20:30 +02:00
"costTableHeader": {
"alignment": "right"
},
"qtyTableHeader": {
"alignment": "right"
},
2015-09-07 11:07:55 +02:00
"taxTableHeader": {
"alignment": "right"
},
2015-09-04 09:20:30 +02:00
"lineTotalTableHeader": {
"alignment": "right"
},
2015-07-21 20:51:56 +02:00
"balanceDueLabel": {
"fontSize": "$fontSizeLargest",
"color":"#FFFFFF",
"alignment":"right",
"bold": true
},
"balanceDue": {
"fontSize": "$fontSizeLargest",
"color":"#FFFFFF",
"bold": true,
"alignment":"right"
},
"cost": {
"alignment": "right"
},
"quantity": {
"alignment": "right"
},
"tax": {
"alignment": "right"
},
"lineTotal": {
"alignment": "right"
},
"subtotals": {
"alignment": "right"
},
"termsLabel": {
"bold": true,
2015-07-24 16:13:17 +02:00
"margin": [0, 0, 0, 4]
2015-07-21 20:51:56 +02:00
},
"invoiceNumberLabel": {
"bold": true
},
"invoiceNumber": {
"bold": true
2015-10-01 22:02:22 +02:00
},
"header": {
"fontSize": "$fontSizeLargest",
"bold": true
},
"subheader": {
"fontSize": "$fontSizeLarger"
2015-12-13 21:12:54 +01:00
},
"help": {
"fontSize": "$fontSizeSmaller",
"color": "#737373"
2015-07-21 20:51:56 +02:00
}
},
"pageMargins": [40, 80, 40, 50]
}