mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-15 04:14:24 +00:00
Merge pull request #11958 from filipefurtad0/adds_missing_keys_from_i18n_tasks_output
Adds missing keys from i18n tasks output
This commit is contained in:
@@ -60,7 +60,7 @@ module Spree
|
||||
@insufficient_stock_lines = []
|
||||
@order = order_to_update
|
||||
unless @order
|
||||
flash[:error] = t(:order_not_found)
|
||||
flash[:error] = t(:order_not_updated)
|
||||
redirect_to(main_app.root_path) && return
|
||||
end
|
||||
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
= f.fields :bill_address, model: @order.bill_address do |bill_address|
|
||||
%div.checkout-input
|
||||
= bill_address.label :firstname, t("checkout.step1.your_details.first_name.label")
|
||||
= bill_address.text_field :firstname, { placeholder: t("checkout.step1.your_details.first_name.placeholder") }
|
||||
= f.error_message_on "bill_address.firstname"
|
||||
|
||||
%div.checkout-input
|
||||
= bill_address.label :lastname, t("checkout.step1.your_details.last_name.label")
|
||||
= bill_address.text_field :lastname, { placeholder: t("checkout.step1.your_details.last_name.placeholder") }
|
||||
= f.error_message_on "bill_address.lastname"
|
||||
|
||||
.flex{style: "justify-content: space-between; gap: 10px;" }
|
||||
%div.checkout-input{style: "flex-grow: 2;" }
|
||||
= f.label :card_number, t("checkout.step2.form.card_number.label")
|
||||
= f.text_field :card_number, { placeholder: t("checkout.step2.form.card_number.placeholder") }
|
||||
|
||||
%div.checkout-input{style: "flex: 0 1 100px;"}
|
||||
= f.label :card_verification_value, t("checkout.step2.form.card_verification_value.label")
|
||||
= f.number_field :card_verification_value, { placeholder: t("checkout.step2.form.card_verification_value.placeholder") }
|
||||
|
||||
%div.checkout-input{style: "flex: 0 1 70px;"}
|
||||
= f.label :card_month, t("checkout.step2.form.card_month.label")
|
||||
= f.number_field :card_month, { placeholder: t("checkout.step2.form.card_month.placeholder"), max: 12 }
|
||||
|
||||
%div.checkout-input{style: "flex: 0 1 70px;"}
|
||||
= f.label :card_year, t("checkout.step2.form.card_year.label")
|
||||
= f.number_field :card_year, { placeholder: t("checkout.step2.form.card_year.placeholder"), min: Time.now.year, max: Time.now.year + 10 }
|
||||
@@ -1,7 +0,0 @@
|
||||
#connect.pane
|
||||
.row
|
||||
.small-12.medium-6.medium-offset-3.columns.text-center
|
||||
%h2= t :label_connect
|
||||
%p.text-normal= t :connect_body
|
||||
%a.button.transparent{href: "https://openfoodnetwork.org/au/connect/"}
|
||||
= t :connect_cta
|
||||
@@ -1,7 +0,0 @@
|
||||
#learn.pane
|
||||
.row
|
||||
.small-12.medium-6.medium-offset-3.columns.text-center
|
||||
%h2= t :label_learn
|
||||
%p.text-normal= t :learn_body
|
||||
%a.button.transparent{href: "https://openfoodnetwork.org/au/learn/"}
|
||||
= t :learn_cta
|
||||
@@ -20,5 +20,3 @@
|
||||
|
||||
- if @payments.any?
|
||||
= render partial: 'list', locals: { payments: @payments }
|
||||
- else
|
||||
.alpha.twelve.columns.no-objects-found= t(:order_has_no_payments)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
= render partial: 'spree/admin/shared/configuration_menu'
|
||||
|
||||
- content_for :page_title do
|
||||
= t("spree.taxon_edit")
|
||||
= t("spree.taxonomy_edit")
|
||||
|
||||
- content_for :page_actions do
|
||||
%li
|
||||
|
||||
@@ -28,8 +28,8 @@
|
||||
#cart-container
|
||||
- if @order.line_items.empty?
|
||||
%div.row
|
||||
%p= t(:your_cart_is_empty)
|
||||
%p= link_to t(:continue_shopping), current_shop_products_path, :class => 'button continue'
|
||||
%p= t(:cart_empty)
|
||||
%p= link_to t(:orders_edit_continue), current_shop_products_path, :class => 'button continue'
|
||||
|
||||
- else
|
||||
%div
|
||||
|
||||
Reference in New Issue
Block a user