Skip to content

Commit

Permalink
feat: add more info on checkout
Browse files Browse the repository at this point in the history
Add more explanatory information on checkout
page to prevent questions.

fccn/nau-technical#264
  • Loading branch information
igobranco committed Sep 26, 2024
1 parent ded2013 commit 4a7a10a
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 35 deletions.
28 changes: 20 additions & 8 deletions nau_extensions/locale/en/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 14:12+0000\n"
"POT-Creation-Date: 2024-09-26 13:21+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -67,7 +67,7 @@ msgstr ""

#: nau_extensions/templates/nau_extensions/checkout/basket_billing_information/address.html:9
#: nau_extensions/templates/nau_extensions/checkout/basket_billing_information/address.html:21
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:32
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:33
msgid "Billing address"
msgstr ""

Expand Down Expand Up @@ -99,20 +99,32 @@ msgstr ""
msgid "Value-Added Tax Identification Number (VATIN)"
msgstr ""

#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:14
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:34
msgid "Edit"
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:13
msgid ""
"Edit bellow if you want your receipt to include a Value-Added Tax "
"Identification Number (VATIN / NIF)."
msgstr ""

#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:20
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:18
msgid "Country"
msgstr ""

#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:22
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:20
msgid "VATIN"
msgstr ""

#: nau_extensions/templates/nau_extensions/checkout/receipt_partial.html:4
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:26
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:47
msgid "Edit"
msgstr ""

#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:34
msgid ""
"Edit bellow if you want your receipt to include your address, your name or "
"even your company name so your employer can refund you."
msgstr ""

#: nau_extensions/templates/nau_extensions/checkout/receipt_partial.html:6
msgid "Download receipt"
msgstr ""

Expand Down
Binary file modified nau_extensions/locale/pt_PT/LC_MESSAGES/django.mo
Binary file not shown.
34 changes: 25 additions & 9 deletions nau_extensions/locale/pt_PT/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-04-12 14:12+0000\n"
"POT-Creation-Date: 2024-09-26 13:21+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -69,7 +69,7 @@ msgstr "Enviado com erro"

#: nau_extensions/templates/nau_extensions/checkout/basket_billing_information/address.html:9
#: nau_extensions/templates/nau_extensions/checkout/basket_billing_information/address.html:21
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:32
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:33
msgid "Billing address"
msgstr "Endereço de faturação"

Expand Down Expand Up @@ -101,20 +101,36 @@ msgstr "Informação de faturação"
msgid "Value-Added Tax Identification Number (VATIN)"
msgstr "Número de Identificação Fiscal (NIF)"

#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:14
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:34
msgid "Edit"
msgstr "Editar"
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:13
msgid ""
"Edit bellow if you want your receipt to include a Value-Added Tax "
"Identification Number (VATIN / NIF)."
msgstr ""
"Edite abaixo se quiser que o seu recibo inclua um Número de Identificação "
"Fiscal (VATIN / NIF)"

#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:20
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:18
msgid "Country"
msgstr "País"

#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:22
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:20
msgid "VATIN"
msgstr "NIF"

#: nau_extensions/templates/nau_extensions/checkout/receipt_partial.html:4
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:26
#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:47
msgid "Edit"
msgstr "Editar"

#: nau_extensions/templates/nau_extensions/checkout/checkout_partial.html:34
msgid ""
"Edit bellow if you want your receipt to include your address, your name or "
"even your company name so your employer can refund you."
msgstr ""
"Edite abaixo se quiser que o recibo inclua a sua morada, o seu nome ou mesmo "
"o nome da sua empresa para que o seu empregador o possa reembolsar."

#: nau_extensions/templates/nau_extensions/checkout/receipt_partial.html:6
msgid "Download receipt"
msgstr "Descarregar recibo"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,41 +9,43 @@

{% block basket_billing_informations %}
<div class="col-md-5 col-sm-12 basket-billing-information-vatin">
<p>{% trans "Value-Added Tax Identification Number (VATIN)" as tmsg %}{{ tmsg | force_escape }}</p>

<a href="/payment/nau_extensions/basket-billing-information/vatin/?basket_id={{ basket.id }}">{% trans "Edit" as tmsg %}{{ tmsg | force_escape }}</a>

<p><b>{% trans "Value-Added Tax Identification Number (VATIN)" as tmsg %}{{ tmsg | force_escape }}</b></p>
<p>{% trans "Edit bellow if you want your receipt to include a Value-Added Tax Identification Number (VATIN / NIF)." as tmsg %}{{ tmsg | force_escape }}</p>
<div class="row-fluid">
{% if basket.basket_billing_information and basket.basket_billing_information.vatin %}
<div class="span3">
<div class="well well-info">
{% trans "Country" as tmsg %}{{ tmsg | force_escape }}: {{ basket.basket_billing_information.country }}
<br/>
{% trans "VATIN" as tmsg %}{{ tmsg | force_escape }}: {{ basket.basket_billing_information.vatin }}
</div>
<div class="span3">
<div class="well well-info">
{% trans "Country" as tmsg %}{{ tmsg | force_escape }}: {{ basket.basket_billing_information.country }}
<br/>
{% trans "VATIN" as tmsg %}{{ tmsg | force_escape }}: {{ basket.basket_billing_information.vatin }}
</div>
</div>
{% endif %}
</div>
<p>
<a href="/payment/nau_extensions/basket-billing-information/vatin/?basket_id={{ basket.id }}">{% trans "Edit" as tmsg %}{{ tmsg | force_escape }}</a>
</p>
</div>
{% endblock %}

{% block user_addresses %}
<div class="col-md-5 col-sm-12 basket-billing-information-address">
<p>{% trans "Billing address" as tmsg %}{{ tmsg | force_escape }}</p>

<a href="/payment/nau_extensions/basket-billing-information/address/?basket_id={{ basket.id }}">{% trans "Edit" as tmsg %}{{ tmsg | force_escape }}</a>

<p><b>{% trans "Billing address" as tmsg %}{{ tmsg | force_escape }}</b></p>
<p>{% trans "Edit bellow if you want your receipt to include your address, your name or even your company name so your employer can refund you." as tmsg %}{{ tmsg | force_escape }}</p>
<div class="row-fluid">
{% if basket.basket_billing_information and basket.basket_billing_information.active_address_fields|length > 0 %}
<div class="span3">
<div class="well well-info">
<div class="span3">
<div class="well well-info">
{% for field in basket.basket_billing_information.active_address_fields %}
{{ field }}<br/>
{{ field }}<br/>
{% endfor %}
</div>
</div>
</div>
{% endif %}
</div>
<p>
<a href="/payment/nau_extensions/basket-billing-information/address/?basket_id={{ basket.id }}">{% trans "Edit" as tmsg %}{{ tmsg | force_escape }}</a>
</p>
</div>
{% endblock %}

Expand Down

0 comments on commit 4a7a10a

Please sign in to comment.