import Vessels from '/imports/api/vessels/Vessels.js';

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

@@ -543,16 +543,14 @@
 e: '
-dropdown
+picker
 ',%0A 

use picker control for harbor