<commit_before>{% extends sitebase.html %}
{% block content %}
{% from amgut import text_locale %}
{% set tl = text_locale['participant_overview.html'] %}

<form action="survey1.html" method="post" id="edit_survey">

{% for field_name, default_value in sorted(defaults.items()) %}
    <input type="hidden" name="{{field_name}}" value="{{default_value}}" />
{% end %}

</form>

<h2>{% raw tl['OVERVIEW_FOR_PARTICPANT'] %} {{participant_name}}</h2>
<div class="overview_wrapper">
    <div class="overview">
        <table class="list" id="survey" width="100%">
{% if participant_type == 'human' %}
            <tr>
                <td>{% raw tl['COMPLETED_CONSENT'] %}</td>
                <td><img src="{% raw media_locale['SITEBASE'] %}/static/img/icon-green-checkmark.png"/></td>
            </tr>
{% end %}
            <tr>
                <td>{% raw tl['COMPLETED_SURVEY'] %}
{% if participant_type == 'human' %}
                    (<a href="#" onclick="editHumanSurvey();">edit</a>)
{% end %}
                </td>
                <td><img src="{% raw media_locale['SITEBASE'] %}/static/img/icon-green-checkmark.png"/></td>
            </tr>
            <tr>
                <td>{% raw tl['SAMPLES_ASSIGNED'] %}</td>
                <td>
                    <ul class="sample_list">

{% for sample in samples %}
                        <li>
                            <form action="{% raw media_locale['SITEBASE'] %}/atuhed/sample_overview/?barcode={{sample['barcode']}}" method="post" id="view_sample_{{sample['barcode']}}">
                                <img class="icon" src="{% raw media_locale['SITEBASE'] %}/static/img/sample_icon.png"/>
                                <input type="button" onclick="document.forms['view_sample_{{sample['barcode']}}'].submit(); return false;" value="{{sample['barcode']}}"/>
                            </form>
                        </li>
{% end %}
                    </ul>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <form action="{% raw media_locale['SITEBASE'] %}/participants/{{participant_name}}" method="post" id="remove_participant_{{participant_name}}">
                        <input type="hidden" name="remove" value="{{participant_name}}">
                        <input type="submit" value="Remove {{participant_name}}"/>
                    </form>
                </td>
            </tr>
        </table>
    </div>
</div>
{% end %}
<commit_msg>disable edit of human survey<commit_after>{% extends sitebase.html %}
{% block content %}
{% from amgut import text_locale %}
{% set tl = text_locale['participant_overview.html'] %}

<form action="survey1.html" method="post" id="edit_survey">

{% for field_name, default_value in sorted(defaults.items()) %}
    <input type="hidden" name="{{field_name}}" value="{{default_value}}" />
{% end %}

</form>

<h2>{% raw tl['OVERVIEW_FOR_PARTICPANT'] %} {{participant_name}}</h2>
<div class="overview_wrapper">
    <div class="overview">
        <table class="list" id="survey" width="100%">
{% if participant_type == 'human' %}
            <tr>
                <td>{% raw tl['COMPLETED_CONSENT'] %}</td>
                <td><img src="{% raw media_locale['SITEBASE'] %}/static/img/icon-green-checkmark.png"/></td>
            </tr>
{% end %}
            <tr>
                <td>{% raw tl['COMPLETED_SURVEY'] %}
{% if participant_type == 'human' %}
                    (edit currently disabled)
{% end %}
                </td>
                <td><img src="{% raw media_locale['SITEBASE'] %}/static/img/icon-green-checkmark.png"/></td>
            </tr>
            <tr>
                <td>{% raw tl['SAMPLES_ASSIGNED'] %}</td>
                <td>
                    <ul class="sample_list">

{% for sample in samples %}
                        <li>
                            <form action="{% raw media_locale['SITEBASE'] %}/atuhed/sample_overview/?barcode={{sample['barcode']}}" method="post" id="view_sample_{{sample['barcode']}}">
                                <img class="icon" src="{% raw media_locale['SITEBASE'] %}/static/img/sample_icon.png"/>
                                <input type="button" onclick="document.forms['view_sample_{{sample['barcode']}}'].submit(); return false;" value="{{sample['barcode']}}"/>
                            </form>
                        </li>
{% end %}
                    </ul>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    <form action="{% raw media_locale['SITEBASE'] %}/participants/{{participant_name}}" method="post" id="remove_participant_{{participant_name}}">
                        <input type="hidden" name="remove" value="{{participant_name}}">
                        <input type="submit" value="Remove {{participant_name}}"/>
                    </form>
                </td>
            </tr>
        </table>
    </div>
</div>
{% end %}

{'fraction_non_alphanumeric': 0.18842339607366929, 'fraction_numerical': 0.0028334345274235984, 'mean_word_length': 1.9879081015719469, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 99, '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': '4428200', 'n_tokens_mistral': 1577, 'n_tokens_neox': 1432, 'n_words': 274}