aboutsummaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/base.html3
-rw-r--r--app/templates/home.html3
-rw-r--r--app/templates/job_status.html10
-rw-r--r--app/templates/job_status_error.html6
-rw-r--r--app/templates/job_status_form.html15
5 files changed, 36 insertions, 1 deletions
diff --git a/app/templates/base.html b/app/templates/base.html
index e8adc2e..3e43671 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -35,6 +35,9 @@
<li class="nav-item">
<a class="nav-link" href="{{ url_for('dock_upload') }}">Dock and Report</a>
</li>
+ <li class="nav-item">
+ <a class="nav-link" href="{{ url_for('status') }}">Job Status</a>
+ </li>
</ul>
</div>
</nav>
diff --git a/app/templates/home.html b/app/templates/home.html
index f7a7c78..02c71dd 100644
--- a/app/templates/home.html
+++ b/app/templates/home.html
@@ -2,8 +2,9 @@
{% block main %}
<h2>Curie Web Demo</h2>
- <p>The dock and report demo performs molecular docking using AutoDock Vina and then finds protein-ligand interactions using PLIP</p>
+ <p>Dock and Report performs molecular docking using AutoDock Vina, generates visualisations using PyMOL and then finds protein-ligand interactions using PLIP. It then compiles all of this into a PDF report and emails it to you.</p>
<ul>
<li><a href="{{ url_for('dock_upload') }}">Dock and Report</a></li>
+ <li><a href="{{ url_for('status')}}">Job Status</a></li>
</ul>
{% endblock %} \ No newline at end of file
diff --git a/app/templates/job_status.html b/app/templates/job_status.html
new file mode 100644
index 0000000..e113650
--- /dev/null
+++ b/app/templates/job_status.html
@@ -0,0 +1,10 @@
+{% extends 'base.html' %}
+
+{% block main %}
+ <h2>Job ID: {{ ID }}</h2>
+ <b>Submitted On: </b>{{subDate}}<br>
+ <b>Target Name: </b>{{pn}}<br>
+ <b>Ligand Name: </b>{{ln}}<br>
+ <b>Description: </b>{{desc}}<br>
+ <b>Status: </b>{{status}}
+{% endblock %} \ No newline at end of file
diff --git a/app/templates/job_status_error.html b/app/templates/job_status_error.html
new file mode 100644
index 0000000..633e347
--- /dev/null
+++ b/app/templates/job_status_error.html
@@ -0,0 +1,6 @@
+{% extends 'base.html' %}
+
+{% block main %}
+ <h2>Job ID: {{ job }}</h2>
+ <p>This Job ID does not exist 😠. If you think this is an error, please contact us.</p>
+{% endblock %} \ No newline at end of file
diff --git a/app/templates/job_status_form.html b/app/templates/job_status_form.html
new file mode 100644
index 0000000..f940a6d
--- /dev/null
+++ b/app/templates/job_status_form.html
@@ -0,0 +1,15 @@
+{% extends 'base.html' %}
+
+{% block main %}
+ <h2>Get Job Status</h2>
+ <form action="{{ url_for('status') }}" method="post" enctype="multipart/form-data">
+ {% include 'flash_messages.html' %}
+ {{ form.csrf_token }}
+ <div class="form-group">
+ {{ form.jobID.label }}
+ {{ form.jobID(class="form-control") }}
+ </div>
+
+ <button class="btn btn-primary">Get Status</button>
+ </form>
+{% endblock %} \ No newline at end of file