This commit is contained in:
BoHung Chiu 2022-10-22 16:05:20 +08:00
parent 14881759b7
commit e86b431bbb
2 changed files with 8 additions and 4 deletions

View File

@ -1,5 +1,6 @@
class PropertyHiresController < ApplicationController
include Admin::PropertyHiresHelper
FrontendMethods = ["hire", "view_calendar", "hire_success"]
def index
properties = Property.filter_by_categories.filter_by_tags.sort_order
data = properties.collect do |property|

View File

@ -460,11 +460,14 @@ protected
def form_label
if self.markup == "text_area"
plc = typeD["placeholder"][I18n.locale].to_s.blank? ? '' : "(#{typeD["placeholder"][I18n.locale]})"
if plc.present?
plc = tag(:br)+plc
plc = typeD["placeholder"][I18n.locale].to_s.blank? ? nil : "(#{typeD["placeholder"][I18n.locale]})"
label_tag(key, '' , :class=>"col-sm-#{@col} control-label muted") do
concat (!@require.blank? ? '*'+title : title)
if plc
concat tag(:br)
concat plc
end
end
label_tag(key,(!@require.blank? ? '*'+title + plc : title + plc),:class=>"col-sm-#{@col} control-label muted")
else
label_tag(key,(!@require.blank? ? '*'+title : title),:class=>"col-sm-#{@col} control-label muted")
end