 window.DatePickerView = class DatePickerView extends Uniform
+  @::counter = 0
+
   elements: (add) ->
     add('select', 'select')
 

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

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


  init: ->
    super
    @select.hide()
    @insert_date_input()

  date_input = ->
    $ """
      <input
        type="text"
        class="input-date"
        id="input-date-#{++DatePickerView::counter}"
        />
    """

  insert_date_input: ->
