fix id issues

This commit is contained in:
Patrick Jentsch 2023-08-08 16:08:58 +02:00
parent bf0213edbc
commit 2951fc6966
2 changed files with 9 additions and 7 deletions

View File

@ -9,7 +9,7 @@
{# The extension container content #}
{% macro container_content(id_prefix) %}
{% macro container_content() %}
<div class="row">
<div class="col s12">
<h4><i class="material-icons left">query_stats</i>{{ name }}</h4>
@ -124,7 +124,7 @@
</div>
{% endmacro %}
{% macro modals(id_prefix) %}
{% macro modals() %}
<div class="modal modal-fixed-footer" id="frequencies-stopwords-setting-modal">
<div class="modal-content">
<h4>Settings</h4>
@ -156,9 +156,9 @@
</div>
{% endmacro %}
{% macro scripts(id_prefix) %}
{% macro scripts() %}
<script>
const corpusAnalysisStaticVisualization = new CorpusAnalysisStaticVisualization(corpusAnalysisApp, "{{ id_prefix }}");
const corpusAnalysisStaticVisualization = new CorpusAnalysisStaticVisualization(corpusAnalysisApp);
</script>
{% endmacro %}

View File

@ -47,11 +47,13 @@
</div>
{% for extension in extensions if extension.name != 'Static Visualization (beta)' %}
<div id="corpus-analysis-concordance-container">
{{ extension.container_content() }}
{{ concordance_extension.container_content() }}
</div>
<div id="corpus-analysis-reader-container">
{{ reader_extension.container_content() }}
</div>
{% endfor %}
{% endblock page_content %}
{% block modals %}