diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000000000000000000000000000000000000..f3aa2619a9f71e2a77f2983185ff13f56d64da3d --- /dev/null +++ b/templates/home.html @@ -0,0 +1,51 @@ + + + + + +tosca2doc + + + + + +
+ +{% with messages = get_flashed_messages() %} + {% if messages %} + + {% endif %} +{% endwith %} + + +

TOSCA export

+
+
+

tosca2doc

+
+ Tosca YAML files:
+
+ +
+
+ +
+

doc2tosca

+
+ Docx file:
+
+ +
+
+
+ +
+ + + \ No newline at end of file diff --git a/web_app.py b/web_app.py index 203790b80bc67c712edfbe1ece607c5d9fcd3c32..e6593d3e6f7471452d4b32f42f770dfe3e651f47 100644 --- a/web_app.py +++ b/web_app.py @@ -2,7 +2,7 @@ import os -from flask import Flask, flash, request, redirect, url_for, send_file +from flask import Flask, flash, request, redirect, url_for, send_file, render_template from werkzeug.utils import secure_filename import docx @@ -18,19 +18,6 @@ app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER app.secret_key = 'super secret key' app.config['SESSION_TYPE'] = 'filesystem' -HOME=''' - -tosca2doc -

tosca2doc & doc2tosca

-

tosca2doc

-
-Tosca YAML file: - - -
-

doc2tosca

-''' - TOSCA_DEFS=['VNFD', 'NSD', 'PNFD'] def allowed_file(filename): @@ -43,7 +30,7 @@ def allowed_file(filename): @app.route("/") def hello(): - return HOME + return render_template("./home.html") @app.route("/tosca2doc", methods=['POST']) def mk_tosca2doc():