diff --git a/assets/i18n/en/main.ftl b/assets/i18n/en/main.ftl index 9f92713..28a4f61 100644 --- a/assets/i18n/en/main.ftl +++ b/assets/i18n/en/main.ftl @@ -274,6 +274,11 @@ profile-intro = We'll use these details to prefill checkout. profile-saved = Profile saved. profile-save = Save profile profile-company-required = For a company account, please fill in company name, IČO and DIČ. +profile-first-name = First name +profile-last-name = Surname +profile-edit = Edit profile +profile-cancel = Cancel +profile-not-set = Not set account-type-locked = Account type can't be changed after registration. checkout-create-account = Create an account from this order checkout-create-account-hint = We'll email you a link to set your password. This order will be linked to your account. diff --git a/assets/i18n/sk/main.ftl b/assets/i18n/sk/main.ftl index 6453d0c..d6ab07d 100644 --- a/assets/i18n/sk/main.ftl +++ b/assets/i18n/sk/main.ftl @@ -274,6 +274,11 @@ profile-intro = Tieto údaje použijeme na predvyplnenie pokladne. profile-saved = Profil bol uložený. profile-save = Uložiť profil profile-company-required = Pri firemnom účte vyplňte názov firmy, IČO a DIČ. +profile-first-name = Meno +profile-last-name = Priezvisko +profile-edit = Upraviť profil +profile-cancel = Zrušiť +profile-not-set = Neuvedené account-type-locked = Typ účtu sa po registrácii nedá zmeniť. checkout-create-account = Vytvoriť účet z tejto objednávky checkout-create-account-hint = Pošleme vám e-mail na nastavenie hesla. Objednávka sa priradí k vášmu účtu. diff --git a/assets/views/account/profile.html b/assets/views/account/profile.html index d8fa519..61c58fd 100644 --- a/assets/views/account/profile.html +++ b/assets/views/account/profile.html @@ -3,8 +3,19 @@ {% block title %}{{ t(key="profile-title", lang=lang | default(value='sk')) }}{% endblock title %} +{% macro field(label, value) %} +
{{ value }}
+ {% else %} +{{ t(key="profile-not-set", lang=lang | default(value='sk')) }}
+ {% endif %} +{{ t(key="profile-intro", lang=lang | default(value='sk')) }}
@@ -17,7 +28,60 @@ {{ ui::alert_danger(message=t(key="profile-company-required", lang=lang | default(value='sk')), extra="mt-4") }} {% endif %} -