Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix non ascii characters being used in element IDs #470

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion jazzmin/templates/jazzmin/includes/carousel.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</ol>
<div class="carousel-inner">
{% for fieldset in forms %}
<div class="carousel-item {% if forloop.first %}active{% endif %} {{ fieldset.classes }}" data-carouselid="{{ forloop.counter0 }}" data-label="{{ fieldset.name|default:general_tab|capfirst }}" data-target="#{{ fieldset.name|default:general_tab|unicode_slugify }}-tab">
<div class="carousel-item {% if forloop.first %}active{% endif %} {{ fieldset.classes }}" data-carouselid="{{ forloop.counter0 }}" data-label="{{ fieldset.name|default:general_tab|capfirst }}" data-target="#{{ fieldset.name|default:general_tab|slugify }}-tab">
{% if fieldset.is_inline %}
{% include fieldset.opts.template with inline_admin_formset=fieldset %}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions jazzmin/templates/jazzmin/includes/collapsible.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<div id="jazzy-collapsible">
{% for fieldset in forms %}
<div class="card card-default {{ fieldset.classes }}">
<div class="card-header collapsible-header" data-toggle="collapse" data-parent="#jazzy-collapsible" data-target="#{{ fieldset.name|default:general_tab|unicode_slugify }}-tab">
<div class="card-header collapsible-header" data-toggle="collapse" data-parent="#jazzy-collapsible" data-target="#{{ fieldset.name|default:general_tab|slugify }}-tab">
<h4 class="card-title">
{{ fieldset.name|default:general_tab }}
</h4>
</div>
<div id="{{ fieldset.name|default:general_tab|unicode_slugify }}-tab" class="panel-collapse in {% if forloop.first %}show{% else %}collapse{% endif %}">
<div id="{{ fieldset.name|default:general_tab|slugify }}-tab" class="panel-collapse in {% if forloop.first %}show{% else %}collapse{% endif %}">
<div class="card-body">
{% if fieldset.is_inline %}
{% include fieldset.opts.template with inline_admin_formset=fieldset %}
Expand Down
4 changes: 2 additions & 2 deletions jazzmin/templates/jazzmin/includes/horizontal_tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<ul class="nav nav-tabs mb-3" role="tablist" id="jazzy-tabs">
{% for fieldset in forms %}
<li class="nav-item">
<a class="nav-link{% if forloop.first %} active{% endif %}" data-toggle="pill" role="tab" aria-controls="{{ fieldset.name|default:general_tab|unicode_slugify }}-tab" aria-selected="{% if forloop.first %}true{% else %}false{% endif %}" href="#{{ fieldset.name|default:general_tab|unicode_slugify }}-tab">
<a class="nav-link{% if forloop.first %} active{% endif %}" data-toggle="pill" role="tab" aria-controls="{{ fieldset.name|default:general_tab|slugify }}-tab" aria-selected="{% if forloop.first %}true{% else %}false{% endif %}" href="#{{ fieldset.name|default:general_tab|slugify }}-tab">
{{ fieldset.name|default:general_tab }}
</a>
</li>
Expand All @@ -16,7 +16,7 @@

<div class="tab-content">
{% for fieldset in forms %}
<div id="{{ fieldset.name|default:general_tab|unicode_slugify }}-tab" class="tab-pane fade{% if forloop.first %} active show{% endif %} {{ fieldset.classes }}" role="tabpanel" aria-labelledby="{{ fieldset.name|default:general_tab|unicode_slugify }}-tab">
<div id="{{ fieldset.name|default:general_tab|slugify }}-tab" class="tab-pane fade{% if forloop.first %} active show{% endif %} {{ fieldset.classes }}" role="tabpanel" aria-labelledby="{{ fieldset.name|default:general_tab|slugify }}-tab">
{% if fieldset.is_inline %}
{% include fieldset.opts.template with inline_admin_formset=fieldset %}
{% else %}
Expand Down
4 changes: 2 additions & 2 deletions jazzmin/templates/jazzmin/includes/vertical_tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="col-5 col-sm-3">
<div class="nav flex-column nav-tabs h-100" role="tablist" aria-orientation="vertical">
{% for fieldset in forms %}
<a class="nav-link {% if forloop.first %}active{% endif %}" data-toggle="pill" href="#{{ fieldset.name|default:general_tab|unicode_slugify }}-tab" role="tab" aria-controls="{{ fieldset.name|default:general_tab|unicode_slugify }}-tab" aria-selected="{% if forloop.first %}true{% else %}false{% endif %}">
<a class="nav-link {% if forloop.first %}active{% endif %}" data-toggle="pill" href="#{{ fieldset.name|default:general_tab|slugify }}-tab" role="tab" aria-controls="{{ fieldset.name|default:general_tab|slugify }}-tab" aria-selected="{% if forloop.first %}true{% else %}false{% endif %}">
{{ fieldset.name|default:general_tab }}
</a>
{% endfor %}
Expand All @@ -15,7 +15,7 @@
<div class="col-7 col-sm-9">
<div class="tab-content">
{% for fieldset in forms %}
<div class="tab-pane fade {% if forloop.first %}show active{% endif %} {{ fieldset.classes }}" id="{{ fieldset.name|default:general_tab|unicode_slugify }}-tab" role="tabpanel">
<div class="tab-pane fade {% if forloop.first %}show active{% endif %} {{ fieldset.classes }}" id="{{ fieldset.name|default:general_tab|slugify }}-tab" role="tabpanel">
{% if fieldset.is_inline %}
{% include fieldset.opts.template with inline_admin_formset=fieldset %}
{% else %}
Expand Down
Loading