feat: pdf generation
This commit is contained in:
BIN
src/main/webapp/public/blank-profile-picture.png
Normal file
BIN
src/main/webapp/public/blank-profile-picture.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 36 KiB |
@@ -4,7 +4,7 @@ import {useFetch} from "../hooks/useFetch.js";
|
||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||
import {
|
||||
faCalendarDay,
|
||||
faEnvelope, faFlag,
|
||||
faEnvelope, faFilePdf, faFlag,
|
||||
faInfoCircle,
|
||||
faMars,
|
||||
faMarsAndVenus,
|
||||
@@ -77,6 +77,13 @@ function PhotoCard({data}) {
|
||||
alt="avatar"
|
||||
className="rounded-circle img-fluid" style={{object_fit: 'contain'}}/>
|
||||
</div>
|
||||
|
||||
<a href={`${vite_url}/api/member/me/licence`} target='#'>
|
||||
<button className="btn btn-primary" type="button" id="button-addon1"
|
||||
onClick={e => null}>
|
||||
Téléchargée la licence <FontAwesomeIcon icon={faFilePdf}></FontAwesomeIcon>
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>;
|
||||
}
|
||||
|
||||
@@ -9,6 +9,8 @@ import {LicenceCard} from "./LicenceCard.jsx";
|
||||
import {toast} from "react-toastify";
|
||||
import {apiAxios, errFormater} from "../../../utils/Tools.js";
|
||||
import {ConfirmDialog} from "../../../components/ConfirmDialog.jsx";
|
||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||
import {faFilePdf} from "@fortawesome/free-solid-svg-icons";
|
||||
|
||||
const vite_url = import.meta.env.VITE_URL;
|
||||
|
||||
@@ -83,6 +85,12 @@ function PhotoCard({data}) {
|
||||
alt="avatar"
|
||||
className="rounded-circle img-fluid" style={{object_fit: 'contain'}}/>
|
||||
</div>
|
||||
<a href={`${vite_url}/api/member/${data.id}/licence`} target='#'>
|
||||
<button className="btn btn-primary" type="button" id="button-addon1"
|
||||
onClick={e => null}>
|
||||
Téléchargée la licence <FontAwesomeIcon icon={faFilePdf}></FontAwesomeIcon>
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>;
|
||||
}
|
||||
|
||||
@@ -8,6 +8,8 @@ import {LicenceCard} from "./LicenceCard.jsx";
|
||||
import {ConfirmDialog} from "../../../components/ConfirmDialog.jsx";
|
||||
import {apiAxios, errFormater} from "../../../utils/Tools.js";
|
||||
import {toast} from "react-toastify";
|
||||
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
|
||||
import {faFilePdf} from "@fortawesome/free-solid-svg-icons";
|
||||
|
||||
const vite_url = import.meta.env.VITE_URL;
|
||||
|
||||
@@ -81,6 +83,12 @@ function PhotoCard({data}) {
|
||||
alt="avatar"
|
||||
className="rounded-circle img-fluid" style={{object_fit: 'contain'}}/>
|
||||
</div>
|
||||
<a href={`${vite_url}/api/member/${data.id}/licence`} target='#'>
|
||||
<button className="btn btn-primary" type="button" id="button-addon1"
|
||||
onClick={e => null}>
|
||||
Téléchargée la licence <FontAwesomeIcon icon={faFilePdf}></FontAwesomeIcon>
|
||||
</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user