diff --git a/src/templates/doc2tosca-details.html b/src/templates/doc2tosca-details.html new file mode 100644 index 0000000000000000000000000000000000000000..7b4c2292d816fd4aeaaff3e886cc525f0df9b2f1 --- /dev/null +++ b/src/templates/doc2tosca-details.html @@ -0,0 +1,42 @@ +<!doctype html> + +<html> + +<head> +<title>ETSI CTI - doc2tosca details</title> +<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> +<meta name="viewport" content="width=device-width, initial-scale=1"> +</head> +<body> + +<div class="container-fluid"> + +{% with messages = get_flashed_messages() %} + {% if messages %} + <div class="alert alert-warning" role="alert"> + <ul class=flashes> + {% for message in messages %} + <li>{{ message }}</li> + {% endfor %} + </ul> + </div> + {% endif %} +{% endwith %} + +<center> +<h1>doc2tosca details</h1> +<h5 style="margin-bottom: 50px">v {{ VERSION }}</h5> +<p> +The tools available on this page are provided with NO GUARANTEES and shall be used ONLY for validation of ETSI Specifications. +<br/> +For any inquiry, contact <a href="mailto:cti_support@etsi.org">ETSI CTI</a></p> + + + + +<center> + <small>Copyright © ETSI 2019. All rights reserved.</small> +</center> +</body> + +</html> \ No newline at end of file diff --git a/src/templates/home.html b/src/templates/home.html index 647b5f1b50cd6e899f2ae3d3c34f5bba734a9c93..bf671b58b26c9d801a1bca02b2a131c0698cb474 100644 --- a/src/templates/home.html +++ b/src/templates/home.html @@ -46,6 +46,9 @@ For any inquiry, contact <a href="mailto:cti_support@etsi.org">ETSI CTI</a></p> </ul> <li>Download a docx file containing all the definitions.</li> </ol> + <center> + <a href="/doc2tosca-info">Details</a> + </center> <form action="/tosca2doc" method="post" enctype="multipart/form-data"> Tosca YAML files:<br /> <input type="file" name="file" multiple=""/><br /><br /> diff --git a/src/templates/tosca2doc-details.html b/src/templates/tosca2doc-details.html new file mode 100644 index 0000000000000000000000000000000000000000..a516db909a0fcc0ab6d1fd451013a76e4b817840 --- /dev/null +++ b/src/templates/tosca2doc-details.html @@ -0,0 +1,42 @@ +<!doctype html> + +<html> + +<head> +<title>ETSI CTI - tosca2doc details</title> +<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous"> +<meta name="viewport" content="width=device-width, initial-scale=1"> +</head> +<body> + +<div class="container-fluid"> + +{% with messages = get_flashed_messages() %} + {% if messages %} + <div class="alert alert-warning" role="alert"> + <ul class=flashes> + {% for message in messages %} + <li>{{ message }}</li> + {% endfor %} + </ul> + </div> + {% endif %} +{% endwith %} + +<center> +<h1>tosca2doc details</h1> +<h5 style="margin-bottom: 50px">v {{ VERSION }}</h5> +<p> +The tools available on this page are provided with NO GUARANTEES and shall be used ONLY for validation of ETSI Specifications. +<br/> +For any inquiry, contact <a href="mailto:cti_support@etsi.org">ETSI CTI</a></p> + + + + +<center> + <small>Copyright © ETSI 2019. All rights reserved.</small> +</center> +</body> + +</html> \ No newline at end of file diff --git a/src/web_app.py b/src/web_app.py index cdec5613bf29a13ff58f130d1dd9916643817e31..5434f05bcda0a8b03b4d472a6729a0ef8c3e52bc 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():