<commit_before>{% extends "admin/change_form.html" %}

{% load admin_static i18n admin_modify admin_urls grp_tags %}


{% block after_related_objects %}

<div class="inline-group grp-group grp-tabular">
    <h2 class="grp-collapse-handler">Interventions</h2>

    <!-- container -->
    <div class="tabular inline-related grp-module grp-table">
        <div class="module grp-module grp-thead">
            <div class="grp-tr">
                <div class="grp-th">Thumbnail</div>
                <div class="grp-th">Canvas</div>
                <div class='grp-th'>Type</div>
                <div class="grp-th">Text</div>
                <div class="grp-th">Edit in Django Admin</div>
            </div>
        </div>
        <!-- element -->
        <div class="form-row grp-module grp-tbody"
                id="to-relationship-read-only">

            {% for canvas in original.digital_edition.canvases.all %}
                {% for intervention in canvas.intervention_set.all %}
                  <div class="grp-tr">
                    <div class="grp-td">
                        {# TODO: add anchor link logic to link directly to intervention #}
                        <a href="{{ intervention.canvas.get_absolute_url }}"
                            title="View on canvas">{{ intervention.admin_thumbnail|safe }}</a>
                    </div>
                    <div class="grp-td">{{ canvas.label }}</div>
                    <div class="grp-td">{{ intervention.get_intervention_type_display }}</div><commit_msg>CSS snippet to fix #69<commit_after>{% extends "admin/change_form.html" %}

{% load admin_static i18n admin_modify admin_urls grp_tags %}


{% block stylesheets %}
  {{ block.super }}
  <style>
    /* Manifest targets placeholder text of canvases' input */
    input[placeholder~="manifest"] {
        width: 898px !important;
    }

    input[placeholder~="intervention"] {
        width: 898px !important;
    }
  </style>
{% endblock %}

{% block after_related_objects %}

<div class="inline-group grp-group grp-tabular">
    <h2 class="grp-collapse-handler">Interventions</h2>

    <!-- container -->
    <div class="tabular inline-related grp-module grp-table">
        <div class="module grp-module grp-thead">
            <div class="grp-tr">
                <div class="grp-th">Thumbnail</div>
                <div class="grp-th">Canvas</div>
                <div class='grp-th'>Type</div>
                <div class="grp-th">Text</div>
                <div class="grp-th">Edit in Django Admin</div>
            </div>
        </div>
        <!-- element -->
        <div class="form-row grp-module grp-tbody"
                id="to-relationship-read-only">

            {% for canvas in original.digital_edition.canvases.all %}
                {% for intervention in canvas.intervention_set.all %}
                  <div class="grp-tr">
                    <div class="grp-td">
                        {# TODO: add anchor link logic to link directly to intervention #}
                        <a href="{{ intervention.canvas.get_absolute_url }}"
                            title="View on canvas">{{ intervention.admin_thumbnail|safe }}</a>
                    </div>
                    <div class="grp-td">{{ canvas.label }}</div>
                    <div class="grp-td">{{ intervention.get_intervention_type_display }}</div>
{'fraction_non_alphanumeric': 0.1451516954193932, 'fraction_numerical': 0.004759071980963712, 'mean_word_length': 1.91421143847487, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 65, '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': '3107546', 'n_tokens_mistral': 1005, 'n_tokens_neox': 952, 'n_words': 202}