From d9c5c98a14689f6fd8c37ef221f8397d58aa71e7 Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Sun, 14 Jan 2018 15:50:27 +0800 Subject: [PATCH] small fix for change --- app/views/property_hires/hire.html.erb | 10 ++++++++-- config/locales/en.yml | 1 + config/locales/zh_tw.yml | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/app/views/property_hires/hire.html.erb b/app/views/property_hires/hire.html.erb index 6142e1d..63a83a8 100644 --- a/app/views/property_hires/hire.html.erb +++ b/app/views/property_hires/hire.html.erb @@ -15,6 +15,12 @@ window.location.href = "<%= "/" + I18n.locale.to_s + url %>"; <% end %> +<% if current_user.nil? %> + +<% else %>

<%= property.title %>

<% if session["hire-save-msg"].present? %> @@ -96,7 +102,7 @@
- <%= f.submit t(:save), :class => "btn btn-primary" %> + <%= f.submit t("property_hire.save"), :class => "btn btn-primary" %> <%= f.hidden_field :property_id, :value => property.id %> @@ -141,7 +147,7 @@ return value == "1"; } - +<% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 6c2173e..d1f79cc 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,5 +1,6 @@ en: property_hire: + save: Save property_hire: Property manage_locations: Manage Locations location: Location diff --git a/config/locales/zh_tw.yml b/config/locales/zh_tw.yml index f9d1eb2..2a7c8ed 100644 --- a/config/locales/zh_tw.yml +++ b/config/locales/zh_tw.yml @@ -1,5 +1,6 @@ zh_tw: property_hire: + save: Save property_hire: Property manage_locations: Manage Locations location: Location