aboutsummaryrefslogtreecommitdiff
path: root/app/templates/mol-characteristics.html
blob: c7fc945c3beb992d7912bd778fb36a978c90c761 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{% extends 'base.html' %}
{% set active_page = "analyse" %}
{% block main %}
    <h1>Chemical Properties and Alerts</h1>
    <form action="{{ url_for('propalert') }}" method="post" enctype="multipart/form-data">
        {% include 'flash_messages.html' %}
        {{ form.csrf_token }}
        <div class="form-row">
                {{ form.query.label }}
                {{ form.query(class="form-control")}}
        </div>
        <!--<div class="form-row">
            {\{ form.modelSelection.label }}
            {\{ form.modelSelection(class="form-control")}}
        </div>-->
        <br>
        <div class="form-row">
            <button type="submit" class="btn btn-primary">Search</button>
        </div>
    </form>

    {% if complete %}
      <br>
        <h3>Properties</h3>

        <table class="table table-dark">
          <thead>
            <tr>
              <th scope="col">Property</th>
              <th scope="col">Value</th>
            </tr>
          </thead>
        {% for x in prop %}
          <tbody>
            <tr>
              <th scope="row">{{x}}</th>
              <td>{{prop[x]}}</td>
            </tr>
          </tbody>
        {% endfor %}
      </table>

      {% if perfect %}
        <h3>No alerts for the given compound.</h3>
      {% endif %}

        <div class="card-deck row-cols-2">
        {% for x in range(result|length) %}

        <div class="card" style="width: 18rem;">
          <div class="card-img-top">
            {{result[x]["SVG"] | safe }}
          </div>
          <div class="card-body">
            <h5 class="card-title">{{result[x]["Name"]}}</h5>
            <p class="card-text">{{result[x]["Description"]}}</p>
            <a href="#" class="btn btn-primary">Read Paper</a>
          </div>
        </div>
        {% endfor %}
        </div>
    {% endif %}

    

{% endblock %}