-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into nl/2275-org-model-vie…
…w-only-and-tooltip-fixes
- Loading branch information
Showing
18 changed files
with
822 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
src/registrar/migrations/0129_alter_portfolioinvitation_portfolio_roles_and_more.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Generated by Django 4.2.10 on 2024-09-25 00:49 | ||
|
||
import django.contrib.postgres.fields | ||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("registrar", "0128_alter_domaininformation_state_territory_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="portfolioinvitation", | ||
name="portfolio_roles", | ||
field=django.contrib.postgres.fields.ArrayField( | ||
base_field=models.CharField( | ||
choices=[("organization_admin", "Admin"), ("organization_member", "Member")], max_length=50 | ||
), | ||
blank=True, | ||
help_text="Select one or more roles.", | ||
null=True, | ||
size=None, | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name="userportfoliopermission", | ||
name="roles", | ||
field=django.contrib.postgres.fields.ArrayField( | ||
base_field=models.CharField( | ||
choices=[("organization_admin", "Admin"), ("organization_member", "Member")], max_length=50 | ||
), | ||
blank=True, | ||
help_text="Select one or more roles.", | ||
null=True, | ||
size=None, | ||
), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
{% load static %} | ||
|
||
<!-- Embedding the portfolio value in a data attribute --> | ||
<span id="portfolio-js-value" class="display-none" data-portfolio="{{ portfolio.id }}"></span> | ||
{% comment %} Stores the json endpoint in a url for easier access {% endcomment %} | ||
{% url 'get_portfolio_members_json' as url %} | ||
<span id="get_members_json_url" class="display-none">{{url}}</span> | ||
<section class="section-outlined members margin-top-0 section-outlined--border-base-light" id="members"> | ||
<div class="section-outlined__header margin-bottom-3 grid-row"> | ||
<!-- ---------- SEARCH ---------- --> | ||
<div class="section-outlined__search mobile:grid-col-12 desktop:grid-col-6"> | ||
<section aria-label="Members search component" class="margin-top-2"> | ||
<form class="usa-search usa-search--small" method="POST" role="search"> | ||
{% csrf_token %} | ||
<button class="usa-button usa-button--unstyled margin-right-3 members__reset-search display-none" type="button"> | ||
<svg class="usa-icon" aria-hidden="true" focusable="false" role="img" width="24"> | ||
<use xlink:href="{%static 'img/sprite.svg'%}#close"></use> | ||
</svg> | ||
Reset | ||
</button> | ||
<label class="usa-sr-only" for="members__search-field">Search by member name</label> | ||
<input | ||
class="usa-input" | ||
id="members__search-field" | ||
type="search" | ||
name="search" | ||
placeholder="Search by member name" | ||
/> | ||
<button class="usa-button" type="submit" id="members__search-field-submit"> | ||
<img | ||
src="{% static 'img/usa-icons-bg/search--white.svg' %}" | ||
class="usa-search__submit-icon" | ||
alt="Search" | ||
/> | ||
</button> | ||
</form> | ||
</section> | ||
</div> | ||
</div> | ||
|
||
<!-- ---------- MAIN TABLE ---------- --> | ||
<div class="members__table-wrapper display-none usa-table-container--scrollable margin-top-0" tabindex="0"> | ||
<table class="usa-table usa-table--borderless usa-table--stacked dotgov-table dotgov-table--stacked members__table"> | ||
<caption class="sr-only">Your registered members</caption> | ||
<thead> | ||
<tr> | ||
<th data-sortable="member" scope="col" role="columnheader">Member</th> | ||
<th data-sortable="last_active" scope="col" role="columnheader">Last Active</th> | ||
<th | ||
scope="col" | ||
role="columnheader" | ||
> | ||
<span class="usa-sr-only">Action</span> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<!-- AJAX will populate this tbody --> | ||
</tbody> | ||
</table> | ||
<div | ||
class="usa-sr-only usa-table__announcement-region" | ||
aria-live="polite" | ||
></div> | ||
</div> | ||
<div class="members__no-data display-none"> | ||
<p>You don't have any members.</p> | ||
</div> | ||
<div class="members__no-search-results display-none"> | ||
<p>No results found</p> | ||
</div> | ||
</section> | ||
<nav aria-label="Pagination" class="usa-pagination flex-justify" id="members-pagination"> | ||
<span class="usa-pagination__counter text-base-dark padding-left-2 margin-bottom-1"> | ||
<!-- Count will be dynamically populated by JS --> | ||
</span> | ||
<ul class="usa-pagination__list"> | ||
<!-- Pagination links will be dynamically populated by JS --> | ||
</ul> | ||
</nav> |
Oops, something went wrong.