Spnonsoring contract language selector feature/84-sponsoringcontract_language_selector #89

Merged
niggl merged 11 commits from feature/84-sponsoringcontract_language_selector into dev 2021-03-01 16:45:08 +00:00
Showing only changes of commit c89caf7855 - Show all commits

View File

@ -70,6 +70,7 @@
.catch((err) => {}); .catch((err) => {});
} }
function generateSponsoringContract(locale) { function generateSponsoringContract(locale) {
sponsoring_contracts_download_open = false;
const toast = Toastify({ const toast = Toastify({
text: $_("generating-pdf"), text: $_("generating-pdf"),
duration: -1, duration: -1,
@ -120,7 +121,6 @@
.catch((err) => { .catch((err) => {
console.error(err); console.error(err);
}); });
} }
</script> </script>
@ -235,14 +235,18 @@
class="block w-full text-left px-4 py-2 text-sm text-gray-700">Select class="block w-full text-left px-4 py-2 text-sm text-gray-700">Select
language</span> language</span>
<button <button
on:click={() =>{generateSponsoringContract("de")}} on:click={() => {
generateSponsoringContract('de');
}}
type="submit" type="submit"
class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900" class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900"
role="menuitem"> role="menuitem">
German German
</button> </button>
<button <button
on:click={() =>{generateSponsoringContract("en")}} on:click={() => {
generateSponsoringContract('en');
}}
type="submit" type="submit"
class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900" class="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900 focus:outline-none focus:bg-gray-100 focus:text-gray-900"
role="menuitem"> role="menuitem">