<commit_before>{% extends 'layout/dialog.html' %}
{% import 'macros.twig' as scat %}

{% block title %}
  Shipping Address
{% endblock %}

{% block body %}
  {% if txn and not address %}
  {%   set address= address %}
  {% endif %}
  <div class="modal-body">
    <div class="row">
      <div class="form-group col-sm-12">
        <label for="name">Name</label>
        <input type="text" class="form-control" autofocus
               name="name" placeholder="<NAME>"
               value="{{ address.name ?: txn.person.name }}">
      </div>

      <div class="form-group col-sm-12">
        <label for="company">Company</label>
        <input type="text" class="form-control"
               name="company" placeholder="(optional)"
               value="{{ address.company ?: txn.person.company }}">
      </div>

      <div class="form-group col-sm-12">
        <label for="street1">Address</label>
        <input type="text" class="form-control"<commit_msg>Fix editing of shipping address<commit_after>{% extends 'layout/dialog.html' %}
{% import 'macros.twig' as scat %}

{% block title %}
  Shipping Address
{% endblock %}

{% block body %}
  {% if txn and not address %}
  {%   set address= txn.shipping_address() %}
  {% endif %}
  <div class="modal-body">
    <div class="row">
      <div class="form-group col-sm-12">
        <label for="name">Name</label>
        <input type="text" class="form-control" autofocus
               name="name" placeholder="<NAME>"
               value="{{ address.name ?: txn.person.name }}">
      </div>

      <div class="form-group col-sm-12">
        <label for="company">Company</label>
        <input type="text" class="form-control"
               name="company" placeholder="(optional)"
               value="{{ address.company ?: txn.person.company }}">
      </div>

      <div class="form-group col-sm-12">
        <label for="street1">Address</label>
        <input type="text" class="form-control"
{'fraction_non_alphanumeric': 0.17990773962070733, 'fraction_numerical': 0.007175807278318811, 'mean_word_length': 2.6148148148148147, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 35, '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': '4001717', 'n_tokens_mistral': 634, 'n_tokens_neox': 589, 'n_words': 131}