forked from vergnet/application-amicale
Added back button on bib box web page
This commit is contained in:
parent
bec015bce9
commit
819a8624c7
1 changed files with 8 additions and 1 deletions
|
@ -35,7 +35,14 @@ export default class AvailableRoomScreen extends React.Component<Props> {
|
||||||
|
|
||||||
this.customBibInjectedJS =
|
this.customBibInjectedJS =
|
||||||
'document.querySelector(\'head\').innerHTML += \'<meta name="viewport" content="width=device-width, initial-scale=1.0">\';' +
|
'document.querySelector(\'head\').innerHTML += \'<meta name="viewport" content="width=device-width, initial-scale=1.0">\';' +
|
||||||
'document.querySelector(\'head\').innerHTML += \'<link rel="stylesheet" href="' + CUSTOM_CSS_Bib + '" type="text/css"/>\';';
|
'document.querySelector(\'head\').innerHTML += \'<link rel="stylesheet" href="' + CUSTOM_CSS_Bib + '" type="text/css"/>\';' +
|
||||||
|
'if ($(".hero-unit-form").length > 0 && $("#customBackButton").length === 0)' +
|
||||||
|
'$(".hero-unit-form").append("' +
|
||||||
|
'<div style=\'width: 100%; display: flex\'>' +
|
||||||
|
'<a style=\'margin: auto\' href=\'' + BIB_URL + '\'>' +
|
||||||
|
'<button id=\'customBackButton\' class=\'btn btn-primary\'>Retour</button>' +
|
||||||
|
'</a>' +
|
||||||
|
'</div>");';
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
|
Loading…
Reference in a new issue