CompoundForm.html 1.44 KB
Newer Older
1
2
{% extends "add.html" %}
{% load i18n %}
3
{% load customtags %}
4
5
6
7
{% load sstatic %}

{% block extra_js %}
{{block.super}}
8
9
10
11
{% if marvinjs_apikey != None %}
<script src="https://marvinjs.chemicalize.com/v1/{{ marvinjs_apikey }}/client-settings.js"></script>
<script src="https://marvinjs.chemicalize.com/v1/client.js"></script>
{% endif %}
12
13
14
<script src="/static/js/ippidb-compoundws.js"></script>
<script src="{% sstatic '/js/ippidb-marvinjsmodal.js'%}"></script>
<script src="{% sstatic '/js/compound_form.js'%}"></script>
15
<script src="/static/js/compound_form.js"></script>
16
17
{% endblock extra_js %}

18
19

{% block form %}
Bryan  BRANCOTTE's avatar
Bryan BRANCOTTE committed
20
21
<div class="form_div form_div-fluid">
    {% if wizard.form.forms is not None %}
22
    {{wizard.form|bootstrap}}
23
24
25
26
    {{ wizard.form.management_form }}
    {% for form in wizard.form.forms %}
    {% include "compound_form_content.html" with form=form%}
    {% endfor %}
Bryan  BRANCOTTE's avatar
Bryan BRANCOTTE committed
27
    <div class="form_div">
28
        <input type="button" id="ck-button-long" class="add-test" value="+ Add an other compound"
29
               onclick="apply_molecule_composition_tuning(add_form_to_formset(this,'{{wizard.form.prefix}}'));"/>
30
    </div>
Bryan  BRANCOTTE's avatar
Bryan BRANCOTTE committed
31
    {% endif %}
32
</div>
Rachel TORCHET's avatar
Rachel TORCHET committed
33
{% endblock %}
34
35
36

{% block emptyform %}
{% include "compound_form_content.html" with form=wizard.form.empty_form %}
37
38
39
40
41
42
{% endblock emptyform%}

{% block content%}
{{block.super}}
{% include "marvinjs_modal.html" with smiles=similar_to_query fingerprint=similar_to_fingerprint use_fingerprints=False %}
{% endblock content%}