From 1edcb47151f8d7ec156e89c7d02f6907dec3fd5b Mon Sep 17 00:00:00 2001 From: Terrtia Date: Thu, 28 Apr 2022 15:57:00 +0200 Subject: [PATCH] chg: [UI subtype objs] get obj by subtype + name --- var/www/blueprints/correlation.py | 9 +++++++ .../templates/DaysCorrelation.html | 26 +++++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/var/www/blueprints/correlation.py b/var/www/blueprints/correlation.py index 03c7ea5e..ecc9b7ac 100644 --- a/var/www/blueprints/correlation.py +++ b/var/www/blueprints/correlation.py @@ -261,3 +261,12 @@ def graph_node_json(): res = Correlate_object.get_graph_node_object_correlation(object_type, correlation_id, mode, correlation_names, correlation_objects, requested_correl_type=type_id, max_nodes=max_nodes) return jsonify(res) + +@correlation.route('/correlation/subtype_search', methods=['POST']) +@login_required +@login_read_only +def subtype_search(): + obj_type = request.form.get('object_type') + obj_subtype = request.form.get('object_subtype') + obj_id = request.form.get('object_id') + return redirect(url_for('correlation.show_correlation', object_type=obj_type, type_id=obj_subtype, correlation_id=obj_id)) diff --git a/var/www/modules/hashDecoded/templates/DaysCorrelation.html b/var/www/modules/hashDecoded/templates/DaysCorrelation.html index 9b561240..fddb1579 100644 --- a/var/www/modules/hashDecoded/templates/DaysCorrelation.html +++ b/var/www/modules/hashDecoded/templates/DaysCorrelation.html @@ -75,8 +75,34 @@
+ +
+
+
Search {{correlation_type}} by name:
+ +
+ +
+ + + + + +
+ + +
+
+
+ +