 
     # datetime
 
-    $('[data-datetimepicker]').each ->
+    $('form [data-datetimepicker]').each ->
       $(this).datetimepicker $(this).data('options')
 
     # enumeration
 
-    $('[data-enumeration]').each ->
+    $('form [data-enumeration]').each ->
       $(this).filteringSelect $(this).data('options')
 
     # fileupload
 
-    $('[data-fileupload]').each ->
+    $('form [data-fileupload]').each ->
       input = this
       $(this).find(".delete input[type='checkbox']").live 'click', ->
         $(input).children('.toggle').toggle('slow')
 
     # filtering-multiselect
 
-    $('[data-filteringmultiselect]').each ->
+    $('form [data-filteringmultiselect]').each ->
       $(this).filteringMultiselect $(this).data('options')
       if $(this).parents("#modal").length # hide link if we already are inside a dialog (endless issues on nested dialogs with JS)
         $(this).parents('.control-group').find('.btn').remove()


    # filtering-select

    $('[data-filteringselect]').each ->
      $(this).filteringSelect $(this).data('options')
      if $(this).parents("#modal").length # hide link if we already are inside a dialog (endless issues on nested dialogs with JS)
        $(this).parents('.control-group').find('.btn').remove()


    # polymorphic-association

    $('form [data-polymorphic]').each ->
      type_select = $(this)
      field = type_select.parents('.control-group').first()
      object_select = field.find('select').last()
