mirror of
https://github.com/Southampton-RSG/breccia-mapper.git
synced 2026-03-03 03:17:07 +00:00
fix: Don't insert form CSS/JS when no form
This commit is contained in:
@@ -25,8 +25,7 @@
|
|||||||
crossorigin="anonymous" />
|
crossorigin="anonymous" />
|
||||||
|
|
||||||
{% load staticfiles %}
|
{% load staticfiles %}
|
||||||
<link rel="stylesheet"
|
<link rel="stylesheet" href="{% static 'css/global.css' %}">
|
||||||
href="{% static 'css/global.css' %}">
|
|
||||||
|
|
||||||
{% if 'javascript_in_head'|bootstrap_setting %}
|
{% if 'javascript_in_head'|bootstrap_setting %}
|
||||||
{% if 'include_jquery'|bootstrap_setting %}
|
{% if 'include_jquery'|bootstrap_setting %}
|
||||||
@@ -38,7 +37,9 @@
|
|||||||
{% bootstrap_javascript %}
|
{% bootstrap_javascript %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if form %}
|
||||||
{{ form.media.css }}
|
{{ form.media.css }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% block extra_head %}{% endblock %}
|
{% block extra_head %}{% endblock %}
|
||||||
|
|
||||||
@@ -138,7 +139,8 @@
|
|||||||
{% if request.user.is_authenticated and not request.user.has_person %}
|
{% if request.user.is_authenticated and not request.user.has_person %}
|
||||||
<div class="alert alert-info rounded-0" role="alert">
|
<div class="alert alert-info rounded-0" role="alert">
|
||||||
<p class="text-center mb-0">
|
<p class="text-center mb-0">
|
||||||
Your profile is currently blank. Please fill in your details so you can be part of the network.
|
Your profile is currently blank.
|
||||||
|
Please fill in your details so you can be part of the network.
|
||||||
|
|
||||||
<a class="btn btn-success"
|
<a class="btn btn-success"
|
||||||
href="{% url 'people:person.create' %}?user">Profile</a>
|
href="{% url 'people:person.create' %}?user">Profile</a>
|
||||||
@@ -176,7 +178,9 @@
|
|||||||
{% bootstrap_javascript %}
|
{% bootstrap_javascript %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if form %}
|
||||||
{{ form.media.js }}
|
{{ form.media.js }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% block extra_script %}{% endblock %}
|
{% block extra_script %}{% endblock %}
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
Reference in New Issue
Block a user