From c8fb3b264968f7304e09e9e4bd269cd5b2f9b506 Mon Sep 17 00:00:00 2001 From: Michele Carignani Date: Thu, 25 Apr 2019 11:44:55 +0200 Subject: [PATCH] details pages for the tools --- src/templates/doc2tosca-details.html | 42 ++++++++++++++++++++++++++++ src/templates/home.html | 3 ++ src/templates/tosca2doc-details.html | 42 ++++++++++++++++++++++++++++ src/web_app.py | 14 ++++++++++ 4 files changed, 101 insertions(+) create mode 100644 src/templates/doc2tosca-details.html create mode 100644 src/templates/tosca2doc-details.html diff --git a/src/templates/doc2tosca-details.html b/src/templates/doc2tosca-details.html new file mode 100644 index 0000000..7b4c229 --- /dev/null +++ b/src/templates/doc2tosca-details.html @@ -0,0 +1,42 @@ + + + + + +ETSI CTI - doc2tosca details + + + + + +
+ +{% with messages = get_flashed_messages() %} + {% if messages %} + + {% endif %} +{% endwith %} + +
+

doc2tosca details

+
v {{ VERSION }}
+

+The tools available on this page are provided with NO GUARANTEES and shall be used ONLY for validation of ETSI Specifications. +
+For any inquiry, contact ETSI CTI

+ + + + +
+ Copyright © ETSI 2019. All rights reserved. +
+ + + \ No newline at end of file diff --git a/src/templates/home.html b/src/templates/home.html index 647b5f1..bf671b5 100644 --- a/src/templates/home.html +++ b/src/templates/home.html @@ -46,6 +46,9 @@ For any inquiry, contact ETSI CTI

  • Download a docx file containing all the definitions.
  • +
    + Details +
    Tosca YAML files:


    diff --git a/src/templates/tosca2doc-details.html b/src/templates/tosca2doc-details.html new file mode 100644 index 0000000..a516db9 --- /dev/null +++ b/src/templates/tosca2doc-details.html @@ -0,0 +1,42 @@ + + + + + +ETSI CTI - tosca2doc details + + + + + +
    + +{% with messages = get_flashed_messages() %} + {% if messages %} + + {% endif %} +{% endwith %} + +
    +

    tosca2doc details

    +
    v {{ VERSION }}
    +

    +The tools available on this page are provided with NO GUARANTEES and shall be used ONLY for validation of ETSI Specifications. +
    +For any inquiry, contact ETSI CTI

    + + + + +
    + Copyright © ETSI 2019. All rights reserved. +
    + + + \ No newline at end of file diff --git a/src/web_app.py b/src/web_app.py index cdec561..5434f05 100644 --- a/src/web_app.py +++ b/src/web_app.py @@ -41,6 +41,20 @@ def hello(): ''' return render_template("./home.html", VERSION=config.VERSION) +@app.route("/doc2tosca-info") +def doc2tosca_info(): + ''' + Render home page + ''' + return render_template("./doc2tosca-details.html", VERSION=config.VERSION) + +@app.route("/tosca2doc-info") +def tosca2doc_info(): + ''' + Render home page + ''' + return render_template("./tosca2doc-details.html", VERSION=config.VERSION) + @app.route("/tosca2doc", methods=['POST']) def mk_tosca2doc(): -- GitLab