diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-09-10 00:49:32 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-09-10 00:49:32 +0530 |
commit | 85001f57a619086298af2c283d0e19e426b75dc3 (patch) | |
tree | 0c44d892aa0d57ab9f8807e4be3d3032732f80f3 /app/templates | |
parent | e8c3a2e2a04488a23207076f7db14b267d25528c (diff) |
created a pdbqt convertor utility
Diffstat (limited to 'app/templates')
-rw-r--r-- | app/templates/home.html | 1 | ||||
-rw-r--r-- | app/templates/pdbqt_form.html | 42 |
2 files changed, 43 insertions, 0 deletions
diff --git a/app/templates/home.html b/app/templates/home.html index bf4cf32..f1f340a 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -23,6 +23,7 @@ <h3>Misc.</h3> <ul> + <li><a href="{{url_for('generate_pdbqts')}}">Generate PDBQTs</a> - Generate PDBQTs for your compounds or proteins</li> <li><a href="{{url_for('editor')}}">Editor</a> - Simple Molecular Editor powered by Kekule.js</li> <li><a href="{{ url_for('status')}}">Job Status</a> - Check the job status </li> <li><a href="{{ url_for('visualise')}}">Visualise</a> - Molecular Viewer </li> diff --git a/app/templates/pdbqt_form.html b/app/templates/pdbqt_form.html new file mode 100644 index 0000000..09cd1b0 --- /dev/null +++ b/app/templates/pdbqt_form.html @@ -0,0 +1,42 @@ + +{% extends 'base.html' %} + +{% block main %} + <h2>Generate PDBQTs</h2> + + <script> + function makeVisible() { + + var val = document.getElementById("jobType").value; + + if (val === "protein") { + document.getElementById("pdb").disabled = false; + document.getElementById('smiles').disabled = true; + document.getElementById('name').disabled = true; + } + else if (val=='ligand') { + document.getElementById('smiles').disabled = false; + document.getElementById("pdb").disabled = true; + document.getElementById("name").disabled = false; + } +} + </script> + + <form method="post" action="{{ url_for('generate_pdbqts') }}"> + {% include 'flash_messages.html' %} + {{ form.csrf_token }} + <div class="form-group"> + {{ form.jobType.label }} {{ form.jobType(**{"onchange":"makeVisible()","class":"form-control"}) }} + </div> + <div class="form-group"> + {{ form.pdb.label }} {{ form.pdb(**{"disabled":"false","class":"form-control"}) }} + </div> + <div class="form-group"> + {{ form.smiles.label }} {{ form.smiles(**{"disabled":"true","class":"form-control"}) }} + </div> + <div class="form-group"> + {{ form.name.label }} {{ form.name(**{"disabled":"true","class":"form-control"}) }} + </div> + <button type="submit" class="btn btn-primary">Submit</button> +</form> +{% endblock %}
\ No newline at end of file |