4 Commits

5 changed files with 19 additions and 18 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 B

View File

@@ -115,19 +115,19 @@
}) })
})() })()
</script> </script>
<script> <script>
document.addEventListener('DOMContentLoaded', function () { document.addEventListener('DOMContentLoaded', function () {
var selectElement = document.getElementById('tabSelector'); var selectElement = document.getElementById('tabSelector');
selectElement.addEventListener('change', function () { selectElement.addEventListener('change', function () {
var selectedTabId = this.value; var selectedTabId = this.value;
var tabs = document.querySelectorAll('.tab-pane'); var tabs = document.querySelectorAll('.tab-pane');
tabs.forEach(function (tab) { tabs.forEach(function (tab) {
tab.classList.remove('show', 'active'); tab.classList.remove('show', 'active');
}); });
document.getElementById(selectedTabId).classList.add('show', 'active'); document.getElementById(selectedTabId).classList.add('show', 'active');
}); });
}); });
</script> </script>
{% block extra_head %} {% block extra_head %}
{{ site_conf.extra_head | safe }} {{ site_conf.extra_head | safe }}
{% endblock %} {% endblock %}

View File

@@ -1,4 +1,4 @@
<form class="d-flex needs-validation" action="{% url 'search' %}" method="post" novalidate> <form class="d-flex needs-validation" action="{% url 'search' %}" method="post" novalidate>{% csrf_token %}
<div class="input-group has-validation"> <div class="input-group has-validation">
<input class="form-control" type="search" list="datalistOptions" placeholder="Search" aria-label="Search" name="search" id="searchValidation" required> <input class="form-control" type="search" list="datalistOptions" placeholder="Search" aria-label="Search" name="search" id="searchValidation" required>
<datalist id="datalistOptions"> <datalist id="datalistOptions">

View File

@@ -1,4 +1,4 @@
from ram.utils import git_suffix from ram.utils import git_suffix
__version__ = "0.9.2" __version__ = "0.9.3"
__version__ += git_suffix(__file__) __version__ += git_suffix(__file__)

View File

@@ -49,7 +49,7 @@ INSTALLED_APPS = [
"rest_framework", "rest_framework",
"ram", "ram",
"portal", "portal",
# "driver", # "driver", # uncomment this to enable the "driver" API
"metadata", "metadata",
"roster", "roster",
"consist", "consist",
@@ -60,7 +60,7 @@ MIDDLEWARE = [
"django.middleware.security.SecurityMiddleware", "django.middleware.security.SecurityMiddleware",
"django.contrib.sessions.middleware.SessionMiddleware", "django.contrib.sessions.middleware.SessionMiddleware",
"django.middleware.common.CommonMiddleware", "django.middleware.common.CommonMiddleware",
# 'django.middleware.csrf.CsrfViewMiddleware', 'django.middleware.csrf.CsrfViewMiddleware',
"django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware",
"django.contrib.messages.middleware.MessageMiddleware", "django.contrib.messages.middleware.MessageMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware", "django.middleware.clickjacking.XFrameOptionsMiddleware",
@@ -145,7 +145,8 @@ MEDIA_ROOT = STORAGE_DIR / "media"
CKEDITOR_UPLOAD_PATH = "uploads/" CKEDITOR_UPLOAD_PATH = "uploads/"
COUNTRIES_OVERRIDE = { COUNTRIES_OVERRIDE = {
"ZZ": "Freelance", "EU": "Europe",
"XX": "None",
} }
# Image used on cards without a custom image uploaded. # Image used on cards without a custom image uploaded.