mirror of
https://github.com/healthchecks/healthchecks.git
synced 2025-04-03 12:25:31 +00:00
Replace bootstrap-select with the native <select> element
This commit is contained in:
parent
4314e21b61
commit
554f6cba68
12 changed files with 9 additions and 67 deletions
|
@ -346,9 +346,3 @@ input[type=number]::-webkit-inner-spin-button {
|
|||
select.form-control {
|
||||
background-color: var(--panel-bg);
|
||||
}
|
||||
|
||||
/* Fix outline on focused select.selectpicker */
|
||||
.bootstrap-select .dropdown-toggle:focus {
|
||||
outline: 0 !important;
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 0 4px rgba(102, 175, 233, 0.2);
|
||||
}
|
||||
|
|
20
static/css/bootstrap-colors.css
vendored
20
static/css/bootstrap-colors.css
vendored
|
@ -24,26 +24,6 @@
|
|||
background-color: var(--btn-default-bg);
|
||||
}
|
||||
|
||||
.open > .dropdown-toggle.btn-default,
|
||||
.open > .dropdown-toggle.btn-default:active,
|
||||
.open > .dropdown-toggle.btn-default:hover,
|
||||
.open > .dropdown-toggle.btn-default:focus {
|
||||
color: var(--btn-active-color);
|
||||
background-color: var(--btn-active-bg);
|
||||
border-color: var(--btn-active-border);
|
||||
}
|
||||
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder:active,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder:focus,
|
||||
.bootstrap-select > .dropdown-toggle.bs-placeholder:hover {
|
||||
color: var(--btn-default-color);
|
||||
}
|
||||
|
||||
.bootstrap-select .no-results {
|
||||
background: var(--panel-bg);
|
||||
}
|
||||
|
||||
.alert-info {
|
||||
background-color: var(--state-info-bg);
|
||||
border-color: var(--state-info-border);
|
||||
|
|
6
static/css/bootstrap-select.min.css
vendored
6
static/css/bootstrap-select.min.css
vendored
File diff suppressed because one or more lines are too long
|
@ -2,10 +2,6 @@
|
|||
width: 900px;
|
||||
}
|
||||
|
||||
#add-webhook-form div.bootstrap-select {
|
||||
width: 100px;
|
||||
}
|
||||
|
||||
.method-url-group {
|
||||
display: flex;
|
||||
}
|
||||
|
|
9
static/js/bootstrap-select.min.js
vendored
9
static/js/bootstrap-select.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -166,7 +166,6 @@ $(function () {
|
|||
transferFormLoadStarted = true;
|
||||
$.get(this.dataset.url, function(data) {
|
||||
$("#transfer-modal" ).html(data);
|
||||
$("#target-project").selectpicker();
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
@ -609,7 +609,8 @@
|
|||
id="new-owner"
|
||||
name="email"
|
||||
title="Select..."
|
||||
class="form-control selectpicker">
|
||||
class="form-control">
|
||||
<option></option>
|
||||
{% for m in memberships %}
|
||||
<option>{{ m.user.email }}</option>
|
||||
{% endfor %}
|
||||
|
@ -643,7 +644,6 @@
|
|||
|
||||
{% block scripts %}
|
||||
{% compress js %}
|
||||
<script src="{% static 'js/bootstrap-select.min.js' %}"></script>
|
||||
<script src="{% static 'js/project.js' %}"></script>
|
||||
{% endcompress %}
|
||||
{% endblock %}
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
{% block head %}{% endblock %}
|
||||
{% compress css %}
|
||||
<link rel="stylesheet" href="{% static 'css/bootstrap.css' %}" type="text/css">
|
||||
<link rel="stylesheet" href="{% static 'css/bootstrap-select.min.css' %}" type="text/css">
|
||||
<link rel="stylesheet" href="{% static 'css/selectize.hc.css' %}" type="text/css">
|
||||
|
||||
<link rel="stylesheet" href="{% static 'css/variables.css' %}" type="text/css">
|
||||
|
|
|
@ -353,7 +353,6 @@
|
|||
<script id="all-timezones" type="data">UTC,{{ timezones|join:"," }}</script>
|
||||
{% compress js %}
|
||||
<script src="{% static 'js/selectize.min.js' %}"></script>
|
||||
<script src="{% static 'js/bootstrap-select.min.js' %}"></script>
|
||||
<script src="{% static 'js/nouislider.min.js' %}"></script>
|
||||
<script src="{% static 'js/snippet-copy.js' %}"></script>
|
||||
<script src="{% static 'js/moment.min.js' %}"></script>
|
||||
|
|
|
@ -93,7 +93,6 @@
|
|||
{% block scripts %}
|
||||
<script id="all-timezones" type="data">UTC,{{ timezones|join:"," }}</script>
|
||||
{% compress js %}
|
||||
<script src="{% static 'js/bootstrap-select.min.js' %}"></script>
|
||||
<script src="{% static 'js/selectize.min.js' %}"></script>
|
||||
<script src="{% static 'js/nouislider.min.js' %}"></script>
|
||||
<script src="{% static 'js/purify.min.js' %}"></script>
|
||||
|
|
|
@ -30,18 +30,15 @@
|
|||
id="target-project"
|
||||
name="project"
|
||||
title="Select..."
|
||||
class="form-control selectpicker">
|
||||
class="form-control">
|
||||
<option></option>
|
||||
{% for project in request.profile.projects.all %}
|
||||
{% if project == check.project %}
|
||||
<option disabled data-subtext="(current project)">
|
||||
{{ project }}
|
||||
</option>
|
||||
<option disabled>{{ project }} (current project)</option>
|
||||
{% elif project.owner_id == check.project.owner_id or project.num_checks_available > 0 %}
|
||||
<option value="{{ project.code }}">{{ project }}</option>
|
||||
{% else %}
|
||||
<option disabled data-subtext="(at check limit)">
|
||||
{{ project }}
|
||||
</option>
|
||||
<option disabled>{{ project }} (at check limit)</option>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</select>
|
||||
|
|
|
@ -33,8 +33,8 @@
|
|||
{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<label class="col-sm-3 control-label">Project</label>
|
||||
<div class="col-sm-8">
|
||||
<select name="project" class="selectpicker">
|
||||
<div class="col-sm-6 col-lg-4">
|
||||
<select name="project" class="form-control">
|
||||
{% for project in projects %}
|
||||
<option value="{{ project.code }}">{{ project }}</option>
|
||||
{% endfor %}
|
||||
|
@ -122,10 +122,4 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block scripts %}
|
||||
{% compress js %}
|
||||
<script src="{% static 'js/bootstrap-select.min.js' %}"></script>
|
||||
{% endcompress %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
Loading…
Add table
Reference in a new issue