diff --git a/ippisite/db.sqlite3 b/ippisite/db.sqlite3 index 1ce245fe013cd197dd0e348dd22b0f1c6e0faf9e..2c32f71f78d4cd378888a6fea6a6ccac1cc17a5b 100644 Binary files a/ippisite/db.sqlite3 and b/ippisite/db.sqlite3 differ diff --git a/ippisite/ippidb/static/css/admin-session.css b/ippisite/ippidb/static/css/admin-session.css index ebeaf9f1d77e80178568fd9a42dd5ad11d60962b..09e724b8dea74ca4d829b8b6bf203fce50213122 100644 --- a/ippisite/ippidb/static/css/admin-session.css +++ b/ippisite/ippidb/static/css/admin-session.css @@ -7,6 +7,16 @@ Description: IPPI-DB Theme /* ADMIN SESSION */ +/* Validation input */ +input:not([readonly]).form-control:valid, +select:not([readonly]).form-control:valid { + border-color: #35dc45; +} +input:not([readonly]).form-control:not(:valid), +select:not([readonly]).form-control:not(:valid){ + border-color: #dc3545; +} + /* Step menu */ .step_nav { @@ -579,6 +589,7 @@ Description: IPPI-DB Theme background-repeat: no-repeat; height: 100%; font-size: 12px; + box-shadow: inset 0 0 0 1000px rgba(0,0,0,.1); } .imageBack_Inhib_Hetero2-merAB input:hover+label span { @@ -592,6 +603,8 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; + } .imageBack_Inhib_Hetero2-merAB input[type="radio"]:checked+label span { @@ -604,6 +617,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Inhib_Homo2-merA2 { @@ -629,6 +643,7 @@ Description: IPPI-DB Theme background-repeat: no-repeat; height: 100%; font-size: 12px; + box-shadow: inset 0 0 0 1000px rgba(0,0,0,.1); } .imageBack_Inhib_Homo2-merA2 input:hover+label span { @@ -642,6 +657,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Inhib_Homo2-merA2 input[type="radio"]:checked+label span { @@ -654,6 +670,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Inhib_Custom { @@ -679,6 +696,7 @@ Description: IPPI-DB Theme background-repeat: no-repeat; height: 100%; font-size: 12px; + box-shadow: inset 0 0 0 1000px rgba(0,0,0,.1); } .imageBack_Inhib_Custom input:hover+label span { @@ -692,6 +710,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Inhib_Custom input[type="radio"]:checked+label span { @@ -704,6 +723,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } /* Stabilized */ @@ -738,6 +758,7 @@ Description: IPPI-DB Theme background-repeat: no-repeat; height: 100%; font-size: 12px; + box-shadow: inset 0 0 0 1000px rgba(0,0,0,.1); } .imageBack_Stab_Hetero2-merAB input:hover+label span { @@ -751,6 +772,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Hetero2-merAB input[type="radio"]:checked+label span { @@ -763,6 +785,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Homo2-merA2 { @@ -788,6 +811,7 @@ Description: IPPI-DB Theme background-repeat: no-repeat; height: 100%; font-size: 12px; + box-shadow: inset 0 0 0 1000px rgba(0,0,0,.1); } .imageBack_Stab_Homo2-merA2 input:hover+label span { @@ -801,6 +825,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Homo2-merA2 input[type="radio"]:checked+label span { @@ -813,6 +838,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Homo-Like2-merA2 { @@ -838,6 +864,7 @@ Description: IPPI-DB Theme background-repeat: no-repeat; height: 100%; font-size: 12px; + box-shadow: inset 0 0 0 1000px rgba(0,0,0,.1); } .imageBack_Stab_Homo-Like2-merA2 input:hover+label span { @@ -851,6 +878,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Homo-Like2-merA2 input[type="radio"]:checked+label span { @@ -863,6 +891,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Homo3-merA3 { @@ -888,6 +917,7 @@ Description: IPPI-DB Theme background-repeat: no-repeat; height: 100%; font-size: 12px; + box-shadow: inset 0 0 0 1000px rgba(0,0,0,.1); } .imageBack_Stab_Homo3-merA3 input:hover+label span { @@ -901,6 +931,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Homo3-merA3 input[type="radio"]:checked+label span { @@ -913,6 +944,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Homo3-merA3inhibitedA2-dimer { @@ -938,6 +970,7 @@ Description: IPPI-DB Theme background-repeat: no-repeat; height: 100%; font-size: 12px; + box-shadow: inset 0 0 0 1000px rgba(0,0,0,.1); } .imageBack_Stab_Homo3-merA3inhibitedA2-dimer input:hover+label span { @@ -951,6 +984,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Homo3-merA3inhibitedA2-dimer input[type="radio"]:checked+label span { @@ -963,6 +997,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Homo4-merA4 { @@ -988,6 +1023,7 @@ Description: IPPI-DB Theme background-repeat: no-repeat; height: 100%; font-size: 12px; + box-shadow: inset 0 0 0 1000px rgba(0,0,0,.1); } .imageBack_Stab_Homo4-merA4 input:hover+label span { @@ -1001,6 +1037,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Homo4-merA4 input[type="radio"]:checked+label span { @@ -1013,6 +1050,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Ring-Like3-merA3 { @@ -1038,6 +1076,7 @@ Description: IPPI-DB Theme background-repeat: no-repeat; height: 100%; font-size: 12px; + box-shadow: inset 0 0 0 1000px rgba(0,0,0,.1); } .imageBack_Stab_Ring-Like3-merA3 input:hover+label span { @@ -1051,6 +1090,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Ring-Like3-merA3 input[type="radio"]:checked+label span { @@ -1063,6 +1103,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Ring-Like5-merA5 { @@ -1088,6 +1129,7 @@ Description: IPPI-DB Theme background-repeat: no-repeat; height: 100%; font-size: 12px; + box-shadow: inset 0 0 0 1000px rgba(0,0,0,.1); } .imageBack_Stab_Ring-Like5-merA5 input:hover+label span { @@ -1101,6 +1143,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Ring-Like5-merA5 input[type="radio"]:checked+label span { @@ -1113,6 +1156,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Custom { @@ -1139,6 +1183,7 @@ Description: IPPI-DB Theme background-repeat: no-repeat; height: 100%; font-size: 12px; + box-shadow: inset 0 0 0 1000px rgba(0,0,0,.1); } .imageBack_Stab_Custom input:hover+label span { @@ -1152,6 +1197,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } .imageBack_Stab_Custom input[type="radio"]:checked+label span { @@ -1164,6 +1210,7 @@ Description: IPPI-DB Theme border-top: 1px solid #E3E9EB; border-left: 1px solid #E3E9EB; border-right: 1px solid #E3E9EB; + box-shadow: none; } /* Tests form */ diff --git a/ippisite/ippidb/static/css/main.css b/ippisite/ippidb/static/css/main.css index 389276c05985ff1590982d56f734195ab660a697..6026dbfa4a47066c32768c29c02813c65ba9127d 100644 --- a/ippisite/ippidb/static/css/main.css +++ b/ippisite/ippidb/static/css/main.css @@ -357,6 +357,16 @@ text-align: center; text-decoration: underline; } +/* -- Unclickable option -- */ +.unclickable_option a { + color:#8D8889; +} + +.unclickable_option a:hover { + color:#8D8889; + text-decoration: underline; +} + /* -- Page Header -- */ .adv-page__header{ diff --git a/ippisite/ippidb/templates/add.html b/ippisite/ippidb/templates/add.html index acc9e37fb1fc0b760b80183250b20cd669a0e140..0fdab0f4e682f298151c1b232bc286d337ebfcfa 100644 --- a/ippisite/ippidb/templates/add.html +++ b/ippisite/ippidb/templates/add.html @@ -38,17 +38,7 @@ $(document).ready(function(){ <div class="main__inner"> <div class="region region-content"> {% if wizard.steps.current == "IdForm" %} - <div class="page-intro"> - By selecting ADD NEW CONTENT you are about to add all or any of the following information to iPPI-DB:</br> - New publications, New pharmacological data, New PPI modulators, New PPI targets, New cytotoxic or pharmacokinetic data.</br> - Please prepare yourself to fill some information within this web application.</br> - To achieve this process, you need : </br> - <ul> - <li> Your bibliographic source (PubMed article or Patents), </li> - <li> Its ID number (e.g PubMed ID), </li> - <li> And a reference PDB code that contains the structure of the macromolecular complex of the PPI target for which you have data. </li> - </ul> - </div> + {% endif %} <div class="color-wrap"> <div class="region region-content"> diff --git a/ippisite/ippidb/templates/admin-session.html b/ippisite/ippidb/templates/admin-session.html index 04dbc6324f0fa0343c555ae1205e056c8fa155cb..b92970dbeb58ddc7ab3bbfc81965234d71bbd9cc 100644 --- a/ippisite/ippidb/templates/admin-session.html +++ b/ippisite/ippidb/templates/admin-session.html @@ -17,7 +17,7 @@ <a href="{% url 'admin-session-add'%}">Add New Content</a> </li> <li> - <a href="{% url 'admin-session-update'%}">Update Content</a> + <a href="" class="unclickable_option">Update Content</a> </li> </ul> </div> @@ -46,7 +46,19 @@ <div class="block block-system block-system-main"> <div class="content"> <div class="view-content"> - + <div class="page-intro"> + By selecting ADD NEW CONTENT you are about to add all or any of the following information to iPPI-DB:</br> + New publications, New pharmacological data, New PPI modulators, New PPI targets, New cytotoxic or pharmacokinetic data.</br> + Please prepare yourself to fill some information within this web application.</br> + To achieve this process, you need : </br> + <ul> + <li> Your bibliographic source (PubMed article or Patents), </li> + <li> Its ID number (e.g PubMed ID), </li> + <li> And a reference PDB code that contains the structure of the macromolecular complex of the PPI target for which you have data. </li> + </ul> + The UPDATE CONTENT option is not implemented yet, but should be soon! + </div> + </div> </div> </div> diff --git a/ippisite/ippidb/templates/contribute.html b/ippisite/ippidb/templates/contribute.html deleted file mode 100644 index 72fa7d8a63eff6363a93cf2d973ba4746a993dc1..0000000000000000000000000000000000000000 --- a/ippisite/ippidb/templates/contribute.html +++ /dev/null @@ -1,70 +0,0 @@ -{% extends "index.html" %} -{% load sstatic %} - -{% block title %}inhibitors of Protein-Protein Interaction Database{% endblock %} -{% block extra_css %} - <link rel="stylesheet" href="{% sstatic '/css/admin-session.css' %}"> -{% endblock %} - -{% block content %} -<div id="mainnav"> - <nav class="secondary-nav"> - <div class="inner-wrap"> - <ul> - <li> - <a href="{% url 'admin-session-add'%}">Add New Content</a> - </li> - <li> - <a href="{% url 'admin-session-update'%}">Update Content</a> - </li> - </ul> - </div> - </nav> -</div> -<div class="inner-wrap"> - <nav class="breadcrumb breadNav" role="navigation"> - <div class="breadNav-label">You are here</div> - <div aria-labelledby="breadNav-label"> - {% block breadcrumb %}{{block.super}}Admin{% endblock %} - </div> - </nav> - <div id="main-wrapper" class="page"> - <div id="main"> - <div id="content" class="main-content"> - <div class="section"> - <main role="main"> - <h1 class="page-title"> CONTRIBUTE </h1> - <div class="tabs"></div> - <div class="main__inner"> - <div class="region region-content"> - <div class="page-intro"> - </div> - <div class="color-wrap"> - <div class="region region-content"> - <div class="block block-system block-system-main"> - <div class="content"> - <div class="view-content"> - <div class="paragraph"> - <h2>What are the iPPI-DB standards ?</h2> - Here is some guidance to submit binding data that comply with iPPI-DB standards : <br/> - <ul> - <li>The PPI target must have a known functional mechanism</li> - <li>No peptide will be considered</li> - <li>Only dose response-based measures of activity are considered (e.g IC<sub>50</sub>, EC<sub>50</sub>, K<sub>d</sub>, K<sub>i</sub>)</li> - <li>Only activities below 30 μM will qualify the corresponding compounds</li> - </ul> - </div> - </div> - </div> - </div> - </div> - </div> - </div> - </div> - </main><!-- .site-main --> - </div> - </div> - </div><!-- div main --> - </div> -</div> -{% endblock %}