<commit_before>{% extends "base.html" %}

{% block body_class %}details3{% endblock %}
{% load static utils %}

{% block content %}
<div class="section">
  <div class="grid-row">
    <div class="column-one-whole">

      <div class='grid-row'>
        <h1 class='heading-xlarge column-three-quarters'>{{ market.name }}</h1>
        <p class='column-one-quarter heading-last-updated font-xxsmall'>Last updated: {{ market.last_modified|date:"d/m/Y" }}</p>
      </div>

      <div class='grid-row detail-intro'>
        <div class='column-one-half'>
          <img src='{{ market.logo.base64_logo }}' width='100' height='100' alt=''>
          <dl>
            <dt>Markets:</dt>
            <dd>{{ market | csl:'countries_served' }}</dd>
            <dt>Website:</dt>
            <dd><a href='{{market.web_address}}'>{{ market.web_address }}</a></dd>
          </dl>
          <p>{{ market.description }}</p>
        </div>
        <div class='column-one-half'>
          <div class='detail-ukti-terms'>
            <ul class="soft">
              <li class="list list-market--extra">
                <h4>5.2 million</h4>
                <p class="font-xxsmall flush--bottom flush--top">registered users</p>
              </li>
              <li class="list list-market--extra">
                <div class="font-xxsmall flush--bottom flush--top">
                  <h4>Logistic support</h4>
                  <ul class="list list-bullet flush--bottom">
                    {% for model in market.logistics_structure.all %}
                    <li>{{ model.name }}</li>
                    {% endfor %}
                  </ul>
                </div>
              </li>
              <li class="list list-market--extra">
                <div class="font-xxsmall flush--bottom flush--top">
                  <h4>Receive payments to</h4>
                  <ul class="list list-bullet flush--bottom">
                    <li>{% if market.local_bank_account_needed %}Non-UK{% else %}UK{% endif %} bank account</li>
                  </ul>
                </div>
              </li>
            </ul>
          </div>
        </div>
      </div>

      <div class='grid-row detail-row'>
        <h3>Site</h3>
        <dl>
          <li>
            <dt>Number of registered users</dt>
            <dd>{{ market.web_traffic }} unique visitors / month</dd>
          </li>
          <li class='wider'>
            <dt>Customer demographics</dt>
            <dd>{{ market.customer_demographics|safe }}</dd>
          </li>
        </dl>
      </div>

      <div class='grid-row detail-row'>
        <h3>Products</h3>
        <dl>
          <li>
            <dt>Seller model</dt>
            <dd>{{ market.get_logistics_structure_display }}</dd>
          </li>
          <li>
            <dt>Product positioning</dt>
            <dd>{{ market.get_product_type_display }}</dd>
          </li>
          <li>
            <dt>Well-known brands</dt>
            <dd>{{ market | csl:'famous_brands_on_marketplace' }}</dd>
          </li>
          <hr>
          <li>
            <dt>Customer support channels</dt>
            <dd>{{ market | csl:'customer_support_channels' }}</dd>
          </li>
          <li>
            <dt>Customer support hours</dt>
            <dd>{{ market | csl:'customer_support_hours' }}</dd>
          </li>
          <li class='wider'>
            <dt>Marketing and merchandising</dt>
            <dd>{{ market.marketing_merchandising | safe }}</dd>
          </li>
        </dl>
      </div>

      <div class='grid-row detail-row'>
        <h3>On Boarding</h3>
        <dl>
          <li>
            <dt>Local bank account needed</dt>
            <dd>{{ market.local_bank_account_needed }}</dd>
          </li>
          <li>
            <dt>Local incorporation needed</dt>
            <dd>{{ market.local_incorporation_needed }}</dd>
          </li>
          <li>
            <dt>Exclusivity</dt>
            <dd>{{ market.exclusivity_required }}</dd>
          </li>
          <li class='breaker'>
            <dt>Logistics model</dt>
            <dd>{{ market.get_logistics_structure_display }}</dd>
          </li>
          <li>
            <dt>Shipping tracking required</dt>
            <dd>{{ market.shipping_tracking_required }}</dd>
          </li>
          <li>
            <dt>Local return address required</dt>
            <dd>{{ market.local_return_address_required }}</dd>
          </li>
          <li class='breaker'>
            <dt>Product details upload process</dt>
            <dd>{{ market | csl:'product_details_upload' }}</dd>
          </li>
          <li>
            <dt>Translation</dt>
            <dd>{{ market.translation_verbal }}</dd>
            <dd>{{ market.translation_application_process }}</dd>
            <dd>{{ market.translation_product_content }}</dd>
            <dd>{{ market.translation_seller_support }}</dd>
          </li>
          <li>
            <dt>Seller support type</dt>
            <dd>{{ market.seller_support_channels }}</dd>
          </li>
          <li>
            <dt>Seller support hours</dt>
            <dd>{{ market.seller_support_hours }}</dd>
          </li>
        </dl>
      </div>

      <div class='grid-row detail-row'>
        <h3>Payment</h3>
        <dl>
          <li>
            <dt>Sale to payment duration</dt>
            <dd>{{ market.payment_terms_days }}</dd>
          </li>
          <li class='wider'>
            <dt>Currency</dt>
            <dd>{{ market | csl:'currency_of_payments' }}</dd>
          </li>
        </dl>
      </div>

      <div class='grid-row detail-row'>
        <h3>Fees and pricing</h3>
        <dl>
          <li>
            <dt>Registration</dt>
            <dd>{{ market.registration_fees }}</dd>
          </li>
          <li>
            <dt>Membership</dt>
            <dd>{{ market.membership_fees }}</dd>
          </li>
          <li>
            <dt>Fee per listing</dt>
            <dd>{{ market.fee_per_listing }}</dd>
          </li>
          <li class='ukti-terms breaker'>
            <dt>UKTI Terms</dt>
            <dd>{{ market.ukti_terms|safe }}</dd>
          </li>
          <li>
            <dt>Deposit</dt>
            <dd></dd>
          </li>
          <li>
            <dt>Commission</dt>
            <dd>{{ market.commission }}</dd>
          </li>
          <li>
            <dt>Bond</dt>
              <dd>{{ market.deposit_needed }}</dd>
              <dd>{{ market.deposit_amount }}</dd>
          </li>
        </dl>
      </div>

      <div class='grid-row detail-row'>
        <h3>Next steps</h3>
        <ul>
          <li class='column-one-third'>
            <div class='background--grey-dark push--bottom soft'><commit_msg>Correctly iterate over connected models, and display Required/Not-Required for boolean types<commit_after>{% extends "base.html" %}

