diff --git a/src/registrar/assets/src/sass/_theme/_base.scss b/src/registrar/assets/src/sass/_theme/_base.scss index 71894ce59..2484cd534 100644 --- a/src/registrar/assets/src/sass/_theme/_base.scss +++ b/src/registrar/assets/src/sass/_theme/_base.scss @@ -99,9 +99,7 @@ body { } .section-outlined__search { flex-grow: 4; - // Align right max-width: 383px; - margin-left: auto; } } } diff --git a/src/registrar/templates/home.html b/src/registrar/templates/home.html index 3c96016eb..1d178d3fb 100644 --- a/src/registrar/templates/home.html +++ b/src/registrar/templates/home.html @@ -15,14 +15,14 @@ {% include "includes/form_messages.html" %} {% endblock %} -

Manage your domains

- -

- -

+
+

Manage your domains

+
+ +
+
{% include "includes/domains_table.html" with user_domain_count=user_domain_count %} {% include "includes/domain_requests_table.html" %} diff --git a/src/registrar/templates/includes/domain_requests_table.html b/src/registrar/templates/includes/domain_requests_table.html index 5a57c1bd7..377a69add 100644 --- a/src/registrar/templates/includes/domain_requests_table.html +++ b/src/registrar/templates/includes/domain_requests_table.html @@ -4,49 +4,20 @@ {% url 'get_domain_requests_json' as url %} -
-
+
+
{% if not portfolio %} -

Domain requests

+
+

Domain requests

+
{% else %} {% endif %} - - - + + {% with label_text=portfolio|yesno:"Search by domain name or creator,Search by domain name" item_name="domain-requests" aria_label_text="Domain requests search component"%} + {% include "includes/search.html" %} + {% endwith %}
{% if portfolio %} diff --git a/src/registrar/templates/includes/domains_table.html b/src/registrar/templates/includes/domains_table.html index 567bddd2a..17a956935 100644 --- a/src/registrar/templates/includes/domains_table.html +++ b/src/registrar/templates/includes/domains_table.html @@ -26,56 +26,32 @@ {% endif %}
-
+
{% if not portfolio %} -

Domains

+
+

Domains

+ + {% if user_domain_count and user_domain_count > 0 %} + {% with export_aria="Domains report component" export_url='export_data_type_user' %} + {% include "includes/export.html" %} + {% endwith %} + {% endif %} +
{% else %} {% endif %} - - {% if user_domain_count and user_domain_count > 0 %} -
-
-
Click to export as csv
- -
-
+ + {% with label_text="Search by domain name" item_name="domains" aria_label_text="Domains search component"%} + {% include "includes/search.html" %} + {% endwith %} + + {% if user_domain_count and user_domain_count > 0 and portfolio%} + {% with export_aria="Domains report component" export_url='export_data_type_user' %} + {% include "includes/export.html" %} + {% endwith %} {% endif %}
- {% if num_expiring_domains > 0 and not portfolio %}
diff --git a/src/registrar/templates/includes/export.html b/src/registrar/templates/includes/export.html new file mode 100644 index 000000000..7ed003e88 --- /dev/null +++ b/src/registrar/templates/includes/export.html @@ -0,0 +1,12 @@ +{% load static %} +
+
+ +
+
+ + \ No newline at end of file diff --git a/src/registrar/templates/includes/members_table.html b/src/registrar/templates/includes/members_table.html index 528f9a5dc..f93b0d3c8 100644 --- a/src/registrar/templates/includes/members_table.html +++ b/src/registrar/templates/includes/members_table.html @@ -7,47 +7,14 @@
- - -
-
-
Click to export as csv
- -
-
-
+ + {% with label_text="Search by member name" item_name="members" aria_label_text="Members search component"%} + {% include "includes/search.html" %} + {% endwith %} + {% with export_aria="Members report component" export_url='export_members_portfolio' %} + {% include "includes/export.html" %} + {% endwith %} +