membershipworks: Fix missing bootstrap CSS in invoice PDFs
This commit is contained in:
parent
6f36a7c8b4
commit
fb005d419f
@ -1,3 +1,3 @@
|
|||||||
import "bootstrap/scss/bootstrap.scss";
|
import "./bootstrap-css-only.entry.ts";
|
||||||
import "bootstrap-icons/font/bootstrap-icons.css";
|
import "bootstrap-icons/font/bootstrap-icons.css";
|
||||||
import "bootstrap";
|
import "bootstrap";
|
||||||
|
1
js/bootstrap-css-only.entry.ts
Normal file
1
js/bootstrap-css-only.entry.ts
Normal file
@ -0,0 +1 @@
|
|||||||
|
import "bootstrap/scss/bootstrap.scss";
|
@ -1,13 +1,13 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% load nh3_tags %}
|
{% load nh3_tags %}
|
||||||
|
{% load django_vite %}
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta name="viewport"
|
<meta name="viewport"
|
||||||
content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||||
<!-- Bootstrap CSS -->
|
{% vite_asset 'js/bootstrap-css-only.entry.ts' %}
|
||||||
<link href="{% static 'bootstrap.min.css' %}" rel="stylesheet">
|
|
||||||
<link rel="stylesheet" href="{% static "membershipworks/css/event_invoice_pdf.css" %}" media="print">
|
<link rel="stylesheet" href="{% static "membershipworks/css/event_invoice_pdf.css" %}" media="print">
|
||||||
{% if preview %}
|
{% if preview %}
|
||||||
<link rel="stylesheet" href="{% static "membershipworks/css/event_invoice_pdf_preview.css" %}" media="print">
|
<link rel="stylesheet" href="{% static "membershipworks/css/event_invoice_pdf_preview.css" %}" media="print">
|
||||||
|
@ -6,6 +6,7 @@ const entry_points = globbySync("*/js/*.entry.ts", { gitignore: true });
|
|||||||
|
|
||||||
const inputs = {
|
const inputs = {
|
||||||
base: "./js/base.entry.ts",
|
base: "./js/base.entry.ts",
|
||||||
|
"bootstrap-css-only": "./js/bootstrap-css-only.entry.ts",
|
||||||
};
|
};
|
||||||
|
|
||||||
for (const entry of entry_points) {
|
for (const entry of entry_points) {
|
||||||
|
Loading…
Reference in New Issue
Block a user