Cleaned up generation strings and added the schem for single runner generations for sponsoring contracts
ref #119
This commit is contained in:
parent
9c867e106e
commit
22b09d16d0
@ -69,7 +69,7 @@
|
|||||||
const url = window.URL.createObjectURL(blob);
|
const url = window.URL.createObjectURL(blob);
|
||||||
let a = document.createElement("a");
|
let a = document.createElement("a");
|
||||||
a.href = url;
|
a.href = url;
|
||||||
a.download = "Sponsorings_" + t.name + ".pdf";
|
a.download = `Sponsorings_${t.name}.pdf`;
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
a.click();
|
a.click();
|
||||||
a.remove();
|
a.remove();
|
||||||
@ -124,7 +124,7 @@
|
|||||||
const url = window.URL.createObjectURL(blob);
|
const url = window.URL.createObjectURL(blob);
|
||||||
let a = document.createElement("a");
|
let a = document.createElement("a");
|
||||||
a.href = url;
|
a.href = url;
|
||||||
a.download = "Sponsorings_" + o.name + ".pdf";
|
a.download = `Sponsorings_${o.name}.pdf`;
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
a.click();
|
a.click();
|
||||||
a.remove();
|
a.remove();
|
||||||
@ -174,7 +174,10 @@
|
|||||||
const url = window.URL.createObjectURL(blob);
|
const url = window.URL.createObjectURL(blob);
|
||||||
let a = document.createElement("a");
|
let a = document.createElement("a");
|
||||||
a.href = url;
|
a.href = url;
|
||||||
a.download = "Sponsoring.pdf";
|
if(generate_runners.length == 1){
|
||||||
|
a.download = `Sponsoring_${generate_runners[0].firstname}_${generate_runners[0].lastname}-${locale}.pdf`;
|
||||||
|
}
|
||||||
|
a.download = `Sponsoring.pdf`;
|
||||||
document.body.appendChild(a);
|
document.body.appendChild(a);
|
||||||
a.click();
|
a.click();
|
||||||
a.remove();
|
a.remove();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user