diff options
Diffstat (limited to 'ishtar_common/templates/blocks/DataTables-external-sources.html')
-rw-r--r-- | ishtar_common/templates/blocks/DataTables-external-sources.html | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/ishtar_common/templates/blocks/DataTables-external-sources.html b/ishtar_common/templates/blocks/DataTables-external-sources.html index ce4d67ada..00cc7cf2c 100644 --- a/ishtar_common/templates/blocks/DataTables-external-sources.html +++ b/ishtar_common/templates/blocks/DataTables-external-sources.html @@ -1,14 +1,19 @@ {% load i18n %} <div class="d-flex justify-content-center"> -<div class="btn-group btn-group-toggle" data-toggle="buttons"> - <label class="btn btn-secondary active"> - <input type="radio" name="_sources" id="default" autocomplete="off" checked> {% trans "Local" %} - </label> - {% for source_id, source_label in external_sources %} - <label class="btn btn-secondary"> - <input type="radio" name="_sources" id="{{source_id}}" autocomplete="off"> {{source_label}} - </label> - {% endfor %} -</div> + <div class="btn-group btn-group-toggle" data-toggle="buttons"> + <label id="source_button_default" class="btn btn-secondary active"> + <input type="radio" name="_sources" autocomplete="off" checked> + {% trans "Local" %} <span class="badge badge-light" id="source_badge_default">-</span> + </label> + {% for source_id, source_label, source_url in external_sources %} + <label id="source_button_{{source_id}}" class="btn btn-secondary"> + <input type="radio" name="_sources" autocomplete="off"> + {{source_label}} <span class="badge badge-light" id="source_badge_{{source_id}}">-</span> + </label> + {% endfor %} + </div> </div> + +<script> +</script>
\ No newline at end of file |