mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Translate "Price" in Bulk Order Management
This commit is contained in:
@@ -30,7 +30,7 @@ angular.module("ofn.admin").controller "AdminOrderMgmtCtrl", [
|
||||
quantity: { name: t("bom_quantity"), visible: true }
|
||||
max: { name: t("bom_max"), visible: true }
|
||||
final_weight_volume: { name: t("bom_final_weigth_volume"), visible: false }
|
||||
price: { name: t("bom_price"), visible: false }
|
||||
price: { name: t("price"), visible: false }
|
||||
$scope.initialise = ->
|
||||
$scope.initialiseVariables()
|
||||
authorise_api_reponse = ""
|
||||
|
||||
@@ -22,7 +22,7 @@ angular.module("admin.lineItems").controller 'LineItemsCtrl', ($scope, $timeout,
|
||||
quantity: { name: t("bom_quantity"), visible: true }
|
||||
max: { name: t("bom_max"), visible: true }
|
||||
final_weight_volume: { name: t("bom_final_weigth_volume"), visible: false }
|
||||
price: { name: t("bom_price"), visible: false }
|
||||
price: { name: t("price"), visible: false }
|
||||
|
||||
$scope.confirmRefresh = ->
|
||||
LineItems.allSaved() || confirm(t "unsaved_changes_warning")
|
||||
|
||||
@@ -250,6 +250,7 @@ en:
|
||||
bom_hub: "Hub"
|
||||
bom_variant: "Product: Unit"
|
||||
bom_final_weigth_volume: "Weight/Volume"
|
||||
bom_quantity: "Quantity"
|
||||
bom_actions_delete: "Delete Selected"
|
||||
bom_loading: "Loading orders"
|
||||
bom_no_results: "No orders found."
|
||||
|
||||
@@ -159,6 +159,8 @@ feature %q{
|
||||
first("div#columns-dropdown", :text => "COLUMNS").click
|
||||
first("div#columns-dropdown div.menu div.menu_item", text: "Weight/Volume").click
|
||||
first("div#columns-dropdown div.menu div.menu_item", text: "Price").click
|
||||
# hide dropdown
|
||||
first("div#columns-dropdown", :text => "COLUMNS").click
|
||||
within "tr#li_#{li1.id}" do
|
||||
expect(page).to have_field "price", with: "$50.00"
|
||||
fill_in "final_weight_volume", :with => 2000
|
||||
|
||||
Reference in New Issue
Block a user