From a76126e01e3e8d6ed47a823636a809dad1e58283 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 16 Sep 2020 20:00:35 +0530 Subject: added pubchem search --- app/templates/search-pubchem.html | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 app/templates/search-pubchem.html (limited to 'app/templates/search-pubchem.html') diff --git a/app/templates/search-pubchem.html b/app/templates/search-pubchem.html new file mode 100644 index 0000000..9b8e7cb --- /dev/null +++ b/app/templates/search-pubchem.html @@ -0,0 +1,48 @@ +{% extends 'base.html' %} + +{% block main %} +

SMILES Search

+

Get Compound SMILES through PubChem.

+
+ {% include 'flash_messages.html' %} + {{ form.csrf_token }} +
+ {{ form.query.label }} + {{ form.query(class="form-control")}} +
+ +
+
+ +
+
+ + {% if result %} +

Search Results

+ {% for x in range(result|length) %} + + +
+
+
+
+ +
+
+
+
+
CID: {{result[x]["CID"]}}
+

Canonical SMILES: {{result[x]["CanonicalSMILES"]}}

+

Isomeric SMILES: {{result[x]["IsomericSMILES"]}}

+

2D Fingerprint {{result[x]["Fingerprint2D"]}}

+
+
+
+
+ {% endfor %} + {% endif %} + +{% endblock %} \ No newline at end of file -- cgit v1.2.3