 
   init: ->
     super
-
     @select.hide()
     @insert_date_input()
 
   date_input = ->
     $ """
-      <input type="text" class="input-date" />
+      <input
+        type="text"
+        class="input-date"
+        id="input-date-#{++DatePickerView::counter}"
+        />
     """
 
   insert_date_input: ->

      $input = date_input()
      $input.appendTo(@)
      $input.datepicker(format: 'dd/mm/yyyy')

  update_select_values: (el) ->
    date_parts = el.value.split('/')

window.DatePickerView = class DatePickerView extends Uniform
  @::counter = 0

  elements: (add) ->
    add('select', 'select')

