   $('#acc_' + DATA.metadata.hardware.acc_architecture).attr('selected', '')
   $('#par_' + DATA.metadata.hardware.parallel_model).attr('selected', '')
   populate_data_section(DATA)
+  populate_media_section(DATA)

  else
    field

populate_datum = (datum) ->
  counter = add_data_file_section()
  $('#data-name-' + counter).val(datum.name)
  $('#data-url-' + counter).val(datum.url)

  )
  counter

add_media_file_section = () ->
  counter = $('#media-files').children().size() + 10
  $('#media-files').append(
    Handlebars.compile(media_file_html())(
      {
        counter:counter
      }
    )
  )
  counter

$("#data-add").click(add_data_file_section)

$("#media-add").click(add_media_file_section)

$("#data-files").on('click', '.data-remove',
  () ->
