forked from enviPath/enviPy
Bump Python Version to 3.12 Make use of "epauth" optional Cache `srs` property of rules to speed up apply Adjust view names for use of `reverse()` Fix Views for Scenario Attachments Added Simply Compare View/Template to identify differences between rdkit and ambit Make migrations consistent with tests + compare Fixes #76 Set default year for Scenario Modal Fix html tags for package description Added Tests for Pathway / Rule Added remove stereo for apply Co-authored-by: Tim Lorsbach <tim@lorsba.ch> Reviewed-on: enviPath/enviPy#132
56 lines
1.7 KiB
HTML
56 lines
1.7 KiB
HTML
{% extends "framework.html" %}
|
|
|
|
{% block content %}
|
|
<div>
|
|
<form action="" method="post">
|
|
{% csrf_token %}
|
|
<input type="text" class="form-control" id="smiles" name="smiles" placeholder="SMILES"
|
|
value="{{ smiles }}"/>
|
|
<input type="text" class="form-control" id="smiles" name="smirks" placeholder="SMIRKS"
|
|
value="{{ smirks }}"/>
|
|
<button type="submit" class="btn btn-primary">Test</button>
|
|
</form>
|
|
</div>
|
|
{% if result %}
|
|
{{ smiles }}<p></p>
|
|
<img width='400' src='{% url 'depict' %}?smiles={{ smiles|urlencode }}'><br>
|
|
<p></p>
|
|
{% if rule %}
|
|
{{ smirks }}
|
|
<p></p>
|
|
{{ rule.reactants_smarts }}
|
|
<p></p>
|
|
{{ rule.products_smarts }}
|
|
<p></p>
|
|
<div>
|
|
{{ rule.as_svg|safe }}
|
|
</div>
|
|
{% endif %}
|
|
<h2>Diff</h2>
|
|
{% if diff %}
|
|
{% for d in diff %}
|
|
{{ d }}
|
|
{% endfor %}
|
|
{% else %}
|
|
{{ "No diff" }}
|
|
{% endif %}
|
|
<div>
|
|
<div class="col-md-6">
|
|
<h2>Ambit</h2>
|
|
{% for p in ambit_res %}
|
|
{{ p }}<br>
|
|
<img width='400' src='{% url 'depict' %}?smiles={{ p|urlencode }}'><br>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<h2>RDKit</h2>
|
|
{% for p in rdkit_res %}
|
|
{{ p }}<br>
|
|
<img width='400' src='{% url 'depict' %}?smiles={{ p|urlencode }}'><br>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock content %}
|