<commit_before>{% extends "gsaudit/audit/frame.html" %}
{% load i18n %}

{% block tabs %}
    {{ block.super }}
    <a class="active" href="javascript:return false;">{{ audit.name }} | {{ audit.date|date:"l, j. F Y" }}</a>
{% endblock %}

{% block course_content %}

    <style>
        .scroll-table-container {height:600px; width:100%;}
        #evaluation-form .submit-row {padding:12px;  margin-top:2px; background:#f5f5f5;}
    </style>
    
    {% include "gsaudit/skill_legend.html" %}
    
    <br/>
    
    <form method="post" action="{% url "audit-evaluate" audit_id=audit.id %}" id="evaluation-form">
         <div class="submit-row buttons">
            <input type="submit" name="submit" value="Evaluation speichern"  />
              <a href="{% url "audit-manage" audit_id=audit.id grade_id=audit.assignment.grade.id subject_id=audit.assignment.subject.id %}">Bearbeiten</a>
        </div>
        <div>
            {% csrf_token %}
            <div class="scroll-table-container">
                {{ eval_form.render }}
            </div>
            <div class="submit-row">
                <input type="submit" name="submit" value="Evaluation speichern"  />
            </div>
        </div>
      
    </form>
   

<script type="text/javascript">
$(document).ready(function() {
    var form = $('table.eval-form')
    
    /* apply fixed header table
    -------------------------------------------------------------- */
    form.fixedHeaderTable({fixedColumn:true})
    
    /* apply eval notes
    -------------------------------------------------------------- */
   
    
    
    
    

    var eval_tools = form.find('.skill-tools')
    
    var color_note_link = function(textarea, note_link) {
        // apply trigger higlighting
        if (textarea.val().trim() == '') {
            note_link.css('color', '#888')
        } else {
            note_link.css({'color':'green', 'opacity': 1})           
        }
    }
    
    eval_tools.each(function(index, container) {<commit_msg>fix bug where table header is duplicated and hides radio buttons<commit_after>{% extends "gsaudit/audit/frame.html" %}
{% load i18n %}

{% block tabs %}
    {{ block.super }}
    <a class="active" href="javascript:return false;">{{ audit.name }} | {{ audit.date|date:"l, j. F Y" }}</a>
{% endblock %}

{% block course_content %}

    <style>
        .scroll-table-container {height:600px; width:100%;}
        #evaluation-form .submit-row {padding:12px;  margin-top:2px; background:#f5f5f5;}
    </style>
    
    {% include "gsaudit/skill_legend.html" %}
    
    <br/>
    
    <form method="post" action="{% url "audit-evaluate" audit_id=audit.id %}" id="evaluation-form">
         <div class="submit-row buttons">
            <input type="submit" name="submit" value="Evaluation speichern"  />
              <a href="{% url "audit-manage" audit_id=audit.id grade_id=audit.assignment.grade.id subject_id=audit.assignment.subject.id %}">Bearbeiten</a>
        </div>
        <div>
            {% csrf_token %}
            <div class="scroll-table-container">
                {{ eval_form.render }}
            </div>
            <div class="submit-row">
                <input type="submit" name="submit" value="Evaluation speichern"  />
            </div>
        </div>
      
    </form>
   

<script type="text/javascript">
$(document).ready(function() {
    var form = $('table.eval-form')
    
    /* apply fixed header table
    -------------------------------------------------------------- */
    form.fixedHeaderTable({fixedColumn:true})
    
    /* work around firefox issue */
      $('.fht-table-init').find('.eval-form-ratings').remove()
    
    /* apply eval notes
    -------------------------------------------------------------- */
    

    var eval_tools = form.find('.skill-tools')
    
    var color_note_link = function(textarea, note_link) {
        // apply trigger higlighting
        if (textarea.val().trim() == '') {
            note_link.css('color', '#888')
        } else {
            note_link.css({'color':'green', 'opacity': 1})           
        }
    }
    
    eval_tools.each(function(index, container) {
{'fraction_non_alphanumeric': 0.21658653846153847, 'fraction_numerical': 0.008653846153846154, 'mean_word_length': 1.8422131147540983, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '5322876', 'n_tokens_mistral': 1316, 'n_tokens_neox': 1236, 'n_words': 231}