{% block body_class %}details3{% endblock %}
{% load static utils %}

{% block content %}
<div class="section">
  <div class="grid-row">
    <div class="column-one-whole">

      <div class='grid-row'>
        <h1 class='heading-xlarge column-three-quarters'>{{ market.name }}</h1>
        <p class='column-one-quarter heading-last-updated font-xxsmall'>Last updated: {{ market.last_modified|date:"d/m/Y" }}</p>
      </div>

      <div class='grid-row detail-intro'>
        <div class='column-one-half'>
          <img src='{{ market.logo.base64_logo }}' width='100' height='100' alt=''>
          <dl>
            <dt>Markets:</dt>
            <dd>{{ market | csl:'countries_served' }}</dd>
            <dt>Website:</dt>
            <dd><a href='{{market.web_address}}'>{{ market.web_address }}</a></dd>
          </dl>
          <p>{{ market.description }}</p>
        </div>
        <div class='column-one-half'>
          <div class='detail-ukti-terms'>
            <ul class="soft">
              <li class="list list-market--extra">
                <h4>5.2 million</h4>
                <p class="font-xxsmall flush--bottom flush--top">registered users</p>
              </li>
              <li class="list list-market--extra">
                <div class="font-xxsmall flush--bottom flush--top">
                  <h4>Logistic support</h4>
                  <ul class="list list-bullet flush--bottom">
                    {% for model in market.logistics_structure.all %}
                    <li>{{ model.name }}</li>
                    {% endfor %}
                  </ul>
                </div>
              </li>
              <li class="list list-market--extra">
                <div class="font-xxsmall flush--bottom flush--top">
                  <h4>Receive payments to</h4>
                  <ul class="list list-bullet flush--bottom">
                    <li>{% if market.local_bank_account_needed %}Non-UK{% else %}UK{% endif %} bank account</li>
                  </ul>
                </div>
              </li>
            </ul>
          </div>
        </div>
      </div>

      <div class='grid-row detail-row'>
        <h3>Site</h3>
        <dl>
          <li>
            <dt>Number of registered users</dt>
            <dd>{{ market.web_traffic }} unique visitors / month</dd>
          </li>
          <li class='wider'>
            <dt>Customer demographics</dt>
            <dd>{{ market.customer_demographics|safe }}</dd>
          </li>
        </dl>
      </div>

      <div class='grid-row detail-row'>
        <h3>Products</h3>
        <dl>
          <li>
            <dt>Seller model</dt>
            {% for model in market.seller_model.all %}
              <dd>{{ model.name }}</dd>
            {% endfor %}
          </li>
          <li>
            <dt>Product positioning</dt>
            {% for type in market.product_type.all %}
              <dd>{{ type.name }}</dd>
            {% endfor %}
          </li>
          <li>
            <dt>Well-known brands</dt>
            <dd>{{ market | csl:'famous_brands_on_marketplace' }}</dd>
          </li>
          <hr>
          <li>
            <dt>Customer support channels</dt>
            <dd>{{ market | csl:'customer_support_channels' }}</dd>
          </li>
          <li>
            <dt>Customer support hours</dt>
            <dd>{{ market | csl:'customer_support_hours' }}</dd>
          </li>
          <li class='wider'>
            <dt>Marketing and merchandising</dt>
            <dd>{{ market.marketing_merchandising | safe }}</dd>
          </li>
        </dl>
      </div>

      <div class='grid-row detail-row'>
        <h3>On Boarding</h3>
        <dl>
          <li>
            <dt>Local bank account needed</dt>
            {% if market.local_bank_account_needed %}
              <dd>&#10004; Required</dd>
            {% else %}
              <dd>&#10007; Not required</dd>
            {% endif %}
          </li>
          <li>
            <dt>Local incorporation needed</dt>
            {% if market.local_incorporation_needed %}
              <dd>&#10004; Required</dd>
            {% else %}
              <dd>&#10007; Not required</dd>
            {% endif %}
          </li>
          <li>
            <dt>Exclusivity</dt>
            {% if market.exclusivity_required %}
              <dd>&#10004; Required</dd>
            {% else %}
              <dd>&#10007; Not required</dd>
            {% endif %}
          </li>
          <li class='breaker'>
            <dt>Logistics model</dt>
            <dd>{{ market.get_logistics_structure_display }}</dd>
          </li>
          <li>
            <dt>Shipping tracking required</dt>
            {% if market.shipping_tracking_required %}
              <dd>&#10004; Required</dd>
            {% else %}
              <dd>&#10007; Not required</dd>
            {% endif %}
          </li>
          <li>
            <dt>Local return address required</dt>
            {% if market.local_return_address_required %}
              <dd>&#10004; Required</dd>
            {% else %}
              <dd>&#10007; Not required</dd>
            {% endif %}
          </li>
          <li class='breaker'>
            <dt>Product details upload process</dt>
            <dd>{{ market | csl:'product_details_upload' }}</dd>
          </li>
          <li>
            <dt>Translation</dt>
            {% if market.translation_verbal %}
              <dd>&#10004; Required</dd>
            {% else %}
              <dd>&#10007; Not required</dd>
            {% endif %}
            {% if market.translation_application_process %}
              <dd>&#10004; Required</dd>
            {% else %}
              <dd>&#10007; Not required</dd>
            {% endif %}
            {% if market.translation_product_content %}
              <dd>&#10004; Required</dd>
            {% else %}
              <dd>&#10007; Not required</dd>
            {% endif %}
            {% if market.translation_seller_support %}
              <dd>&#10004; Required</dd>
            {% else %}
              <dd>&#10007; Not required</dd>
            {% endif %}
          </li>
          <li>
            <dt>Seller support type</dt>
            <dd>{{ market | csl:'seller_support_channels' }}</dd>
          </li>
          <li>
            <dt>Seller support hours</dt>
            <dd>{{ market.seller_support_hours }}</dd>
          </li>
        </dl>
      </div>

      <div class='grid-row detail-row'>
        <h3>Payment</h3>
        <dl>
          <li>
            <dt>Sale to payment duration</dt>
            <dd>{{ market.payment_terms_days }}</dd>
          </li>
          <li class='wider'>
            <dt>Currency</dt>
            <dd>{{ market | csl:'currency_of_payments' }}</dd>
          </li>
        </dl>
      </div>

      <div class='grid-row detail-row'>
        <h3>Fees and pricing</h3>
        <dl>
          <li>
            <dt>Registration</dt>
            {% if market.registration_fees %}
              <dd>&#10004; Required</dd>
            {% else %}
              <dd>&#10007; Not required</dd>
            {% endif %}
          </li>
          <li>
            <dt>Membership</dt>
            {% if market.membership_fees > 0 %}
              <dd>£{{ market.membership_fees }} {{ market.membership_fees_frequency }}</dd>
            {% else %}
              <dd>&#10007; Not required</dd>
            {% endif %}
          </li>
          <li>
            <dt>Fee per listing</dt>
            {% if market.fee_per_listing %}
              <dd>&#10004; Yes</dd>
            {% else %}
              <dd>&#10007; No</dd>
            {% endif %}
          </li>
          <li class='ukti-terms breaker'>
            <dt>UKTI Terms</dt>
            <dd>{{ market.ukti_terms|safe }}</dd>
          </li>
          <li>
            <dt>Bond</dt>
              {% if market.deposit_needed > 0 %}
                <dd>£{{ market.deposit_amount }}</dd>
              {% else %}
                <dd>&#10007; Not required</dd>
              {% endif %}
          </li>
          <li>
            <dt>Commission</dt>
            <dd>{{ market.commission }}</dd>
          </li>
        </dl>
      </div>

      <div class='grid-row detail-row'>
        <h3>Next steps</h3>
        <ul>
          <li class='column-one-third'>
            <div class='background--grey-dark push--bottom soft'>
{'fraction_non_alphanumeric': 0.16476861299453624, 'fraction_numerical': 0.012112434994404581, 'mean_word_length': 1.3939489442168296, 'pattern_counts': {'":': 0, '<': 555, '<?xml version=': 0, '>': 557, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4723443', 'n_tokens_mistral': 4875, 'n_tokens_neox': 4476, 'n_words': 907}