old_contents: 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'
              }]
          }
      }
  });
  
new_contents: 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: 'picker',
                  allowedKeyValuesMethod: 'vessel.visit.getAvailableHarbors',
                  required: true
              }, {
                  key: 'dateNext',
                  type: 'date',
                  format: 'YYYYMMDD'
              }]
          }
      }
  });
  
subject: use picker control for harbor