From 8ec4944df451e39a289b8f679edc8a9096299c0f Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Thu, 17 Sep 2020 00:01:58 +0530 Subject: refactored names for docking --- app/templates/base.html | 8 ++--- app/templates/dock_automatic.html | 43 ++++++++++++++++++++++ app/templates/dock_manual.html | 67 +++++++++++++++++++++++++++++++++++ app/templates/dock_upload.html | 67 ----------------------------------- app/templates/dock_upload_single.html | 43 ---------------------- app/templates/home.html | 4 +-- app/views.py | 12 +++---- 7 files changed, 122 insertions(+), 122 deletions(-) create mode 100644 app/templates/dock_automatic.html create mode 100644 app/templates/dock_manual.html delete mode 100644 app/templates/dock_upload.html delete mode 100644 app/templates/dock_upload_single.html diff --git a/app/templates/base.html b/app/templates/base.html index f92d59d..d86facc 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -34,8 +34,8 @@ Dock and Report
  • @@ -86,8 +86,8 @@ diff --git a/app/templates/dock_automatic.html b/app/templates/dock_automatic.html new file mode 100644 index 0000000..382948f --- /dev/null +++ b/app/templates/dock_automatic.html @@ -0,0 +1,43 @@ +{% extends 'base.html' %} +{% set active_page = "dock" %} +{% block main %} +

    Enter Your Configuration

    +
    + {% include 'flash_messages.html' %} + {{ form.csrf_token }} +
    + {{ form.description.label }} + {{ form.description(class="form-control") }} +
    +
    +
    + {{ form.pdbID.label }} + {{ form.pdbID(class="form-control")}} +
    +
    + {{ form.smiles.label }} + {{ form.smiles(class="form-control")}} +
    +
    + {{ form.name.label }} + {{ form.name(class="form-control")}} +
    +
    +
    + {{ form.email.label }} + {{ form.email(class="form-control") }} +
    + + +
    +
    +
    + +
    + +
    +{% endblock %} \ No newline at end of file diff --git a/app/templates/dock_manual.html b/app/templates/dock_manual.html new file mode 100644 index 0000000..b549628 --- /dev/null +++ b/app/templates/dock_manual.html @@ -0,0 +1,67 @@ +{% extends 'base.html' %} +{% set active_page = "dock" %} +{% block main %} +

    Enter Your Configuration

    +
    + {% include 'flash_messages.html' %} + {{ form.csrf_token }} +
    + {{ form.description.label }} + {{ form.description(class="form-control") }} +
    +
    +
    + {{ form.size_x.label }} + {{ form.size_x(class="form-control")}} +
    +
    + {{ form.size_y.label }} + {{ form.size_y(class="form-control")}} +
    +
    + {{ form.size_z.label }} + {{ form.size_z(class="form-control")}} +
    +
    +
    +
    + {{ form.center_x.label }} + {{ form.center_x(class="form-control")}} +
    +
    + {{ form.center_y.label }} + {{ form.center_y(class="form-control")}} +
    +
    + {{ form.center_z.label }} + {{ form.center_z(class="form-control")}} +
    +
    +
    +
    + {{ form.target.label }} + {{ form.target(class="form-control") }} +
    +
    + {{ form.ligand.label }} + {{ form.ligand(class="form-control")}} +
    +
    +
    + {{ form.email.label }} + {{ form.email(class="form-control") }} +
    + + +
    +
    +
    + +
    + +
    +{% endblock %} \ No newline at end of file diff --git a/app/templates/dock_upload.html b/app/templates/dock_upload.html deleted file mode 100644 index 43dcd63..0000000 --- a/app/templates/dock_upload.html +++ /dev/null @@ -1,67 +0,0 @@ -{% extends 'base.html' %} -{% set active_page = "dock" %} -{% block main %} -

    Enter Your Configuration

    -
    - {% include 'flash_messages.html' %} - {{ form.csrf_token }} -
    - {{ form.description.label }} - {{ form.description(class="form-control") }} -
    -
    -
    - {{ form.size_x.label }} - {{ form.size_x(class="form-control")}} -
    -
    - {{ form.size_y.label }} - {{ form.size_y(class="form-control")}} -
    -
    - {{ form.size_z.label }} - {{ form.size_z(class="form-control")}} -
    -
    -
    -
    - {{ form.center_x.label }} - {{ form.center_x(class="form-control")}} -
    -
    - {{ form.center_y.label }} - {{ form.center_y(class="form-control")}} -
    -
    - {{ form.center_z.label }} - {{ form.center_z(class="form-control")}} -
    -
    -
    -
    - {{ form.target.label }} - {{ form.target(class="form-control") }} -
    -
    - {{ form.ligand.label }} - {{ form.ligand(class="form-control")}} -
    -
    -
    - {{ form.email.label }} - {{ form.email(class="form-control") }} -
    - - -
    -
    -
    - -
    - -
    -{% endblock %} \ No newline at end of file diff --git a/app/templates/dock_upload_single.html b/app/templates/dock_upload_single.html deleted file mode 100644 index 5329972..0000000 --- a/app/templates/dock_upload_single.html +++ /dev/null @@ -1,43 +0,0 @@ -{% extends 'base.html' %} -{% set active_page = "dock" %} -{% block main %} -

    Enter Your Configuration

    -
    - {% include 'flash_messages.html' %} - {{ form.csrf_token }} -
    - {{ form.description.label }} - {{ form.description(class="form-control") }} -
    -
    -
    - {{ form.pdbID.label }} - {{ form.pdbID(class="form-control")}} -
    -
    - {{ form.smiles.label }} - {{ form.smiles(class="form-control")}} -
    -
    - {{ form.name.label }} - {{ form.name(class="form-control")}} -
    -
    -
    - {{ form.email.label }} - {{ form.email(class="form-control") }} -
    - - -
    -
    -
    - -
    - -
    -{% endblock %} \ No newline at end of file diff --git a/app/templates/home.html b/app/templates/home.html index 1f7f9e5..bf00905 100644 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -7,8 +7,8 @@

    The following are the currently active modules

    Docking

    Drug Designing

    diff --git a/app/views.py b/app/views.py index fc1620b..7fe1daa 100644 --- a/app/views.py +++ b/app/views.py @@ -273,8 +273,8 @@ def generate(): return render_template('generate.html',expName=j["exp_name"],epochs=j["num_epochs"],optimizer=j["optimizer"].capitalize(), form=form) -@app.route('/Dock', methods=['GET', 'POST']) -def dock_upload(): +@app.route('/Dock-Manual', methods=['GET', 'POST']) +def dock_manual(): form = curieForm() if request.method == 'POST' and form.validate_on_submit(): @@ -317,10 +317,10 @@ def dock_upload(): return render_template('display_result.html', filename="OwO", description=description,job=jobID) flash_errors(form) - return render_template('dock_upload.html', form=form) + return render_template('dock_manual.html', form=form) -@app.route('/Dock-Single', methods=['GET', 'POST']) -def dock_upload_single(): +@app.route('/Dock-Automatic', methods=['GET', 'POST']) +def dock_automatic(): form = dockSingleForm() if request.method == 'POST' and form.validate_on_submit(): @@ -354,7 +354,7 @@ def dock_upload_single(): return render_template('display_result.html', filename="OwO", description=description,job=jobID) flash_errors(form) - return render_template('dock_upload_single.html', form=form) + return render_template('dock_automatic.html', form=form) ### # The functions below should be applicable to all Flask apps. -- cgit v1.2.3