<commit_before>{% load i18n %}
{% load bootstrap3 %}
{% load gifts %}

{# will be included by registration/admin/view_helper.html #}

<form action="" method="post" enctype="multipart/form-data">
    {% csrf_token %}

    <div class="row">
        <div class="col-xs-12 col-lg-5">
            {% bootstrap_field form.deposit %}
            {% bootstrap_field form.deposit_returned %}
            {% bootstrap_field form.got_shirt %}
        </div>

        {% if helper.shifts.count != 0 %}
            <div class="col-lg-12">
                <table class="shifts">
                    {% for shift in helper.shifts.all|dictsort:"begin" %}
                        <tr>
                            <th style="vertical-align:top;">{{ shift }}</th>
                            {% gifts_for_shift form shift as deserved_gifts %}

                            {% if deserved_gifts %}
                                {% for deserved_gift in deserved_gifts %}
                                    <td>
                                        <div style="vertical-alignment:bottom!important;">
                                            {{ form | lookup_deservedgiftset:deserved_gift.pk }}
                                            <label>
                                                {% trans "Delivered" %}
                                            </label>
                                        </div>

                                        <ul>
                                            {{ gift_set }}
                                            {% for gift in deserved_gift.gift_set.includedgift_set.all %}
                                                <li>{{ gift.count }} {{ gift.gift.name }}</li>
                                            {% endfor %}<commit_msg>fixed layout bug<commit_after>{% load i18n %}
{% load bootstrap3 %}
{% load gifts %}

{# will be included by registration/admin/view_helper.html #}

<form action="" method="post" enctype="multipart/form-data">
    {% csrf_token %}

    <div class="row">
        <div class="col-xs-12 col-lg-5">
            {% bootstrap_field form.deposit %}
            {% bootstrap_field form.deposit_returned %}
            {% bootstrap_field form.got_shirt %}
        </div>
    </div>

    <div class="row">
        {% if helper.shifts.count != 0 %}
            <div class="col-lg-12">
                <table class="shifts">
                    {% for shift in helper.shifts.all|dictsort:"begin" %}
                        <tr>
                            <th style="vertical-align:top;">{{ shift }}</th>
                            {% gifts_for_shift form shift as deserved_gifts %}

                            {% if deserved_gifts %}
                                {% for deserved_gift in deserved_gifts %}
                                    <td>
                                        <div style="vertical-alignment:bottom!important;">
                                            {{ form | lookup_deservedgiftset:deserved_gift.pk }}
                                            <label>
                                                {% trans "Delivered" %}
                                            </label>
                                        </div>

                                        <ul>
                                            {{ gift_set }}
                                            {% for gift in deserved_gift.gift_set.includedgift_set.all %}
                                                <li>{{ gift.count }} {{ gift.gift.name }}</li>
                                            {% endfor %}
{'fraction_non_alphanumeric': 0.11080178173719377, 'fraction_numerical': 0.005011135857461025, 'mean_word_length': 0.9265415549597855, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 44, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6180680', 'n_tokens_mistral': 874, 'n_tokens_neox': 759, 'n_words': 159}