{% import "search/result.html" as resultTypes %}

<div class="result-summary">
  <span class="result-summary--result-count">
    {{result.total}}</span> results found containing
    <span class="result-summary--result-query">{{ result.term }}
  </span>
</div>
<ol class="results-list">
  {% for hit in result.hits %}
    {% if hit._type == 'contact' %}
      {{ resultTypes.contactresult(hit._source, result.term) }}
    {% elseif hit._type == 'ch' %}
      {{ resultTypes.chresult(hit._source, result.term) }}
    {% else %}
      {{ resultTypes.companyresult(hit._source, result.term) }}
    {% endif %}

  {% endfor %}
</ol>




{% import "search/result.html" as resultTypes %}

<div class="result-summary">
  <span class="result-summary--result-count">
    {{result.total}}</span> results found containing
    <span class="result-summary--result-query">{{ result.term }}
  </span>
</div>
<ol class="results-list">
  {% for hit in result.hits %}
    {{ hit | log | safe }}
    {% if hit._type == 'contact' %}
      {{ resultTypes.contactresult(hit._source, result.term) }}
    {% elseif hit._type == 'ch' %}
      {{ resultTypes.chresult(hit._source, result.term) }}
    {% else %}
      {{ resultTypes.companyresult(hit._source, result.term) }}
    {% endif %}

  {% endfor %}
</ol>




Fix error when adding a company
Fix error when adding a company
