Added download for registration code

This commit is contained in:
Nicolai Ort 2023-02-01 17:42:51 +01:00
parent 64382880c4
commit 53800b4fa3
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
3 changed files with 141 additions and 115 deletions

View File

@ -55,5 +55,6 @@
"view_my_data": "Meine Läuferdaten einsehen",
"vorname": "Vorname",
"you_have_been_registered": "Sie wurden registriert!",
"you_have_not_provided_a_valid_access_key": "Sie haben keinen gültigen Zugangsschlüssel angegeben..."
"you_have_not_provided_a_valid_access_key": "Sie haben keinen gültigen Zugangsschlüssel angegeben...",
"download registrationcode": "Registrierungscode herunterladen"
}

View File

@ -54,5 +54,6 @@
"view_my_data": "View my data",
"vorname": "Firstname",
"you_have_been_registered": "You have been registered!",
"you_have_not_provided_a_valid_access_key": "You have not provided a valid access key..."
"you_have_not_provided_a_valid_access_key": "You have not provided a valid access key...",
"download registrationcode": "Download registrationcode"
}

View File

@ -13,6 +13,30 @@
</div>
<div class="inline-flex md:ml-auto md:mr-0 mx-auto items-center">
<div v-if="(state.delete_active === false)">
<button
type="button"
class="focus:border-black focus:ring-2 focus:ring-black text-white text-sm py-2.5 px-5 rounded-md bg-blue-500 hover:bg-blue-600 hover:shadow-lg"
@click="get_registration"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="24"
height="24"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
class="feather feather-download"
style="display: inline;height: 1rem;vertical-align: sub;"
>
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
<polyline points="7 10 12 15 17 10" />
<line x1="12" y1="15" x2="12" y2="3" />
</svg>
{{ $t('download registrationcode') }}
</button>
<button
type="button"
class="focus:border-black focus:ring-2 focus:ring-black text-white text-sm py-2.5 px-5 rounded-md bg-blue-500 hover:bg-blue-600 hover:shadow-lg"