Commit 56f627f0 authored by Rachel TORCHET's avatar Rachel TORCHET
Browse files

Update CSS files


Former-commit-id: 9900cb358508d83cb74d1ab51cb1a2c4c1d44826
parent 800b340a
......@@ -4,7 +4,7 @@ from django.db import models
from django.core.exceptions import ValidationError
from django.core.validators import RegexValidator
from .models import Bibliography, Protein, ProteinDomainComplex, Ppi, PpiComplex, Compound, RefCompoundBiblio, TestActivityDescription
from .models import Bibliography, Protein, ProteinDomainComplex, Ppi, PpiComplex, Compound, RefCompoundBiblio, Symmetry, TestActivityDescription
from .ws import pdb_entry_exists
class IdForm(ModelForm):
......@@ -111,21 +111,56 @@ class PpiComplexForm(ModelForm):
model = PpiComplex
fields = ['cc_nb',]
class PpiAndPpiComplexForm (forms.Form):
pdb_id = forms.CharField(label='PDB ID', max_length=4, required=False)
symmetry = forms.ModelChoiceField(queryset=Symmetry.objects.all(), required=True)
cc_nb = forms.IntegerField(
label='Number of copies of the complex in the PPI',
initial=1,
)
def __init__(self, *args, **kwargs):
super(PpiAndPpiComplexForm,self).__init__(*args, **kwargs)
self.fields['symmetry'].initial = Symmetry.objects.all().first()
def save(self, commit=True):
ppi = Ppi.objects.create(
pdb_id=self.cleaned_data['pdb_id'],
symmetry=self.cleaned_data['symmetry'],
)
ppi_complex = PpiComplex.objects.create(
cc_nb=self.cleaned_data['cc_nb'],
ppi=ppi,
)
if commit:
ppi.save()
ppi_complex.save()
return dict(
ppi=ppi,
ppi_complex=ppi_complex,
)
#instance = super(MyForm, self).save(commit=False)
#instance.flag1 = 'flag1' in self.cleaned_data['multi_choice'] # etc
#if commit:
#instance.save()
#return instance
pass
class CompoundForm(ModelForm):
class Meta:
model = Compound
fields = ['common_name','is_macrocycle']
widgets = {
'common_name': forms.TextInput(attrs={'placeholder':'Choose a common name', 'required': 'required'}),
'common_name': forms.TextInput(attrs={'placeholder':'Common name', 'required': 'required'}),
}
class RefCompoundBiblioForm(ModelForm):
model=RefCompoundBiblio
exclude = ['compound', 'bibliography']
widgets = {
'compound_name': forms.TextInput(attrs={'placeholder':'Compound name in the publication'})
}
TYPE_MOLECULE = (
('smiles', 'smiles'),
......@@ -136,15 +171,12 @@ TYPE_MOLECULE = (
class BaseCompoundFormSet(BaseFormSet):
def add_fields(self, form, index):
super(BaseCompoundFormSet, self).add_fields(form, index)
form.fields["compound_name"] = forms.CharField(widget=forms.TextInput(attrs={'placeholder':'Compound name in the publication', 'onkeyup':"AnEventHasOccurred(this.id)", 'required':'required'}))
form.fields["molecule"] = forms.CharField(widget=forms.RadioSelect(choices=TYPE_MOLECULE, attrs={'onclick':"showMol(this.id)"}))
form.fields["molecule_comp"] = forms.CharField(widget=forms.TextInput(attrs={'placeholder':'Molecule commposition here', 'required':'required'}))
form.fields["compound_name"] = forms.CharField(widget=forms.TextInput(attrs={'placeholder':'Name in the publication','required':'required'}))
form.fields["molecule"] = forms.CharField(widget=forms.Select(choices=TYPE_MOLECULE))
form.fields["molecule_comp"] = forms.CharField(widget=forms.TextInput(attrs={'placeholder':'Molecule composition', 'required':'required'}))
CompoundFormSet = formset_factory(CompoundForm, formset=BaseCompoundFormSet, extra=2, max_num=500, can_delete=True)
formset = CompoundFormSet()
print(formset.is_valid())
for form in formset:
print(form.as_table())
class TestsForm(ModelForm):
......
This diff is collapsed.
/*
Theme Name: IPPI-DB
Theme URI: https://ippidb.pasteur.fr/
Author: Rachel Torchet
Description: IPPI-DB Theme
*/
/* FONTS */
@font-face {
font-family: 'BrandonGrotesqueReg';
src: url('../fonts/brandon_reg/brandon_reg-webfont.eot');
src: url('../fonts/brandon_reg/brandon_reg-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/brandon_reg/brandon_reg-webfont.woff2') format('woff2'),
url('../fonts/brandon_reg/brandon_reg-webfont.woff') format('woff'),
url('../fonts/brandon_reg/brandon_reg-webfont.svg#brandon_grotesquereg') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'BrandonGrotesqueBld';
src: url('../fonts/brandon_bld/brandon_bld-webfont-webfont.eot');
src: url('../fonts/brandon_bld/brandon_bld-webfont-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/brandon_bld/brandon_bld-webfont-webfont.woff2') format('woff2'),
url('../fonts/brandon_bld/brandon_bld-webfont-webfont.woff') format('woff'),
url('../fonts/brandon_bld/brandon_bld-webfont-webfont.svg#brandon_grotesquebld') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'BrandonGrotesqueBlk';
src: url('../fonts/brandon_blk/brandon_blk-webfont.eot');
src: url('../fonts/brandon_blk/brandon_blk-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/brandon_blk/brandon_blk-webfont.woff2') format('woff2'),
url('../fonts/brandon_blk/brandon_blk-webfont.woff') format('woff'),
url('../fonts/brandon_blk/brandon_blk-webfont.svg#brandon_grotesqueblk') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'PlayfairDisplayBld';
src: url('../fonts/playfairdisplay/playfairdisplay-bold-webfont.eot');
src: url('../fonts/playfairdisplay/playfairdisplay-bold-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/playfairdisplay/playfairdisplay-bold-webfont.woff2') format('woff2'),
url('../fonts/playfairdisplay/playfairdisplay-bold-webfont.woff') format('woff'),
url('../fonts/playfairdisplay/playfairdisplay-bold-webfont.svg#playfair_displaybld') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'PlayfairDisplayIta';
src: url('../fonts/playfairdisplay/playfairdisplay-italic-webfont.eot');
src: url('../fonts/playfairdisplay/playfairdisplay-italic-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/playfairdisplay/playfairdisplay-italic-webfont.woff2') format('woff2'),
url('../fonts/playfairdisplay/playfairdisplay-italic-webfont.woff') format('woff'),
url('../fonts/playfairdisplay/playfairdisplay-italic-webfont.svg#playfair_displayita') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'PlayfairDisplayReg';
src: url('../fonts/playfairdisplay/playfairdisplay-regular-webfont.eot');
src: url('../fonts/playfairdisplay/playfairdisplay-regular-webfont.eot?#iefix') format('embedded-opentype'),
url('../fonts/playfairdisplay/playfairdisplay-regular-webfont.woff2') format('woff2'),
url('../fonts/playfairdisplay/playfairdisplay-regular-webfont.woff') format('woff'),
url('../fonts/playfairdisplay/playfairdisplay-regular-webfont.svg#playfair_displayreg') format('svg');
font-weight: normal;
font-style: normal;
}
This diff is collapsed.
......@@ -41,4 +41,4 @@ $(document).ready(function(){
}).on('click','.box--active',function() {
$(this).removeClass('box--active');
})
});
\ No newline at end of file
});
......@@ -2,23 +2,25 @@
{% load i18n %}
{% block form %}
<div id="step">
<ul>
<li><a class="validate" href='/admin-session/add/IdForm/'>{% trans "ID" %}</a></li>
<li><a class="active" href='/admin-session/add/BibliographyForm/'>{% trans "Bibliography" %}</a></li>
<li><a href='/admin-session/add/PDBForm/'>{% trans "PDB id" %}</a></li>
<li><a href='/admin-session/add/ProteinDomainComplexTypeForm/'>{% trans "Architecture" %}</a></li>
<li><a href='/admin-session/add/ProteinDomainComplexForm/'>{% trans "Composition" %}</a></li>
<li><a href='/admin-session/add/PPIForm/'>{% trans "PPI" %}</a></li>
<li><a href='/admin-session/add/CompoundForm/'>{% trans "Compounds" %}</a></li>
<li><a href='/admin-session/add/TestsForm/'>{% trans "Tests" %}</a></li>
</ul>
</div>
<nav>
<div class="step_nav">
<ul>
<li><a class="validate" href='/admin-session/add/IdForm/'>{% trans "ID" %}</a></li>
<li><a class="active" href='/admin-session/add/BibliographyForm/'>{% trans "Bibliography" %}</a></li>
<li><a href='/admin-session/add/PDBForm/'>{% trans "PDB id" %}</a></li>
<li><a href='/admin-session/add/ProteinDomainComplexTypeForm/'>{% trans "Architecture" %}</a></li>
<li><a href='/admin-session/add/ProteinDomainComplexForm/'>{% trans "Composition" %}</a></li>
<li><a href='/admin-session/add/PpiForm/'>{% trans "PPI" %}</a></li>
<li><a href='/admin-session/add/CompoundForm/'>{% trans "Compounds" %}</a></li>
<li><a href='/admin-session/add/TestsForm/'>{% trans "Tests" %}</a></li>
</ul>
</div>
</nav>
<div id="Form">
<div class="step_desc">
<h1 class="step_title">Bibliography informations</h1>
<p class="step_step">Step {{ wizard.steps.step1 }} on {{ wizard.steps.count }}</p>
<p> According to the ID you gave, here are the informations that we collect. Could you complete informations contained in it. </p>
<p class="step_step_desc"> According to the ID you gave, here are the informations that we collect. Could you complete informations contained in it. </p>
</div>
<div class="form_div">
<form action="" method="post">
......@@ -77,8 +79,8 @@
</div>
{% endif %}
</table>
<input type="submit" value="{% trans "Next step" %}"/>
<a href="{% url 'ippidb' %}?reset" class="clear_all">Clear all</a>
<input class="submit_button" type="submit" value="{% trans "Next step" %}"/>
<div class="clear_button"><a href="{% url 'ippidb' %}?reset" class="clear_all">Clear all</a></div>
</form>
</div>
</div>
......
......@@ -2,23 +2,25 @@
{% load i18n %}
{% block form %}
<div id="step">
<ul>
<li><a class="validate" href='/admin-session/add/IdForm/'>{% trans "ID" %}</a></li>
<li><a class="validate" href='/admin-session/add/BibliographyForm/'>{% trans "Bibliography" %}</a></li>
<li><a class="validate" href='/admin-session/add/PDBForm/'>{% trans "PDB id" %}</a></li>
<li><a class="validate" href='/admin-session/add/ProteinDomainComplexTypeForm/'>{% trans "Architecture" %}</a></li>
<li><a class="validate" href='/admin-session/add/ProteinDomainComplexForm/'>{% trans "Composition" %}</a></li>
<li><a class="validate" href='/admin-session/add/PPIForm/'>{% trans "PPI" %}</a></li>
<li><a class="active" href='/admin-session/add/CompoundForm/'>{% trans "Compounds" %}</a></li>
<li><a href='/admin-session/add/TestsForm/'>{% trans "Tests" %}</a></li>
</ul>
</div>
<nav>
<div class="step_nav">
<ul>
<li><a class="validate" href='/admin-session/add/IdForm/'>{% trans "ID" %}</a></li>
<li><a class="validate" href='/admin-session/add/BibliographyForm/'>{% trans "Bibliography" %}</a></li>
<li><a class="validate" href='/admin-session/add/PDBForm/'>{% trans "PDB id" %}</a></li>
<li><a class="validate" href='/admin-session/add/ProteinDomainComplexTypeForm/'>{% trans "Architecture" %}</a></li>
<li><a class="validate" href='/admin-session/add/ProteinDomainComplexForm/'>{% trans "Composition" %}</a></li>
<li><a class="validate" href='/admin-session/add/PpiForm/'>{% trans "PPI" %}</a></li>
<li><a class="active" href='/admin-session/add/CompoundForm/'>{% trans "Compounds" %}</a></li>
<li><a href='/admin-session/add/TestsForm/'>{% trans "Tests" %}</a></li>
</ul>
</div>
</nav>
<div id="Form">
<div class="step_desc">
<h1 class="step_title">Sketch your compounds</h1>
<p class="step_step">Step {{ wizard.steps.step1 }} on {{ wizard.steps.count }}</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vulputate felis ac augue pretium, ac blandit lectus mattis. Vestibulum iaculis consequat facilisis. Duis porttitor erat mauris, non porttitor eros feugiat eu. Pellentesque id nisl vel nisl imperdiet convallis vel sed lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec dolor urna, posuere vitae leo quis, hendrerit imperdiet enim. Nunc nec euismod nisi. Phasellus ut ante ante.</p>
<p class="step_step_desc">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vulputate felis ac augue pretium, ac blandit lectus mattis. Vestibulum iaculis consequat facilisis. Duis porttitor erat mauris, non porttitor eros feugiat eu. Pellentesque id nisl vel nisl imperdiet convallis vel sed lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Donec dolor urna, posuere vitae leo quis, hendrerit imperdiet enim. Nunc nec euismod nisi. Phasellus ut ante ante.</p>
</div>
<div class="form_div">
<form action="" method="post">
......@@ -30,37 +32,16 @@
{{ wizard.form.management_form }}
<div class="compound">
{% for form in wizard.form.forms %}
{% if forloop.first %}
<div id="compound_{{ form.compound_name.id_for_label }}">
<h1 id="Name_{{ form.compound_name.id_for_label }}">Compound</h1>
<h2>Name your compound</h2>
<div class="compound_input">{{ form.common_name }}</div>
<div class="compound_input">{{ form.compound_name }}</div>
<h2>Choose a format to import your molecule</h2>
<div id="compound_mol">
{% for radio in form.molecule %}
<div class="compound_radio_{{ radio.choice_label }}">
{{ radio.tag }}
<label for="{{ radio.id_for_label }}">
<span>{{ radio.choice_label }}</span>
</label>
</div>
{% endfor %}
</div>
<div id="molecule_comp_{{ form.molecule.id_for_label }}">
{{form.molecule_comp}}
<div id="type_title">
<h1 id="Name_{{ form.compound_name.id_for_label }}">Compound</h1>
<h2>Name your compound</h2>
</div>
<div id="ck-button-long" class="compound_input">
<label>{{ form.is_macrocycle}}<span>{{ form.is_macrocycle.label }}</span></label>
</div>
</div>
{% else %}
<div id="compound_{{ form.compound_name.id_for_label }}">
<h1 id="Name_{{ form.compound_name.id_for_label }}">Compound</h1>
<h2>Name your compound</h2>
<div class="compound_input">{{ form.common_name }}</div>
<div class="compound_input">{{ form.compound_name }}</div>
<h2>Choose a format to import your molecule</h2>
<div id="type_title">
<h2>Choose a format to import your molecule</h2>
</div>
<div id="compound_mol">
{% for radio in form.molecule %}
<div class="compound_radio_{{ radio.choice_label }}">
......@@ -78,10 +59,6 @@
<label>{{ form.is_macrocycle}}<span>{{ form.is_macrocycle.label }}</span></label>
</div>
</div>
<div id="ck-button-long" class="compound_input">
<label>{{ form.DELETE}}<span>Remove compound</span></label>
</div>
{% endif %}
{% endfor %}
</div>
<!--<div class="add_form">
......@@ -95,4 +72,4 @@
</form>
</div>
</div>
{% endblock %}
\ No newline at end of file
{% endblock %}
......@@ -2,23 +2,25 @@
{% load i18n %}
{% block form %}
<div id="step">
<ul>
<li><a class="active" href='/admin-session/add/IdForm/'>{% trans "ID" %}</a></li>
<li><a href='/admin-session/add/BibliographyForm/'>{% trans "Bibliography" %}</a></li>
<li><a href='/admin-session/add/PDBForm/'>{% trans "PDB id" %}</a></li>
<li><a href='/admin-session/add/ProteinDomainComplexTypeForm/'>{% trans "Architecture" %}</a></li>
<li><a href='/admin-session/add/ProteinDomainComplexForm/'>{% trans "Composition" %}</a></li>
<li><a href='/admin-session/add/PPIForm/'>{% trans "PPI" %}</a></li>
<li><a href='/admin-session/add/CompoundForm/'>{% trans "Compounds" %}</a></li>
<li><a href='/admin-session/add/TestsForm/'>{% trans "Tests" %}</a></li>
</ul>
</div>
<nav>
<div class="step_nav">
<ul>
<li><a class="active" href='/admin-session/add/IdForm/'>{% trans "ID" %}</a></li>
<li><a href='/admin-session/add/BibliographyForm/'>{% trans "Bibliography" %}</a></li>
<li><a href='/admin-session/add/PDBForm/'>{% trans "PDB id" %}</a></li>
<li><a href='/admin-session/add/ProteinDomainComplexTypeForm/'>{% trans "Architecture" %}</a></li>
<li><a href='/admin-session/add/ProteinDomainComplexForm/'>{% trans "Composition" %}</a></li>
<li><a href='/admin-session/add/PpiForm/'>{% trans "PPI" %}</a></li>
<li><a href='/admin-session/add/CompoundForm/'>{% trans "Compounds" %}</a></li>
<li><a href='/admin-session/add/TestsForm/'>{% trans "Tests" %}</a></li>
</ul>
</div>
</nav>
<div id="Form">
<div class="step_desc">
<h1 class="step_title">Let's get started!</h1>
<p class="step_step">Step {{ wizard.steps.step1 }} on {{ wizard.steps.count }}</p>
<p> Please provide a valid ID for your bibliographic source, either a PubMed ID or WIPO ID. This ID should correspond to a bibliographic source in its final format. Therefore, PubMed articles in « Just Accepted » format should not be used as a source of data as they are not considered the official version of record. </p>
<p class="step_step_desc"> Please provide a valid ID for your bibliographic source, either a PubMed ID or WIPO ID. This ID should correspond to a bibliographic source in its final format. </br>Therefore, PubMed articles in « Just Accepted » format should not be used as a source of data as they are not considered the official version of record. </p>
</div>
<div class="form_div">
<form action="" method="post">
......@@ -44,12 +46,12 @@
</label>
{% endfor %}
</div>
{{ wizard.form.id_source}}
<div class="input_field">{{ wizard.form.id_source}}</div>
</div>
{% endif %}
</table>
<input type="submit" value="{% trans "Get Infos" %}"/>
<a href="{% url 'ippidb' %}?reset" class="clear_all">Clear all</a>
<input class="submit_button" type="submit" value="{% trans "Get Infos" %}"/>
<div class="clear_button"><a href="{% url 'ippidb' %}?reset" class="clear_all">Clear all</a></div>
</form>
</div>
</div>
......
......@@ -2,23 +2,25 @@
{% load i18n %}
{% block form %}
<div id="step">
<ul>
<li><a class="validate" href='/admin-session/add/IdForm/'>{% trans "ID" %}</a></li>
<li><a class="validate" href='/admin-session/add/BibliographyForm/'>{% trans "Bibliography" %}</a></li>
<li><a class="active" href='/admin-session/add/PDBForm/'>{% trans "PDB id" %}</a></li>
<li><a href='/admin-session/add/ProteinDomainComplexTypeForm/'>{% trans "Architecture" %}</a></li>
<li><a href='/admin-session/add/ProteinDomainComplexForm/'>{% trans "Composition" %}</a></li>
<li><a href='/admin-session/add/PPIForm/'>{% trans "PPI" %}</a></li>
<li><a href='/admin-session/add/CompoundForm/'>{% trans "Compounds" %}</a></li>
<li><a href='/admin-session/add/TestsForm/'>{% trans "Tests" %}</a></li>
</ul>
</div>
<nav>
<div class="step_nav">
<ul>
<li><a class="validate" href='/admin-session/add/IdForm/'>{% trans "ID" %}</a></li>
<li><a class="validate" href='/admin-session/add/BibliographyForm/'>{% trans "Bibliography" %}</a></li>
<li><a class="active" href='/admin-session/add/PDBForm/'>{% trans "PDB id" %}</a></li>
<li><a href='/admin-session/add/ProteinDomainComplexTypeForm/'>{% trans "Architecture" %}</a></li>
<li><a href='/admin-session/add/ProteinDomainComplexForm/'>{% trans "Composition" %}</a></li>
<li><a href='/admin-session/add/PpiForm/'>{% trans "PPI" %}</a></li>
<li><a href='/admin-session/add/CompoundForm/'>{% trans "Compounds" %}</a></li>
<li><a href='/admin-session/add/TestsForm/'>{% trans "Tests" %}</a></li>
</ul>
</div>
</nav>
<div id="Form">
<div class="step_desc">
<h1 class="step_title">Your PDB ID please</h1>
<p class="step_step">Step {{ wizard.steps.step1 }} on {{ wizard.steps.count }}</p>
<p>Please provide a valid PDB code that contains the structure of the full PPI complex for which you have data. The information within the PDB file will be used to prefill information of the corresponding proteins and domains participating to the PPI.</p>
<p class="step_step_desc">Please provide a valid PDB code that contains the structure of the full PPI complex for which you have data. The information within the PDB file will be used to prefill information of the corresponding proteins and domains participating to the PPI.</p>
</div>
<div class="form_div">
<form action="" method="post">
......@@ -34,11 +36,11 @@
test {{ form }}
{% endfor %}
{% else %}
{{form.pdb_id}}
<div class="input_field">{{form.pdb_id}}</div>
{% endif %}
</table>
<input type="submit" value="{% trans "Next step" %}"/>
<a href="{% url 'ippidb' %}?reset" class="clear_all">Clear all</a>
<input class="submit_button" type="submit" value="{% trans "Next step" %}"/>
<div class="clear_button"><a href="{% url 'ippidb' %}?reset" class="clear_all">Clear all</a></div>
</form>
</div>
</div>
......
......@@ -2,23 +2,25 @@
{% load i18n %}
{% block form %}
<div id="step">
<ul>
<nav>
<div class="step_nav">
<ul>
<li><a class="validate" href='/admin-session/add/IdForm/'>{% trans "ID" %}</a></li>
<li><a class="validate" href='/admin-session/add/BibliographyForm/'>{% trans "Bibliography" %}</a></li>
<li><a class="validate" href='/admin-session/add/PDBForm/'>{% trans "PDB id" %}</a></li>
<li><a class="validate" href='/admin-session/add/ProteinDomainComplexTypeForm/'>{% trans "Architecture" %}</a></li>
<li><a class="validate" href='/admin-session/add/ProteinDomainComplexForm/'>{% trans "Composition" %}</a></li>
<li><a class="active" href='/admin-session/add/PPIForm/'>{% trans "PPI" %}</a></li>
<li><a class="active" href='/admin-session/add/PpiForm/'>{% trans "PPI" %}</a></li>
<li><a href='/admin-session/add/CompoundForm/'>{% trans "Compounds" %}</a></li>
<li><a href='/admin-session/add/TestsForm/'>{% trans "Tests" %}</a></li>
</ul>
</div>
</ul>
</div>
</nav>
<div id="Form">
<div class="step_desc">
<h1 class="step_title">PPI symmetry</h1>
<p class="step_step">Step {{ wizard.steps.step1 }} on {{ wizard.steps.count }}</p>
<p>You have selected a <span style="color:#2d96fa;">{{ complex_type }}</span> that is <span style="color:#2d96fa;">{{ complex_choice }}</span> by the binding of PPI modulator. <br/>
<p class="step_step_desc">You have selected a <span style="color:#2d96fa;">{{ complex_type }}</span> that is <span style="color:#2d96fa;">{{ complex_choice }}</span> by the binding of PPI modulator. <br/>
Now that you have created a complexe that participate to the formation of the PPI, please choose the stoichiometry of the PPI.</p>
</div>
<div class="form_div">
......@@ -37,14 +39,16 @@
{% else %}
<div class="inline_box_complex">
<div class="inline_label"> PPI: </div>
<div>{{ wizard.form.pdb_id }}</div>
<div class="input_field">{{ wizard.form.pdb_id }}</div>
<div class="inline_field">{{ wizard.form.cc_nb }}</div>
<div class="inline_field">{{ wizard.form.symmetry }}</div>
</div>
{% endif %}
</table>
<input type="submit" value="{% trans "Next step" %}"/>
<a href="{% url 'ippidb' %}?reset" class="clear_all">Clear all</a>
<input type="hidden" name="ippi_wizard-current_step" value="PpiAndPpiComplexForm" id="id_ippi_wizard-current_step"/>
<input class="submit_button" type="submit" name="{{ wizard.steps.next }}" value="{% trans "Next step" %}"/>
<div class="clear_button"><a href="{% url 'ippidb' %}?reset" class="clear_all">Clear all</a></div>
</form>
<div>
</div>
......
......@@ -2,24 +2,25 @@
{% load i18n %}
{% block form %}
<div id="step">
<ul>
<li><a class="validate" href='/admin-session/add/IdForm/'>{% trans "ID" %}</a></li>
<li><a class="validate" href='/admin-session/add/BibliographyForm/'>{% trans "Bibliography" %}</a></li>
<li><a class="validate" href='/admin-session/add/PDBForm/'>{% trans "PDB id" %}</a></li>
<li><a class="validate" href='/admin-session/add/ProteinDomainComplexTypeForm/'>{% trans "Architecture" %}</a></li>
<li><a class="active" href='/admin-session/add/ProteinDomainComplexForm/'>{% trans "Composition" %}</a></li>
<li><a href='/admin-session/add/PPIForm/'>{% trans "PPI" %}</a></li>
<li><a href='/admin-session/add/CompoundForm/'>{% trans "Compounds" %}</a></li>
<li><a href='/admin-session/add/TestsForm/'>{% trans "Tests" %}</a></li>
</ul>
</div>
<nav>
<div class="step_nav">
<ul>
<li><a class="validate" href='/admin-session/add/IdForm/'>{% trans "ID" %}</a></li>
<li><a class="validate" href='/admin-session/add/BibliographyForm/'>{% trans "Bibliography" %}</a></li>
<li><a class="validate" href='/admin-session/add/PDBForm/'>{% trans "PDB id" %}</a></li>
<li><a class="validate" href='/admin-session/add/ProteinDomainComplexTypeForm/'>{% trans "Architecture" %}</a></li>
<li><a class="active" href='/admin-session/add/ProteinDomainComplexForm/'>{% trans "Composition" %}</a></li>
<li><a href='/admin-session/add/PpiForm/'>{% trans "PPI" %}</a></li>
<li><a href='/admin-session/add/CompoundForm/'>{% trans "Compounds" %}</a></li>
<li><a href='/admin-session/add/TestsForm/'>{% trans "Tests" %}</a></li>
</ul>
</div>
</nav>
<div id="Form">
<div class="step_step_desc">
<h1 class="step_title">Bound and Partner</h1>
<p class="step_step">Step {{ wizard.steps.step1 }} on {{ wizard.steps.count }}</p>
<p>You have selected a <span style="color:#2d96fa;">{{ complex_type }}</span> that is <span style="color:#2d96fa;">{{ complex_choice }}</span> by the binding of PPI modulator.<br/>
<p class="step_step_desc">You have selected a <span style="color:#2d96fa;">{{ complex_type }}</span> that is <span style="color:#2d96fa;">{{ complex_choice }}</span> by the binding of PPI modulator.<br/>
According to this architecture you need to specify:<br/>
</p>
</div>
......@@ -48,8 +49,8 @@
{% endif %}
<input type="hidden" name="ippi_wizard-current_step" value="ProteinDomainComplexForm" id="id_ippi_wizard-current_step"/>
</table>
<input type="submit" name="{{ wizard.steps.next }}" value="{% trans "Next step" %}"/>
<a href="{% url 'ippidb' %}?reset" class="clear_all">Clear all</a>
<input class="submit_button" type="submit" name="{{ wizard.steps.next }}" value="{% trans "Next step" %}"/>
<div class="clear_button"><a href="{% url 'ippidb' %}?reset" class="clear_all">Clear all</a></div>
</form>
</div>
</div>
......
......@@ -2,23 +2,25 @@
{% load i18n %}
{% block form %}
<div id="step">
<ul>
<li><a class="validate" href='/admin-session/add/IdForm/'>{% trans "ID" %}</a></li>
<li><a class="validate" href='/admin-session/add/BibliographyForm/'>{% trans "Bibliography" %}</a></li>
<li><a class="validate" href='/admin-session/add/PDBForm/'>{% trans "PDB id" %}</a></li>
<li><a class="active" href='/admin-session/add/ProteinDomainComplexTypeForm/'>{% trans "Architecture" %}</a></li>
<li><a href='/admin-session/add/ProteinDomainComplexForm/'>{% trans "Composition" %}</a></li>
<li><a href='/admin-session/add/PPIForm/'>{% trans "PPI" %}</a></li>
<li><a href='/admin-session/add/CompoundForm/'>{% trans "Compounds" %}</a></li>
<li><a href='/admin-session/add/TestsForm/'>{% trans "Tests" %}</a></li>
</ul>
</div>
<nav>
<div class="step_nav">
<ul>
<li><a class="validate" href='/admin-session/add/IdForm/'>{% trans "ID" %}</a></li>
<li><a class="validate" href='/admin-session/add/BibliographyForm/'>{% trans "Bibliography" %}</a></li>
<li><a class="validate" href='/admin-session/add/PDBForm/'>{% trans "PDB id" %}</a></li>
<li><a class="active" href='/admin-session/add/ProteinDomainComplexTypeForm/'>{% trans "Architecture" %}</a></li>
<li><a href='/admin-session/add/ProteinDomainComplexForm/'>{% trans "Composition" %}</a></li>
<li><a href='/admin-session/add/PpiForm/'>{% trans "PPI" %}</a></li>
<li><a href='/admin-session/add/CompoundForm/'>{% trans "Compounds" %}</a></li>
<li><a href='/admin-session/add/TestsForm/'>{% trans "Tests" %}</a></li>
</ul>
</div>
</nav>
<div id="Form">
<div class="step_desc">
<h1 class="step_title">Which architecture fits your PPI?</h1>
<p class="step_step">Step {{ wizard.steps.step1 }} on {{ wizard.steps.count }}</p>
<p>Now you need to select an architecture for the PPI complex among the proposed schematics below.</br>
<p class="step_step_desc">Now you need to select an architecture for the PPI complex among the proposed schematics below.</br>
If your PPI complex is not among them, please select « Custom »</p>
</div>
<div class="form_div">
......@@ -88,8 +90,8 @@ If your PPI complex is not among them, please select « Custom »</p>
</div>
{% endif %}
</table>
<input type="submit" value="{% trans "Next step" %}"/>
<a href="{% url 'ippidb' %}?reset" class="clear_all">Clear all</a>
<input class="submit_button" type="submit" value="{% trans "Next step" %}"/>
<div class="clear_button"><a href="{% url 'ippidb' %}?reset" class="clear_all">Clear all</a></div>
</form>
</div>
</div>
......
......@@ -2,23 +2,25 @@
{% load i18n %}
{% block form %}
<div id="step">
<ul>
<li><a class="validate" href='/admin-session/add/IdForm/'>{% trans "ID" %}</a></li>
<li><a class="validate" href='/admin-session/add/BibliographyForm/'>{% trans "Bibliography" %}</a></li>