Skip to content

Commit

Permalink
Changed labels to Price / Month
Browse files Browse the repository at this point in the history
  • Loading branch information
h-kataria committed Jun 27, 2019
1 parent 64ac3cb commit fcb613c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions app/controllers/catalog_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1280,7 +1280,7 @@ def get_form_vars
end

def code_currency_label(currency)
_('Price (in %{currency})') % {:currency => ChargebackRateDetailCurrency.find(currency).code}
_('Price / Month (in %{currency})') % {:currency => ChargebackRateDetailCurrency.find(currency).code}
end

def checked_tenants
Expand Down Expand Up @@ -2014,7 +2014,7 @@ def dialog_catalog_check

def validate_price
if @edit[:new][:currency] && @edit[:new][:price].blank?
add_flash(_("Price is required"), :error)
add_flash(_("Price / Month is required"), :error)
end
end

Expand Down
2 changes: 1 addition & 1 deletion app/views/catalog/_sandt_tree_show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
- if @record.currency && @record.price
.form-group
%label.col-md-3.control-label
= _('Price (in %{currency})') % {:currency => @record.currency.code}
= _('Price / Month (in %{currency})') % {:currency => @record.currency.code}
.col-md-9
= @record.price
- if @record.prov_type
Expand Down
2 changes: 1 addition & 1 deletion app/views/catalog/_st_angular_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
.form-group{"ng-class" => "{'has-error': vm.priceRequired()}"}
%label.col-md-2.control-label{"for" => "price"}
= _("Price (in {{vm.catalogItemModel.currency_name}})")
= _("Price / Month (in {{vm.catalogItemModel.currency_name}})")
.col-md-8
%input.form-control{"type" => "text",
"id" => "price",
Expand Down
2 changes: 1 addition & 1 deletion app/views/catalog/_svccat_tree_show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
- if @record.currency && @record.price
.form-group
%label.col-md-2.control-label
= _('Price (in %{currency})') % {:currency => @record.currency.code}
= _('Price / Month (in %{currency})') % {:currency => @record.currency.code}
.col-md-8
%p.form-control-static
= @record.price
Expand Down

0 comments on commit fcb613c

Please sign in to comment.