import { Template } from 'meteor/templating'

Template['vessel.visit.insert'].helpers({
  data: {
    backLink: 'vessel.details',
    entityKey: 'visitId',
    fields: [{
      key: 'isUserVisible',
      type: 'checkbox'
    }, {
      key: 'date',
      type: 'date',
      default: 'today',
      format: 'YYYYMMDD',
      required: true
    }, {
      key: 'harborId',
      type: 'picker',
      allowedKeyValuesMethod: 'vessel.visit.getAvailableHarbors',
      required: true
    }, {
      key: 'dateNext',
      type: 'date',
      format: 'YYYYMMDD'
    }]
  }
})

@@ -450,24 +450,44 @@
 leHarbors',%0A
+      search: true,%0A
       requir

add search bar to harbor list on visit creation