diff --git a/ereuse_devicehub/resources/documents/documents.py b/ereuse_devicehub/resources/documents/documents.py index f1da06a6..14588b2b 100644 --- a/ereuse_devicehub/resources/documents/documents.py +++ b/ereuse_devicehub/resources/documents/documents.py @@ -231,6 +231,15 @@ class CheckView(View): return jsonify(result) +class StampsView(View): + """ + This view render one public ans static page for see the links for to do the check + of one csv file + """ + def get(self): + return flask.render_template('documents/stamp.html') + + class DocumentDef(Resource): __type__ = 'Document' SCHEMA = None @@ -283,6 +292,9 @@ class DocumentDef(Resource): check_view = CheckView.as_view('CheckView', definition=self, auth=app.auth) self.add_url_rule('/check/', defaults={}, view_func=check_view, methods=get) + stamps_view = StampsView.as_view('StampsView', definition=self, auth=app.auth) + self.add_url_rule('/stamps/', defaults={}, view_func=stamps_view, methods=get) + actions_view = ActionsDocumentView.as_view('ActionsDocumentView', definition=self, auth=app.auth) diff --git a/ereuse_devicehub/resources/documents/templates/documents/stamp.html b/ereuse_devicehub/resources/documents/templates/documents/stamp.html new file mode 100644 index 00000000..7ccec63a --- /dev/null +++ b/ereuse_devicehub/resources/documents/templates/documents/stamp.html @@ -0,0 +1,50 @@ + + +
+ + + + +