i18n simple_form move of fax pdf
This commit is contained in:
parent
67e29620f4
commit
6c17c17982
1 changed files with 6 additions and 6 deletions
|
@ -21,15 +21,15 @@ class OrderFax < OrderPdf
|
||||||
text "#{contact[:zip_code]} #{contact[:city]}", size: 9, align: :right
|
text "#{contact[:zip_code]} #{contact[:city]}", size: 9, align: :right
|
||||||
move_down 5
|
move_down 5
|
||||||
unless @order.supplier.try(:customer_number).blank?
|
unless @order.supplier.try(:customer_number).blank?
|
||||||
text "#{I18n.t('simple_form.labels.supplier.customer_number')}: #{@order.supplier[:customer_number]}", size: 9, align: :right
|
text "#{Supplier.human_attribute_name :customer_number}: #{@order.supplier[:customer_number]}", size: 9, align: :right
|
||||||
move_down 5
|
move_down 5
|
||||||
end
|
end
|
||||||
unless contact[:phone].blank?
|
unless contact[:phone].blank?
|
||||||
text "#{I18n.t('simple_form.labels.supplier.phone')}: #{contact[:phone]}", size: 9, align: :right
|
text "#{Supplier.human_attribute_name :phone}: #{contact[:phone]}", size: 9, align: :right
|
||||||
move_down 5
|
move_down 5
|
||||||
end
|
end
|
||||||
unless contact[:email].blank?
|
unless contact[:email].blank?
|
||||||
text "#{I18n.t('simple_form.labels.supplier.email')}: #{contact[:email]}", size: 9, align: :right
|
text "#{Supplier.human_attribute_name :email}: #{contact[:email]}", size: 9, align: :right
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ class OrderFax < OrderPdf
|
||||||
text @order.supplier.try(:address).to_s
|
text @order.supplier.try(:address).to_s
|
||||||
unless @order.supplier.try(:fax).blank?
|
unless @order.supplier.try(:fax).blank?
|
||||||
move_down 5
|
move_down 5
|
||||||
text "#{I18n.t('simple_form.labels.supplier.fax')}: #{@order.supplier[:fax]}"
|
text "#{Supplier.human_attribute_name :fax}: #{@order.supplier[:fax]}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -48,10 +48,10 @@ class OrderFax < OrderPdf
|
||||||
text Date.today.strftime(I18n.t('date.formats.default')), align: :right
|
text Date.today.strftime(I18n.t('date.formats.default')), align: :right
|
||||||
|
|
||||||
move_down 10
|
move_down 10
|
||||||
text "#{I18n.t('simple_form.labels.delivery.delivered_on')}:"
|
text "#{Delivery.human_attribute_name :delivered_on}:"
|
||||||
move_down 10
|
move_down 10
|
||||||
unless @order.supplier.try(:contact_person).blank?
|
unless @order.supplier.try(:contact_person).blank?
|
||||||
text "#{I18n.t('simple_form.labels.supplier.contact_person')}: #{@order.supplier[:contact_person]}"
|
text "#{Supplier.human_attribute_name :contact_person}: #{@order.supplier[:contact_person]}"
|
||||||
move_down 10
|
move_down 10
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue