mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
Add custom advanced section
This commit is contained in:
parent
0d5e96debf
commit
99b88a0399
File diff suppressed because one or more lines are too long
@ -4568,6 +4568,17 @@ $(document).ready(function(){
|
||||
info_panels_context = $('div#info_panels');
|
||||
|
||||
|
||||
$(document).on("click", ".accordion_advanced > a", function() {
|
||||
if ($(this).hasClass("active")){
|
||||
$(this).removeClass("active");
|
||||
} else {
|
||||
$(this).addClass("active");
|
||||
}
|
||||
|
||||
$(this).closest(".accordion_advanced").children(".content").toggle();
|
||||
|
||||
return false;
|
||||
})
|
||||
|
||||
//Insert the tabs in the DOM and their buttons.
|
||||
insertTabs();
|
||||
|
@ -418,7 +418,7 @@ fieldset {
|
||||
|
||||
.right-info-tabs {
|
||||
dd {
|
||||
width: 90px;
|
||||
width: 84px;
|
||||
}
|
||||
|
||||
i {
|
||||
@ -843,30 +843,43 @@ hr {
|
||||
}
|
||||
|
||||
.accordion_advanced {
|
||||
dd {
|
||||
margin-bottom: 20px;
|
||||
|
||||
&>a {
|
||||
padding: 10px 20px;
|
||||
color: #777;
|
||||
background: #f7f7f7;
|
||||
border: 1px solid #efefef;
|
||||
color: #333333;
|
||||
font-size: 14px;
|
||||
|
||||
.fa {
|
||||
margin-right: 10px;
|
||||
color: #777;
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
.fa-chevron-down {
|
||||
display: none;
|
||||
&.active {
|
||||
.fa-chevron-down {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.active){
|
||||
|
||||
.fa-chevron-up {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: #dfdfdf;
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
|
||||
&:not(.active){
|
||||
.fa-chevron-up {
|
||||
display: none;
|
||||
}
|
||||
&>.content {
|
||||
padding: 20px 10px 5px 10px;
|
||||
border: 1px solid #efefef;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.accordion {
|
||||
|
Loading…
x
Reference in New Issue
Block a user