Method: Inputs::AssetBox#to_html

Defined in:
app/models/inputs/asset_box.rb

#to_htmlObject



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'app/models/inputs/asset_box.rb', line 12

def to_html
  output = ''
  output += header_html

  if @options[:uploader] == :top
    output += uploader_html
    output += attachments_html
    output += dialog_html if @options[:dialog]
  else
    output += attachments_html
    output += dialog_html if @options[:dialog]
    output += uploader_html if @options[:uploader]
  end

  output += footer_html

  output.html_safe
end