This commit is contained in:
Rachid Mrad 2024-08-01 14:26:13 -04:00
parent aedb05dd34
commit 3e70b344e3
No known key found for this signature in database
3 changed files with 4 additions and 7 deletions

View file

@ -64,7 +64,7 @@ class User(AbstractUser):
class UserPortfolioRoleChoices(models.TextChoices):
"""
Roles make it easier for admins to look at groups of users
Roles are containers of UserPortfolioPermissionChoices
"""
ORGANIZATION_ADMIN = "organization_admin", "Admin"

View file

@ -53,7 +53,7 @@
{% endwith %}
</div>
{% with show_edit_button=True show_readonly=True group_classes="usa-form-editable padding-top-2" %}
{% with toggleable_input=True toggleable_label=True group_classes="usa-form-editable padding-top-2" %}
{% input_with_errors form.title %}
{% endwith %}

View file

@ -31,7 +31,7 @@
{% include "includes/form_errors.html" with form=form %}
{% include "includes/required_fields.html" %}
<form class="usa-form usa-form--large" method="post" novalidate id="form-container">
<form class="usa-form usa-form--large" method="post" novalidate>
{% csrf_token %}
<h4 class="read-only-label">Federal agency</h4>
<p class="read-only-value">
@ -44,10 +44,7 @@
{% with add_class="usa-input--small" %}
{% input_with_errors form.zipcode %}
{% endwith %}
<button
type="submit"
class="usa-button"
>
<button type="submit" class="usa-button">
Save
</button>
</form>