mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
WIP: set invoice_prefix from the UI
This commit is contained in:
parent
2d0e201cb7
commit
b66cb5d334
@ -53,6 +53,13 @@ Application.Controllers.controller('InvoicesController', ['$scope', '$state', 'I
|
||||
// Default invoices ordering/sorting
|
||||
$scope.orderInvoice = '-reference';
|
||||
|
||||
// Invoice PDF filename settings (and example)
|
||||
$scope.file = {
|
||||
prefix: 'Fablab_demo-facture',
|
||||
nextId: 40,
|
||||
date: moment().format('DDMMYYYY')
|
||||
}
|
||||
|
||||
// Invoices parameters
|
||||
$scope.invoice = {
|
||||
logo: null,
|
||||
|
@ -8,6 +8,28 @@
|
||||
color: red;
|
||||
}
|
||||
|
||||
.invoice-file {
|
||||
text-align: center;
|
||||
line-height: 4em;
|
||||
margin-top: 2em;
|
||||
|
||||
.fa-file-pdf-o {
|
||||
font-size: 4em;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.filename {
|
||||
font-size: 1.1em;
|
||||
vertical-align: middle;
|
||||
margin-left: 1em;
|
||||
|
||||
.prefix:hover {
|
||||
background-color: $yellow;
|
||||
overflow-x: hidden;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.invoice-placeholder {
|
||||
width: 80%;
|
||||
max-width: 800px;
|
||||
|
@ -2,6 +2,10 @@
|
||||
<i class="fa fa-warning m-r"></i>
|
||||
<span translate>{{ 'app.admin.invoices.warning_invoices_disabled' }}</span>
|
||||
</div>
|
||||
<div class="invoice-file">
|
||||
<i class="fa fa-file-pdf-o" aria-hidden="true"></i>
|
||||
<span class="filename"><span class="prefix">{{file.prefix}}</span>-{{file.nextId}}_{{file.date}}.pdf</span>
|
||||
</div>
|
||||
<form class="invoice-placeholder">
|
||||
<div class="invoice-logo">
|
||||
<img src="data:image/png;base64," data-src="holder.js/100%x100%/text:/font:FontAwesome/icon" bs-holder ng-if="!invoice.logo" class="img-responsive">
|
||||
|
Loading…
x
Reference in New Issue
Block a user