<commit_before>{% extends 'base.html.twig' %}

{% block body %}
    <div class="row">
        <div class="col-lg-6">

            <h2 class="h2-responsive center-on-small-only product-name">
                <strong>{{ shopOrder.product.title }}</strong> <span class="grey-text order-id"><small>Order ID: {{ shopOrder.id }}</small></span>
            </h2>

            <div class="card">
                <div class="card-header" data-background-color="purple">
                    <h4 class="title">Order Paywall</h4>
                </div>
                <div class="card-content">

                    <div class="row">
                        <div class="col-md-4">

                            <h3>Ship To:</h3>
                            {{ shopOrder.name }} {{ shopOrder.lastName }}<br>
                            {{ shopOrder.address }}<br>
                            {% if shopOrder.address2 %}
                                {{ shopOrder.address2 }}<br>
                            {% endif %}
                            {{ shopOrder.city }}, {{ shopOrder.state }}, {{ shopOrder.zip }}<br>
                            {{ shopOrder.country }}<br>
                            {{ shopOrder.email }}<br>

                            <a href="{{ path('shoporder_edit', { 'id': shopOrder.id }) }}">Edit</a>

                        </div>
                        <div class="col-md-8 text-center">
                            <h3 class="btc-due"><strong>Amount Due:  <i class="fa fa-btc"></i>{{ shopOrder.orderTotalBtc|number_format(4) }}</strong></h3>
                            <p>Send payment to the below address to complete your order.</p>

                            <div class="form-group">
                                <input id="btc-address" type="text" class="form-control text-center" readonly="readonly" value="{{ pay_to }}">
                                <button class="btn" data-clipboard-target="#btc-address">
                                    <i class="material-icons">content_copy</i> Copy Address
                                </button>
                            </div>

                            <div class="qr-code">
                                <img src="http://chart.googleapis.com/chart?chs=350x350&cht=qr&chl={{ pay_to }}">
                            </div>
                        </div>
                    </div>

                </div>
            </div>

        </div>
    </div>
{% endblock %}

{# Includig Clipboard.js to copy BTC address with <button> element #}
{% block javascripts %}
    {{ parent() }}
    <script src="https://cdn.jsdelivr.net/npm/clipboard@1/dist/clipboard.min.js"></script>
    <script type="text/javascript">
    var clipboard = new Clipboard('.btn');
    </script>
{% endblock %}
<commit_msg>Some grammar for the payment wall.<commit_after>{% extends 'base.html.twig' %}

{% block body %}
    <div class="row">
        <div class="col-lg-6">

            <h2 class="h2-responsive center-on-small-only product-name">
                <strong>{{ shopOrder.product.title }}</strong> <span class="grey-text order-id"><small>Order ID: {{ shopOrder.id }}</small></span>
            </h2>

            <div class="card">
                <div class="card-header" data-background-color="purple">
                    <h4 class="title">Order Paywall</h4>
                </div>
                <div class="card-content">

                    <div class="row">
                        <div class="col-md-4">

                            <h3>Ship To:</h3>
                            {{ shopOrder.name }} {{ shopOrder.lastName }}<br>
                            {{ shopOrder.address }}<br>
                            {% if shopOrder.address2 %}
                                {{ shopOrder.address2 }}<br>
                            {% endif %}
                            {{ shopOrder.city }}, {{ shopOrder.state }}, {{ shopOrder.zip }}<br>
                            {{ shopOrder.country }}<br>
                            {{ shopOrder.email }}<br>

                            <a href="{{ path('shoporder_edit', { 'id': shopOrder.id }) }}">Edit</a>

                        </div>
                        <div class="col-md-8 text-center">
                            <h3 class="btc-due"><strong>Amount Due:  <i class="fa fa-btc"></i>{{ shopOrder.orderTotalBtc|number_format(4) }}</strong></h3>
                            <p><em>Send payment to the below address to complete your order.</em></p>

                            <div class="form-group">
                                <input id="btc-address" type="text" class="form-control text-center" readonly="readonly" value="{{ pay_to }}">
                                <button class="btn" data-clipboard-target="#btc-address">
                                    <i class="material-icons">content_copy</i> Copy Address
                                </button>
                            </div>

                            <div class="qr-code">
                                <br>
                                <p><em>Or scan QR Code with your mobile device.</em></p>
                                <img src="http://chart.googleapis.com/chart?chs=350x350&cht=qr&chl={{ pay_to }}">
                            </div>
                        </div>
                    </div>

                </div>
            </div>

        </div>
    </div>
{% endblock %}

{# Includig Clipboard.js to copy BTC address with <button> element #}
{% block javascripts %}
    {{ parent() }}
    <script src="https://cdn.jsdelivr.net/npm/clipboard@1/dist/clipboard.min.js"></script>
    <script type="text/javascript">
    var clipboard = new Clipboard('.btn');
    </script>
{% endblock %}

{'fraction_non_alphanumeric': 0.1534826741337067, 'fraction_numerical': 0.0077003850192509625, 'mean_word_length': 1.2606803797468353, 'pattern_counts': {'":': 0, '<': 128, '<?xml version=': 0, '>': 128, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3935', 'n_tokens_mistral': 1613, 'n_tokens_neox': 1494, 'n_words': 294}