From 5f963762aeec5a0635d2947c89d501c57756afac Mon Sep 17 00:00:00 2001 From: Deanna Tran Date: Fri, 4 Oct 2024 09:10:45 +0100 Subject: [PATCH] more work --- .../src/OpenMediaMatch/blueprints/curation.py | 2 +- .../components/banks/actions_bar.html.j2 | 6 + .../{ => banks}/add_to_bank_form.html.j2 | 7 +- .../components/banks/banks_grid.html.j2 | 121 +++++++++++++ .../components/banks/create_new_bank.html.j2 | 69 ++++++++ .../components/banks/match_form.html.j2 | 102 +++++++++++ .../templates/components/banks_grid.html.j2 | 162 ------------------ .../components/create_exchange_modal.html.j2 | 2 +- .../templates/components/match_form.html.j2 | 81 --------- .../templates/pages/banks.html.j2 | 10 +- 10 files changed, 304 insertions(+), 258 deletions(-) create mode 100644 hasher-matcher-actioner/src/OpenMediaMatch/templates/components/banks/actions_bar.html.j2 rename hasher-matcher-actioner/src/OpenMediaMatch/templates/components/{ => banks}/add_to_bank_form.html.j2 (88%) create mode 100644 hasher-matcher-actioner/src/OpenMediaMatch/templates/components/banks/banks_grid.html.j2 create mode 100644 hasher-matcher-actioner/src/OpenMediaMatch/templates/components/banks/create_new_bank.html.j2 create mode 100644 hasher-matcher-actioner/src/OpenMediaMatch/templates/components/banks/match_form.html.j2 delete mode 100644 hasher-matcher-actioner/src/OpenMediaMatch/templates/components/banks_grid.html.j2 delete mode 100644 hasher-matcher-actioner/src/OpenMediaMatch/templates/components/match_form.html.j2 diff --git a/hasher-matcher-actioner/src/OpenMediaMatch/blueprints/curation.py b/hasher-matcher-actioner/src/OpenMediaMatch/blueprints/curation.py index 37e64f4ed..e8b4f751c 100644 --- a/hasher-matcher-actioner/src/OpenMediaMatch/blueprints/curation.py +++ b/hasher-matcher-actioner/src/OpenMediaMatch/blueprints/curation.py @@ -3,7 +3,7 @@ import re import typing as t -from flask import Blueprint, Response, request, jsonify, abort +from flask import Blueprint, Response, request, jsonify, abort, render_template from sqlalchemy.exc import IntegrityError from werkzeug.exceptions import HTTPException diff --git a/hasher-matcher-actioner/src/OpenMediaMatch/templates/components/banks/actions_bar.html.j2 b/hasher-matcher-actioner/src/OpenMediaMatch/templates/components/banks/actions_bar.html.j2 new file mode 100644 index 000000000..8bc0697b5 --- /dev/null +++ b/hasher-matcher-actioner/src/OpenMediaMatch/templates/components/banks/actions_bar.html.j2 @@ -0,0 +1,6 @@ +
+ {% include "components/banks/match_form.html.j2" %} +
+ {% include 'components/banks/create_new_bank.html.j2' %} +
+
diff --git a/hasher-matcher-actioner/src/OpenMediaMatch/templates/components/add_to_bank_form.html.j2 b/hasher-matcher-actioner/src/OpenMediaMatch/templates/components/banks/add_to_bank_form.html.j2 similarity index 88% rename from hasher-matcher-actioner/src/OpenMediaMatch/templates/components/add_to_bank_form.html.j2 rename to hasher-matcher-actioner/src/OpenMediaMatch/templates/components/banks/add_to_bank_form.html.j2 index a1630e644..326df0f11 100644 --- a/hasher-matcher-actioner/src/OpenMediaMatch/templates/components/add_to_bank_form.html.j2 +++ b/hasher-matcher-actioner/src/OpenMediaMatch/templates/components/banks/add_to_bank_form.html.j2 @@ -3,12 +3,11 @@