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

tiny changes into form steps

Former-commit-id: a740b6c54380d162c8bbb2f86c748a70e0e13a3a
parent 88d26fdf
No related branches found
No related tags found
No related merge requests found
...@@ -17,14 +17,14 @@ class BibliographyForm(ModelForm): ...@@ -17,14 +17,14 @@ class BibliographyForm(ModelForm):
model = Bibliography model = Bibliography
exclude = ['authors_list', 'biblio_year'] exclude = ['authors_list', 'biblio_year']
widgets = { widgets = {
'source': forms.Select(attrs={'disabled':'disabled', 'class':'readonly'}), 'source': forms.TextInput(attrs={'readonly':'readonly','class':'readonly'}),
'id_source': forms.TextInput(attrs={'readonly':'readonly', 'class':'readonly'}), 'id_source': forms.TextInput(attrs={'readonly':'readonly', 'class':'readonly'}),
'title': forms.TextInput(attrs={'readonly':'readonly', 'class':'readonly'}), 'title': forms.TextInput(attrs={'readonly':'readonly', 'class':'readonly'}),
'journal_name': forms.TextInput(attrs={'readonly':'readonly', 'class':'readonly'}), 'journal_name': forms.TextInput(attrs={'readonly':'readonly', 'class':'readonly'}),
} }
class PDBForm(forms.Form): class PDBForm(forms.Form):
pdb_id = forms.CharField(label="PDB ID",max_length=100, widget=forms.TextInput(attrs={'placeholder': 'e.g 4HHB'})) pdb_id = forms.CharField(label="PDB ID",max_length=4, widget=forms.TextInput(attrs={'placeholder': 'e.g 4HHB'}))
class ProteinForm(ModelForm): class ProteinForm(ModelForm):
class Meta: class Meta:
......
...@@ -619,27 +619,6 @@ form { ...@@ -619,27 +619,6 @@ form {
div label input { div label input {
margin-right:100px; margin-right:100px;
display:none;
}
#id_IdForm-source{
list-style: none;
}
ul#id_IdForm-source li{
display:inline;
}
ul#id_IdForm-source li label{
text-align: center;
padding: 5px;
background-color: rgb(255, 255, 255);
color: rgb(45, 150, 250);
border: 1px solid rgb(45, 150, 250);
font-family: "Roboto";
font-weight: bold;
width: 33%;
margin: 5px;
} }
body { body {
...@@ -672,6 +651,7 @@ body { ...@@ -672,6 +651,7 @@ body {
#ck-button label input { #ck-button label input {
position:absolute; position:absolute;
top:-20px; top:-20px;
display:none;
} }
#ck-button input:hover + span { #ck-button input:hover + span {
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
{{ form }} {{ form }}
{% endfor %} {% endfor %}
{% else %} {% else %}
{{ wizard.form}} {{ wizard.form }}
{% endif %} {% endif %}
</table> </table>
<input type="submit" value="{% trans "Next step" %}"/> <input type="submit" value="{% trans "Next step" %}"/>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment