Skip to content
Snippets Groups Projects
Commit db200603 authored by Rachel TORCHET's avatar Rachel TORCHET
Browse files

Update ProteinDomainComplexTypeForm form and JS to show/hide inhibited/stabilized configurations

Former-commit-id: 74e03458a2cbd9c9aaa36c2383664bd869036c3b
parent f2b433a0
No related branches found
No related tags found
No related merge requests found
Showing
with 20 additions and 1 deletion
...@@ -643,7 +643,6 @@ body { ...@@ -643,7 +643,6 @@ body {
display:inline-block; display:inline-block;
} }
/* BUTTONS */ /* BUTTONS */
/* IdForm*/ /* IdForm*/
...@@ -745,6 +744,9 @@ body { ...@@ -745,6 +744,9 @@ body {
overflow: hidden; overflow: hidden;
width: 600px; width: 600px;
padding-bottom: 5px; padding-bottom: 5px;
background-image: url('/static/images/PPITypes/Inhibited/{{radio.choice_label|cut:" "}}_Apo.png');
background-position: center;
background-repeat: no-repeat;
} }
#id_ProteinDomainComplexTypeForm-inhibited label span{ #id_ProteinDomainComplexTypeForm-inhibited label span{
...@@ -754,6 +756,7 @@ body { ...@@ -754,6 +756,7 @@ body {
border: 1px solid #8D8888; border: 1px solid #8D8888;
height: 180px; height: 180px;
font-size: 12px; font-size: 12px;
} }
#id_ProteinDomainComplexTypeForm-inhibited input { #id_ProteinDomainComplexTypeForm-inhibited input {
...@@ -779,8 +782,24 @@ body { ...@@ -779,8 +782,24 @@ body {
border-right: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB;
} }
.image-inhibited label span{
background-image: url('/static/images/PPITypes/Inhibited/{{radio.choice_label|cut:" "}}_Apo.png');
background-position: center;
background-repeat: no-repeat;
}
.image-inhibited label span:hover {
background-image: url('/static/images/PPITypes/Inhibited/{{radio.choice_label|cut:" "}}_Halo.png');
background-position: center;
background-repeat: no-repeat;
}
/* Stabilized */ /* Stabilized */
#stabilized{
display:none;
}
#id_ProteinDomainComplexTypeForm-stabilized { #id_ProteinDomainComplexTypeForm-stabilized {
overflow: hidden; overflow: hidden;
width: 600px; width: 600px;
......
ippisite/ippidb/static/images/PPITypes/Inhibited/Customyourown_Holo.png

1.35 KiB

ippisite/ippidb/static/images/PPITypes/Stabilized/Customyourown_Apo.png

1.35 KiB

ippisite/ippidb/static/images/PPITypes/Stabilized/Customyourown_Holo.png

1.35 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment