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
Branches
Tags
No related merge requests found
...@@ -68,7 +68,8 @@ class ProteinDomainComplexTypeForm(forms.Form): ...@@ -68,7 +68,8 @@ class ProteinDomainComplexTypeForm(forms.Form):
archi = forms.CharField( archi = forms.CharField(
label="PPI Architecture Type", label="PPI Architecture Type",
widget=forms.Select( widget=forms.Select(
choices=ARCHI_TYPE) choices=ARCHI_TYPE,
)
) )
inhibited = forms.ChoiceField( inhibited = forms.ChoiceField(
widget=forms.RadioSelect, widget=forms.RadioSelect,
......
...@@ -783,13 +783,11 @@ body { ...@@ -783,13 +783,11 @@ body {
} }
.image-inhibited label span{ .image-inhibited label span{
background-image: url('/static/images/PPITypes/Inhibited/{{radio.choice_label|cut:" "}}_Apo.png');
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
.image-inhibited label span:hover { .image-inhibited label span:hover {
background-image: url('/static/images/PPITypes/Inhibited/{{radio.choice_label|cut:" "}}_Halo.png');
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
} }
......
...@@ -20,15 +20,15 @@ $(document).ready(function() { ...@@ -20,15 +20,15 @@ $(document).ready(function() {
$(document).ready(function(){ $(document).ready(function(){
$('#id_ProteinDomainComplexTypeForm-archi').on('change', function() { $('#id_ProteinDomainComplexTypeForm-archi').on('change', function() {
if ( this.value === "stabilized") if ( this.value === "inhibited")
{ {
$("#stabilized").show(); $("#inhibited").show();
$("#inhibited").hide(); $("#stabilized").hide();
} }
else else
{ {
$("#stabilized").hide(); $("#inhibited").hide();
$("#inhibited").show(); $("#stabilized").show();
} }
}); });
}); });
\ No newline at end of file
...@@ -24,7 +24,7 @@ Please check that the information below is correct (Title, Authors etc. ) and an ...@@ -24,7 +24,7 @@ Please check that the information below is correct (Title, Authors etc. ) and an
{{ wizard.form.errors}} {{ wizard.form.errors}}
{{ wizard.form.non_field_errors}} {{ wizard.form.non_field_errors}}
{% block custom_form %}{% endblock %} {% block custom_form %}{% endblock %}
</form>
{% if wizard.form.forms %} {% if wizard.form.forms %}
{{ wizard.form.management_form }} {{ wizard.form.management_form }}
{% for form in wizard.form.forms %} {% for form in wizard.form.forms %}
...@@ -63,9 +63,7 @@ Please check that the information below is correct (Title, Authors etc. ) and an ...@@ -63,9 +63,7 @@ Please check that the information below is correct (Title, Authors etc. ) and an
</div> </div>
{% endif %} {% endif %}
</table> </table>
{% if wizard.steps.prev %}
{% endif %}
<input type="submit" value="{% trans "Next step" %}"/> <input type="submit" value="{% trans "Next step" %}"/>
</form>
</div> </div>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
{{ wizard.form.errors}} {{ wizard.form.errors}}
{{ wizard.form.non_field_errors}} {{ wizard.form.non_field_errors}}
{% block custom_form %}{% endblock %} {% block custom_form %}{% endblock %}
</form>
{% if wizard.form.forms %} {% if wizard.form.forms %}
{{ wizard.form.management_form }} {{ wizard.form.management_form }}
{% for form in wizard.form.forms %} {% for form in wizard.form.forms %}
...@@ -42,5 +42,6 @@ ...@@ -42,5 +42,6 @@
{% endif %} {% endif %}
</table> </table>
<input type="submit" value="{% trans "Next step" %}"/> <input type="submit" value="{% trans "Next step" %}"/>
</form>
</div> </div>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
{{ wizard.form.errors}} {{ wizard.form.errors}}
{{ wizard.form.non_field_errors}} {{ wizard.form.non_field_errors}}
{% block custom_form %}{% endblock %} {% block custom_form %}{% endblock %}
</form>
{% if wizard.form.forms %} {% if wizard.form.forms %}
{{ wizard.form.management_form }} {{ wizard.form.management_form }}
{% for form in wizard.form.forms %} {% for form in wizard.form.forms %}
...@@ -37,5 +37,6 @@ ...@@ -37,5 +37,6 @@
{% endif %} {% endif %}
</table> </table>
<input type="submit" value="{% trans "Next step" %}"/> <input type="submit" value="{% trans "Next step" %}"/>
</form>
</div> </div>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
{{ wizard.form.errors}} {{ wizard.form.errors}}
{{ wizard.form.non_field_errors}} {{ wizard.form.non_field_errors}}
{% block custom_form %}{% endblock %} {% block custom_form %}{% endblock %}
</form>
{% if wizard.form.forms %} {% if wizard.form.forms %}
{{ wizard.form.management_form }} {{ wizard.form.management_form }}
{% for form in wizard.form.forms %} {% for form in wizard.form.forms %}
...@@ -38,5 +38,6 @@ ...@@ -38,5 +38,6 @@
<button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}">{% trans "previous step" %}</button> <button name="wizard_goto_step" type="submit" value="{{ wizard.steps.prev }}">{% trans "previous step" %}</button>
{% endif %} {% endif %}
<input type="submit" value="{% trans "submit" %}"/> <input type="submit" value="{% trans "submit" %}"/>
</form>
</div> </div>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -25,7 +25,7 @@ If your PPI complex is not among them, please select « Create you Own »</p> ...@@ -25,7 +25,7 @@ If your PPI complex is not among them, please select « Create you Own »</p>
{{ wizard.form.errors}} {{ wizard.form.errors}}
{{ wizard.form.non_field_errors}} {{ wizard.form.non_field_errors}}
{% block custom_form %}{% endblock %} {% block custom_form %}{% endblock %}
</form>
{% if wizard.form.forms %} {% if wizard.form.forms %}
{{ wizard.form.management_form }} {{ wizard.form.management_form }}
{% for form in wizard.form.forms %} {% for form in wizard.form.forms %}
...@@ -39,5 +39,6 @@ If your PPI complex is not among them, please select « Create you Own »</p> ...@@ -39,5 +39,6 @@ If your PPI complex is not among them, please select « Create you Own »</p>
{% endif %} {% endif %}
<input type="submit" value="{% trans "Next step" %}"/> <input type="submit" value="{% trans "Next step" %}"/>
</form>
</div> </div>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -24,7 +24,7 @@ If your PPI complex is not among them, please select « Create you Own »</p> ...@@ -24,7 +24,7 @@ If your PPI complex is not among them, please select « Create you Own »</p>
{{ wizard.form.errors}} {{ wizard.form.errors}}
{{ wizard.form.non_field_errors}} {{ wizard.form.non_field_errors}}
{% block custom_form %}{% endblock %} {% block custom_form %}{% endblock %}
</form>
{% if wizard.form.forms %} {% if wizard.form.forms %}
{{ wizard.form.management_form }} {{ wizard.form.management_form }}
{% for form in wizard.form.forms %} {% for form in wizard.form.forms %}
...@@ -38,7 +38,7 @@ If your PPI complex is not among them, please select « Create you Own »</p> ...@@ -38,7 +38,7 @@ If your PPI complex is not among them, please select « Create you Own »</p>
<div id="id_ProteinDomainComplexTypeForm-inhibited" class="image-inhibited"> <div id="id_ProteinDomainComplexTypeForm-inhibited" class="image-inhibited">
{% for radio in wizard.form.inhibited %} {% for radio in wizard.form.inhibited %}
{{ radio.tag }} {{ radio.tag }}
<label for="{{ radio.id_for_label }}"> <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> <span>{{ radio.choice_label}}</span>
</label> </label>
{% endfor %} {% endfor %}
...@@ -58,5 +58,6 @@ If your PPI complex is not among them, please select « Create you Own »</p> ...@@ -58,5 +58,6 @@ If your PPI complex is not among them, please select « Create you Own »</p>
{% endif %} {% endif %}
</table> </table>
<input type="submit" value="{% trans "Next step" %}"/> <input type="submit" value="{% trans "Next step" %}"/>
</form>
</div> </div>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -23,14 +23,14 @@ ...@@ -23,14 +23,14 @@
{{ wizard.form.errors}} {{ wizard.form.errors}}
{{ wizard.form.non_field_errors}} {{ wizard.form.non_field_errors}}
{% block custom_form %}{% endblock %} {% block custom_form %}{% endblock %}
</form>
{% if wizard.form.forms %} {% if wizard.form.forms %}
{{ wizard.form.management_form }} {{ wizard.form.management_form }}
{% for form in wizard.form.forms %} {% for form in wizard.form.forms %}
{{ form }} {{ form }}
{% endfor %} {% endfor %}
{% else %} {% else %}
{{ formset.management_form }} {{ wizard.form.management_form }}
{% for form in formset %} {% for form in formset %}
{% for field in form %} {% for field in form %}
{{ field.label_tag }} {{ field }} {{ field.label_tag }} {{ field }}
...@@ -39,5 +39,6 @@ ...@@ -39,5 +39,6 @@
{% endif %} {% endif %}
</table> </table>
<input type="submit" value="{% trans "Next step" %}"/> <input type="submit" value="{% trans "Next step" %}"/>
</form>
</div> </div>
{% endblock %} {% endblock %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment