fix error

This commit is contained in:
chiu 2020-05-20 17:53:06 +08:00
parent 7c46fbd6ac
commit c73a3ce9a8
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ module Admin::PropertyHiresHelper
module_app_key:"property_hire", module_app_key:"property_hire",
template:"email/#{field_name}_email.html.erb", template:"email/#{field_name}_email.html.erb",
mail_sentdate: send_date || Time.current, mail_sentdate: send_date || Time.current,
mail_subject: I18n.t("seminar.email_#{field_name}_success"), mail_subject: I18n.t("property_hire.email_#{field_name}_success"),
template_data:{'property_id'=>property_id,'content'=>content,'locale'=>I18n.locale.to_s,'hire_id'=>hire_id}) template_data:{'property_id'=>property_id,'content'=>content,'locale'=>I18n.locale.to_s,'hire_id'=>hire_id})
elsif !(email_set[0].disabled) elsif !(email_set[0].disabled)
mail = Email.create(mail_to: Array(email), mail = Email.create(mail_to: Array(email),

View File

@ -30,7 +30,7 @@
<%= property[k].collect{|k,v| v}.uniq.join('/') rescue nil %> <%= property[k].collect{|k,v| v}.uniq.join('/') rescue nil %>
<% elsif k=='owners' %> <% elsif k=='owners' %>
<%= property.owner_profiles.collect{|v| v.name}.join(', ') %> <%= property.owner_profiles.collect{|v| v.name}.join(', ') %>
<% elsif k == 'category' %> <% elsif ['category','property_location'].include?(k) %>
<%= v.title %> <%= v.title %>
<% elsif k == 'can_be_hired' %> <% elsif k == 'can_be_hired' %>
<%= v ? t('yes_') : t('no_') %> <%= v ? t('yes_') : t('no_') %>