|
1 |
| -{% load static %} |
2 |
| - |
3 | 1 | {% if member %}
|
4 | 2 | <span
|
5 | 3 | id="portfolio-js-value"
|
|
36 | 34 |
|
37 | 35 | <div class="section-outlined__header margin-bottom-3 grid-row">
|
38 | 36 | <!-- ---------- SEARCH ---------- -->
|
39 |
| - <div class="section-outlined__search mobile:grid-col-12 desktop:grid-col-9"> |
40 |
| - <section aria-label="Member domains search component"> |
41 |
| - <form class="usa-search usa-search--show-label" method="POST" role="search"> |
42 |
| - {% csrf_token %} |
43 |
| - <label class="usa-label display-block margin-bottom-05" for="edit-member-domains__search-field"> |
44 |
| - {% if has_edit_members_portfolio_permission %} |
45 |
| - Search all domains |
46 |
| - {% else %} |
47 |
| - Search domains assigned to |
48 |
| - {% if member %} |
49 |
| - {{ member.email }} |
50 |
| - {% else %} |
51 |
| - {{ portfolio_invitation.email }} |
52 |
| - {% endif %} |
53 |
| - {% endif %} |
54 |
| - </label> |
55 |
| - <div class="usa-search--show-label__input-wrapper"> |
56 |
| - <button class="usa-button usa-button--unstyled margin-right-3 display-none" id="edit-member-domains__reset-search" type="button"> |
57 |
| - <svg class="usa-icon" aria-hidden="true" focusable="false" role="img" width="24"> |
58 |
| - <use xlink:href="{%static 'img/sprite.svg'%}#close"></use> |
59 |
| - </svg> |
60 |
| - Reset |
61 |
| - </button> |
62 |
| - <input |
63 |
| - class="usa-input" |
64 |
| - id="edit-member-domains__search-field" |
65 |
| - type="search" |
66 |
| - name="member-domains-search" |
67 |
| - /> |
68 |
| - <button class="usa-button" type="submit" id="edit-member-domains__search-field-submit"> |
69 |
| - <span class="usa-search__submit-text">Search </span> |
70 |
| - <img |
71 |
| - src="{% static 'img/usa-icons-bg/search--white.svg' %}" |
72 |
| - class="usa-search__submit-icon" |
73 |
| - alt="Search" |
74 |
| - /> |
75 |
| - </button> |
76 |
| - </div> |
77 |
| - </form> |
78 |
| - </section> |
79 |
| - </div> |
| 37 | + {% with label_text="Search all domains" item_name="edit-member-domains" aria_label_text="Member domains search component" %} |
| 38 | + {% include "includes/search.html" %} |
| 39 | + {% endwith %} |
80 | 40 | </div>
|
81 | 41 |
|
82 | 42 | <!-- ---------- MAIN TABLE ---------- -->
|
|
85 | 45 | <caption class="sr-only">member domains</caption>
|
86 | 46 | <thead>
|
87 | 47 | <tr>
|
88 |
| - <th data-sortable="checked" scope="col" role="columnheader" class="padding-right-105"><span class="sr-only">Assigned domains</span></th> |
| 48 | + <th data-sortable="checked" scope="col" role="columnheader" class="padding-right-105 width-6"><span class="sr-only">Assigned domains</span></th> |
89 | 49 | <!-- We override default sort to be name/ascending in the JSON endpoint. We add the correct aria-sort attribute here to reflect that in the UI -->
|
90 | 50 | <th data-sortable="name" scope="col" role="columnheader" aria-sort="descending">Domains</th>
|
91 | 51 | </tr>
|
|
0 commit comments