diff --git a/public/static/css/rvr.css b/public/static/css/rvr.css index 0da7136..59ecdb4 100644 --- a/public/static/css/rvr.css +++ b/public/static/css/rvr.css @@ -404,6 +404,10 @@ header>p>span>a:link, header>p>span>a:visited { color: inherit; } +header>p>span>a:hover, header>p>span>a:focus { + text-decoration: none; +} + header>p>span:not(:last-child) { border-right: solid white 1px; padding-right: 6px; diff --git a/public/static/js/account/account.js b/public/static/js/account/account.js index f78622a..81eda87 100644 --- a/public/static/js/account/account.js +++ b/public/static/js/account/account.js @@ -59,11 +59,10 @@ var Account = { }; (function () { - document.getElementById('authenticateWithGoogleButton').onclick = function () { - Account.openGoogleAuthenticate(); - }; - - document.getElementsByTagName('form')[0].onreset = function () { - Account.resetGoogleAuthentication(); - }; + var authenticateWithGoogleButton = document.getElementById('authenticateWithGoogleButton'); + if (authenticateWithGoogleButton) { + authenticateWithGoogleButton.onclick = function () { + Account.openGoogleAuthenticate(); + }; + } })(); diff --git a/public/static/js/rvr.js b/public/static/js/rvr.js index b895c0e..7a1a5c8 100644 --- a/public/static/js/rvr.js +++ b/public/static/js/rvr.js @@ -97,7 +97,7 @@ var RVR = { RVR.showModalWithContent('Confirmation', this.dataset.confirmation, [ { type: 'button', - text: self.textContent, + html: this.dataset.confirmationButton ? this.dataset.confirmationButton : this.innerHTML, classNames: ['red'], onclick: function() { var event = new Event('submit', {'bubbles': true, 'cancelable': true}); @@ -147,7 +147,11 @@ var RVR = { button.classList.add('marginTop'); button.classList.add('marginRight'); - button.textContent = extraButton.text; + if (typeof extraButton.html !== 'undefined') { + button.innerHTML = extraButton.html; + } else { + button.textContent = extraButton.text; + } if (extraButton.type === 'a') { button.href = extraButton.href; diff --git a/public/static/package-lock.json b/public/static/package-lock.json index 2612c22..38d1404 100644 --- a/public/static/package-lock.json +++ b/public/static/package-lock.json @@ -2,6 +2,11 @@ "requires": true, "lockfileVersion": 1, "dependencies": { + "@fortawesome/fontawesome-free": { + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-6.4.0.tgz", + "integrity": "sha512-0NyytTlPJwB/BF5LtRV8rrABDbe3TdTXqNB3PdZ+UUUZAEIrdOJdmABqKjt4AXwIoJNaRVVZEXxpNrqvE1GAYQ==" + }, "@orchidjs/sifter": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/@orchidjs/sifter/-/sifter-1.0.3.tgz", diff --git a/public/static/package.json b/public/static/package.json index d2b0d01..98b146b 100644 --- a/public/static/package.json +++ b/public/static/package.json @@ -1,5 +1,6 @@ { "dependencies": { + "@fortawesome/fontawesome-free": "^6.4.0", "leaflet": "^1.6.0", "leaflet.markercluster": "^1.4.1", "tom-select": "^2.2.2" diff --git a/src/Controller/LoginController.php b/src/Controller/LoginController.php index 4eaa2be..05d61fd 100644 --- a/src/Controller/LoginController.php +++ b/src/Controller/LoginController.php @@ -281,7 +281,7 @@ class LoginController $mail = new Mail(); $mail->addRecipient($email); $mail->setSubject($_ENV['APP_NAME'] . ' - Password reset'); - $mail->setBodyFromTemplate('password.reset', [ + $mail->setBodyFromTemplate('password-reset', [ 'EMAIL' => $email, 'RESET_LINK' => \Container::$request->getBase() . \Container::$routeCollection->getRoute('password.reset')->generateLink(['token' => $token]), diff --git a/views/account/account.php b/views/account/account.php index 6c95542..8add21d 100644 --- a/views/account/account.php +++ b/views/account/account.php @@ -10,7 +10,7 @@
Please confirm your identity with your password or with Google to modify your account.
Please confirm your identity with your password to modify your account.
@@ -19,7 +19,7 @@Please confirm your identity with Google to modify your account.
Your account does not have a password. Please set a password if you want to disconnect your account from Google.
diff --git a/views/account/google_connect.php b/views/account/google_connect.php index df72e9a..1779e20 100644 --- a/views/account/google_connect.php +++ b/views/account/google_connect.php @@ -13,7 +13,7 @@= $transaction->getDescription() ?>
-= $transaction->getPayerUser()->getDisplayName() ?> ► = $transaction->getPayeeUser() ? $transaction->getPayeeUser()->getDisplayName() : '[common]' ?>
+= $transaction->getPayerUser()->getDisplayName() ?> = $transaction->getPayeeUser() ? $transaction->getPayeeUser()->getDisplayName() : '[common]' ?>
= $transaction->getTimeDate()->format('Y-m-d H:i') ?>
user()) : ?> - - - = Container::$request->user()->getDisplayName() ?>Logout + = Container::$request->user()->getDisplayName() ?> Logout
diff --git a/views/templates/rvr.php b/views/templates/rvr.php index 8dc595d..5488461 100644 --- a/views/templates/rvr.php +++ b/views/templates/rvr.php @@ -18,6 +18,10 @@ + + + + @yields('externalCss') @yields('inlineCss')