code: function () {
      
      var textTemplate = require('./templates/fields/text.html');
      var textareaTemplate = require('./templates/fields/textarea.html');
      var selectTemplate = require('./templates/fields/select.html');
      var checkboxTemplate = require('./templates/fields/checkbox.html');
  
      var fieldsTarget = []
      $.each(getConfig().customer_fields, function(key, field) {
        var tmpl = textTemplate
        if (field.format === 'textarea') tmpl = textareaTemplate
        if (field.format === 'select') tmpl = selectTemplate
        if (field.format === 'checkbox') tmpl = checkboxTemplate
        if (!field.format) field.format = 'text'
        if (key === 'email') field.format = 'email'
        var data = $.extend({
          key: key,
          arrowDownIcon: require('!svg-inline!./assets/arrow-down-icon.svg')
        }, field)
        var fieldTarget = $(tmpl.render(data))
        fieldsTarget.push(fieldTarget)
      })
  
      return fieldsTarget
    }
docs: Render customer fields