Commit fe23d021 authored by Rachel TORCHET's avatar Rachel TORCHET
Browse files

BibliographyForm - Update aspect of checkbox list and add "for" argument to...

BibliographyForm - Update aspect of checkbox list and add "for" argument to label making them clickable
parent 429db16e
No preview for this file type
......@@ -220,11 +220,11 @@ Description: IPPI-DB Theme
/* BibliographyForm */
.styled-checkbox {
position: absolute;
.biblioChoices {
margin: 0 auto;
width: 167px;
}
/* Form step items */
.compound {
......
......@@ -24,7 +24,7 @@
{{ hidden }}
{% endfor %}
<p> This publication contains :<br/></p>
<div>
<div class="biblioChoices">
{{ wizard.form.cytotox|bootstrap }}
{{ wizard.form.in_silico|bootstrap }}
{{ wizard.form.in_vitro|bootstrap }}
......
......@@ -84,7 +84,7 @@ def bootstrap_core(object):
if print_label:
# most of the use case want to print the label
ret.append("""<label class="%s">%s</label>""" % (label_classes, field.label))
ret.append("""<label class="%s" for="%s">%s</label>""" % (label_classes, field.id_for_label, field.label))
# If the field has a datalist attribut the input field will suggest from it, printing the element
if datalist:
......
Supports Markdown
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