= content_form.simple_fields_for :helpdesk_info do |f| .col-md-2 = f.label t('activerecord.attributes.helpdesk_info.note').titleize .col-md-10 = f.input :note, as: :text, label: false, required: false .col-md-2 = f.label t('activerecord.attributes.helpdesk_info.details_file').titleize .col-md-4 = f.input :details_file, label: false, required: true = f.hidden_field :details_file_cache - if @content.helpdesk_info.details_file.present? .col-md-2 = f.label t('activerecord.attributes.helpdesk_info.uploaded_file').titleize .col-md-4 - if content.id.present? = link_to "#{File.basename content.helpdesk_info.details_file.path}", "/#{content.helpdesk_info.details_file.store_path}#{File.basename content.helpdesk_info.details_file.path}" - else = File.basename content.helpdesk_info.details_file.path