jazzmin as a more beauty admin panel
This commit is contained in:
parent
8ea5c87c9c
commit
aca1c3c3fa
117 changed files with 4 additions and 0 deletions
21
app/static/js/bird.js
Normal file
21
app/static/js/bird.js
Normal file
|
@ -0,0 +1,21 @@
|
|||
|
||||
function showHideAviary() {
|
||||
let statusField = document.getElementById("id_status");
|
||||
let aviaryField = document.getElementById("div_id_aviary");
|
||||
let statusText = statusField.options[statusField.selectedIndex].text;
|
||||
|
||||
if (statusText == 'In Auswilderung') {
|
||||
aviaryField.hidden = false
|
||||
} else {
|
||||
aviaryField.hidden = true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Load function on windows load.
|
||||
(showHideAviary)();
|
||||
|
||||
// Load function on change.
|
||||
document.getElementById("id_status").addEventListener("change", (event) => {
|
||||
showHideAviary()
|
||||
});
|
7
app/static/js/bootstrap.bundle.min.js
vendored
Normal file
7
app/static/js/bootstrap.bundle.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
17
app/static/js/find_circumstances.js
Normal file
17
app/static/js/find_circumstances.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
function showHideFindCircumstancesNew() {
|
||||
let circField = document.getElementById("id_find_circumstances");
|
||||
let circFieldNew = document.getElementById("id_find_circumstances_new");
|
||||
let circText = circField.options[circField.selectedIndex].text;
|
||||
|
||||
if (circText == 'Neu') {
|
||||
circFieldNew.type = "show"
|
||||
} else {
|
||||
circFieldNew.type = "hidden"
|
||||
}
|
||||
}
|
||||
|
||||
(showHideFindCircumstancesNew)();
|
||||
|
||||
document.getElementById("id_find_circumstances").addEventListener("change", (event) => {
|
||||
showHideFindCircumstancesNew()
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue