Loading src/templates/doc2tosca-details.html 0 → 100644 +42 −0 Original line number Diff line number Diff line <!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 src/templates/home.html +3 −0 Original line number Diff line number Diff line Loading @@ -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 /> Loading src/templates/tosca2doc-details.html 0 → 100644 +42 −0 Original line number Diff line number Diff line <!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 src/web_app.py +14 −0 Original line number Diff line number Diff line Loading @@ -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(): Loading Loading
src/templates/doc2tosca-details.html 0 → 100644 +42 −0 Original line number Diff line number Diff line <!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
src/templates/home.html +3 −0 Original line number Diff line number Diff line Loading @@ -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 /> Loading
src/templates/tosca2doc-details.html 0 → 100644 +42 −0 Original line number Diff line number Diff line <!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
src/web_app.py +14 −0 Original line number Diff line number Diff line Loading @@ -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(): Loading