Skip to content
Snippets Groups Projects
Commit 24f2716d authored by Hervé  MENAGER's avatar Hervé MENAGER
Browse files
Former-commit-id: 595c34d793a74da28160ed35c4c88525ca577158
parents 93bbdbf7 998c1cad
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,8 @@ class ProteinDomainComplexTypeForm(forms.Form):
archi = forms.CharField(
label="PPI Architecture Type",
widget=forms.Select(
choices=ARCHI_TYPE)
choices=ARCHI_TYPE,
)
)
inhibited = forms.ChoiceField(
widget=forms.RadioSelect,
......
......@@ -783,13 +783,11 @@ body {
}
.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;
}
......
......@@ -20,15 +20,15 @@ $(document).ready(function() {
$(document).ready(function(){
$('#id_ProteinDomainComplexTypeForm-archi').on('change', function() {
if ( this.value === "stabilized")
if ( this.value === "inhibited")
{
$("#stabilized").show();
$("#inhibited").hide();
$("#inhibited").show();
$("#stabilized").hide();
}
else
{
$("#stabilized").hide();
$("#inhibited").show();
$("#inhibited").hide();
$("#stabilized").show();
}
});
});
\ No newline at end of file
......@@ -14,58 +14,56 @@
</div>
<div id="Form">
<div class="step_desc">
<p>Based on the ID you have provided, we have identified the following information concerning your bibliographic source.
Please check that the information below is correct (Title, Authors etc. ) and answer the few questions about the content of your bibliographic source.</p>
<p>Based on the ID you have provided, we have identified the following information concerning your bibliographic source.
Please check that the information below is correct (Title, Authors etc. ) and answer the few questions about the content of your bibliographic source.</p>
</div>
<form action="" method="post">
{% csrf_token %}
<table>
{{ wizard.management_form }}
{{ wizard.form.errors}}
{{ wizard.form.non_field_errors}}
{% block custom_form %}{% endblock %}
{{ wizard.management_form }}
{{ wizard.form.errors}}
{{ wizard.form.non_field_errors}}
{% block custom_form %}{% endblock %}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form }}
{% endfor %}
{% else %}
<div class="readonlyfields">
{{ wizard.form.source }}<br/>
{{ wizard.form.id_source }}<br/>
{{ wizard.form.title }}<br/>
{{ wizard.form.journal_name }}<br/>
</div>
<p> This publication contains :<br/></p>
<div id="ck-button">
<label>
<input type="checkbox"><span>{{ wizard.form.cytotox.label }}</span>
</label>
<label>
<input type="checkbox"><span>{{ wizard.form.in_silico.label }}</span>
</label>
<label>
<input type="checkbox"><span>{{ wizard.form.in_vitro.label }}</span>
</label>
<label>
<input type="checkbox"><span>{{ wizard.form.in_vivo.label }}</span>
</label>
<label>
<input type="checkbox"><span>{{ wizard.form.in_cellulo.label }}</span>
</label>
<label>
<input type="checkbox"><span>{{ wizard.form.pharmacokinetic.label }}</span>
</label>
<label>
<input type="checkbox"><span>{{ wizard.form.xray.label }}</span>
</label>
</div>
{% endif %}
</table>
<input type="submit" value="{% trans "Next step" %}"/>
</form>
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form }}
{% endfor %}
{% else %}
<div class="readonlyfields">
{{ wizard.form.source }}<br/>
{{ wizard.form.id_source }}<br/>
{{ wizard.form.title }}<br/>
{{ wizard.form.journal_name }}<br/>
</div>
<p> This publication contains :<br/></p>
<div id="ck-button">
<label>
<input type="checkbox"><span>{{ wizard.form.cytotox.label }}</span>
</label>
<label>
<input type="checkbox"><span>{{ wizard.form.in_silico.label }}</span>
</label>
<label>
<input type="checkbox"><span>{{ wizard.form.in_vitro.label }}</span>
</label>
<label>
<input type="checkbox"><span>{{ wizard.form.in_vivo.label }}</span>
</label>
<label>
<input type="checkbox"><span>{{ wizard.form.in_cellulo.label }}</span>
</label>
<label>
<input type="checkbox"><span>{{ wizard.form.pharmacokinetic.label }}</span>
</label>
<label>
<input type="checkbox"><span>{{ wizard.form.xray.label }}</span>
</label>
</div>
{% endif %}
</table>
{% if wizard.steps.prev %}
{% endif %}
<input type="submit" value="{% trans "Next step" %}"/>
</div>
{% endblock %}
\ No newline at end of file
......@@ -23,24 +23,25 @@
{{ wizard.form.errors}}
{{ wizard.form.non_field_errors}}
{% block custom_form %}{% endblock %}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form }}
{% endfor %}
{% else %}
<div id="id_IdForm-source">
{% for radio in wizard.form.source %}
{{ radio.tag }}
<label for="{{ radio.id_for_label }}">
<span>{{ radio.choice_label }}</span>
</label>
{% endfor %}
</div>
{{ wizard.form.id_source}}
{% endif %}
</table>
<input type="submit" value="{% trans "Next step" %}"/>
</form>
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form }}
{% endfor %}
{% else %}
<div id="id_IdForm-source">
{% for radio in wizard.form.source %}
{{ radio.tag }}
<label for="{{ radio.id_for_label }}">
<span>{{ radio.choice_label }}</span>
</label>
{% endfor %}
</div>
{{ wizard.form.id_source}}
{% endif %}
</table>
<input type="submit" value="{% trans "Next step" %}"/>
</div>
{% endblock %}
\ No newline at end of file
......@@ -23,19 +23,20 @@
{{ wizard.form.errors}}
{{ wizard.form.non_field_errors}}
{% block custom_form %}{% endblock %}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form }}
{% endfor %}
{% else %}
<div class="input_fields_wrap">
<div class="input_size">{{ wizard.form.pdb_id }}
<div class="add_field_button"><img class="small_icon" src="/static/images/Other/AddMore.png"></div></div>
</div>
{% endif %}
</table>
<input type="submit" value="{% trans "Next step" %}"/>
</form>
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form }}
{% endfor %}
{% else %}
<div class="input_fields_wrap">
<div class="input_size">{{ wizard.form.pdb_id }}
<div class="add_field_button"><img class="small_icon" src="/static/images/Other/AddMore.png"></div></div>
</div>
{% endif %}
</table>
<input type="submit" value="{% trans "Next step" %}"/>
</div>
{% endblock %}
\ No newline at end of file
......@@ -23,20 +23,21 @@
{{ wizard.form.errors}}
{{ wizard.form.non_field_errors}}
{% block custom_form %}{% endblock %}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form }}
{% endfor %}
{% else %}
{{ wizard.form }}
{% endif %}
</table>
{% if wizard.steps.prev %}
<button name="wizard_goto_step" type="submit" value="{{ wizard.steps.first }}">{% trans "first step" %}</button>
<button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}">{% trans "previous step" %}</button>
{% endif %}
<input type="submit" value="{% trans "submit" %}"/>
</form>
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form }}
{% endfor %}
{% else %}
{{ wizard.form }}
{% endif %}
</table>
{% if wizard.steps.prev %}
<button name="wizard_goto_step" type="submit" value="{{ wizard.steps.first }}">{% trans "first step" %}</button>
<button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}">{% trans "previous step" %}</button>
{% endif %}
<input type="submit" value="{% trans "submit" %}"/>
</div>
{% endblock %}
\ No newline at end of file
......@@ -25,19 +25,20 @@ If your PPI complex is not among them, please select « Create you Own »</p>
{{ wizard.form.errors}}
{{ wizard.form.non_field_errors}}
{% block custom_form %}{% endblock %}
</form>
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form }}
{% endfor %}
{% else %}
{{ wizard.form }}
{% endif %}
</table>
{% if wizard.steps.prev %}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form }}
{% endfor %}
{% else %}
{{ wizard.form }}
{% endif %}
</table>
{% if wizard.steps.prev %}
{% endif %}
<input type="submit" value="{% trans "Next step" %}"/>
{% endif %}
<input type="submit" value="{% trans "Next step" %}"/>
</form>
</div>
{% endblock %}
\ No newline at end of file
......@@ -24,39 +24,40 @@ If your PPI complex is not among them, please select « Create you Own »</p>
{{ wizard.form.errors}}
{{ wizard.form.non_field_errors}}
{% block custom_form %}{% endblock %}
</form>
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{% endfor %}
{% else %}
{{ wizard.form.archi }}
<div id='inhibited' name='inhibited' class="type_style">
<div class="type_title">
<h1>Inhibited</h1>
</div>
<div id="id_ProteinDomainComplexTypeForm-inhibited" class="image-inhibited">
{% for radio in wizard.form.inhibited %}
{{ radio.tag }}
<label for="{{ radio.id_for_label }}">
<span>{{ radio.choice_label}}</span>
</label>
{% endfor %}
</div>
</div>
<div id="stabilized" class="type_style">
<div class="type_title"><h1>Stabilized</h1></div>
<div id="id_ProteinDomainComplexTypeForm-stabilized">
{% for radio in wizard.form.stabilized %}
{{ radio.tag }}
<label style="background-image: url('/static/images/DimericsPPI/Stabilized/{{radio.choice_label|cut:" "}}.png');" for="{{ radio.id_for_label }}">
<span>{{ radio.choice_label}}</span>
</label>
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{% endfor %}
</div>
</div>
{% endif %}
</table>
<input type="submit" value="{% trans "Next step" %}"/>
{% else %}
{{ wizard.form.archi }}
<div id='inhibited' name='inhibited' class="type_style">
<div class="type_title">
<h1>Inhibited</h1>
</div>
<div id="id_ProteinDomainComplexTypeForm-inhibited" class="image-inhibited">
{% for radio in wizard.form.inhibited %}
{{ radio.tag }}
<label style="background-image: url('/static/images/PPITypes/Inhibited/{{radio.choice_label|cut:" "}}_Apo.png');" for="{{ radio.id_for_label }}">
<span>{{ radio.choice_label}}</span>
</label>
{% endfor %}
</div>
</div>
<div id="stabilized" class="type_style">
<div class="type_title"><h1>Stabilized</h1></div>
<div id="id_ProteinDomainComplexTypeForm-stabilized">
{% for radio in wizard.form.stabilized %}
{{ radio.tag }}
<label style="background-image: url('/static/images/DimericsPPI/Stabilized/{{radio.choice_label|cut:" "}}.png');" for="{{ radio.id_for_label }}">
<span>{{ radio.choice_label}}</span>
</label>
{% endfor %}
</div>
</div>
{% endif %}
</table>
<input type="submit" value="{% trans "Next step" %}"/>
</form>
</div>
{% endblock %}
\ No newline at end of file
......@@ -23,21 +23,22 @@
{{ wizard.form.errors}}
{{ wizard.form.non_field_errors}}
{% block custom_form %}{% endblock %}
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form }}
{% endfor %}
{% else %}
{{ wizard.form.management_form }}
{% for form in formset %}
{% for field in form %}
{{ field.label_tag }} {{ field }}
{% endfor %}
{% endfor %}
{% endif %}
</table>
<input type="submit" value="{% trans "Next step" %}"/>
</form>
{% if wizard.form.forms %}
{{ wizard.form.management_form }}
{% for form in wizard.form.forms %}
{{ form }}
{% endfor %}
{% else %}
{{ formset.management_form }}
{% for form in formset %}
{% for field in form %}
{{ field.label_tag }} {{ field }}
{% endfor %}
{% endfor %}
{% endif %}
</table>
<input type="submit" value="{% trans "Next step" %}"/>
</div>
{% endblock %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment