mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-29 05:56:30 +02:00
fixed rest of domain information
This commit is contained in:
parent
2730047588
commit
7875069897
2 changed files with 9 additions and 2 deletions
|
@ -221,10 +221,10 @@ class DomainInformationAdminForm(forms.ModelForm):
|
||||||
widgets = {
|
widgets = {
|
||||||
"other_contacts": NoAutocompleteFilteredSelectMultiple("other_contacts", False),
|
"other_contacts": NoAutocompleteFilteredSelectMultiple("other_contacts", False),
|
||||||
"portfolio": AutocompleteSelectWithPlaceholder(
|
"portfolio": AutocompleteSelectWithPlaceholder(
|
||||||
DomainRequest._meta.get_field("portfolio"), admin.site, attrs={"data-placeholder": "---------"}
|
DomainInformation._meta.get_field("portfolio"), admin.site, attrs={"data-placeholder": "---------"}
|
||||||
),
|
),
|
||||||
"sub_organization": AutocompleteSelectWithPlaceholder(
|
"sub_organization": AutocompleteSelectWithPlaceholder(
|
||||||
DomainRequest._meta.get_field("sub_organization"),
|
DomainInformation._meta.get_field("sub_organization"),
|
||||||
admin.site,
|
admin.site,
|
||||||
attrs={"data-placeholder": "---------", "ajax-url": "get-suborganization-list-json"},
|
attrs={"data-placeholder": "---------", "ajax-url": "get-suborganization-list-json"},
|
||||||
),
|
),
|
||||||
|
|
|
@ -1,6 +1,13 @@
|
||||||
{% extends 'admin/change_form.html' %}
|
{% extends 'admin/change_form.html' %}
|
||||||
{% load i18n static %}
|
{% load i18n static %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
{% comment %} Stores the json endpoint in a url for easier access {% endcomment %}
|
||||||
|
{% url 'get-portfolio-json' as url %}
|
||||||
|
<input id="portfolio_json_url" class="display-none" value="{{url}}" />
|
||||||
|
{{ block.super }}
|
||||||
|
{% endblock content %}
|
||||||
|
|
||||||
{% block field_sets %}
|
{% block field_sets %}
|
||||||
{% for fieldset in adminform %}
|
{% for fieldset in adminform %}
|
||||||
{% comment %}
|
{% comment %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue