Sha256: fd37e0e4f519c66688ff8841bb8112495edd36ad75cc71d8a838cd59c82496b9
Contents?: true
Size: 1.16 KB
Versions: 7
Compression:
Stored size: 1.16 KB
Contents
module ExportEmailHelper include EmailerHelper def formatted_txt_holding_status(view_data) output = "" output << view_data[:collection_str] if view_data[:collection_str] output << " " + view_data[:call_number] if view_data[:call_number] output << " " + view_data[:status] if view_data[:status] return output end def formatted_html_holding_status(view_data) output = "".html_safe if view_data[:collection_str] output << content_tag("span", view_data[:collection_str], :class => "collection") end if view_data[:call_number] output << " ".html_safe << content_tag("span", view_data[:call_number], :class => "call_no") end if view_data[:status] output << " ".html_safe << content_tag("span", view_data[:status], :class => "status") end return output end def validation_error(errors) validation_errors = content_tag(:div, :class => "alert alert-error") do content_tag(:span, "Please provide the following:") + content_tag(:ul) do e = "".html_safe errors.each do |error| e << content_tag(:li, error) end e end end validation_errors end end
Version data entries
7 entries across 7 versions & 1 rubygems